Changeset 10969


Ignore:
Timestamp:
06/11/14 11:04:27 (8 years ago)
Author:
sbreuer
Message:
  • show message if filter is active
Location:
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4/DataPreprocessingView.cs

    r10934 r10969  
    8282    }
    8383
     84    protected override void RegisterContentEvents() {
     85      base.RegisterContentEvents();
     86      Content.Data.FilterChanged += Data_FilterChanged;
     87    }
     88
     89    protected override void DeregisterContentEvents() {
     90      base.DeregisterContentEvents();
     91      Content.Data.FilterChanged -= Data_FilterChanged;
     92    }
     93
     94    void Data_FilterChanged(object sender, EventArgs e) {
     95      lblFilterActive.Visible = Content.Data.IsFiltered;
     96    }
     97
    8498    protected override void SetEnabledStateOfControls() {
    8599      base.SetEnabledStateOfControls();
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4/DataPreprocessingView.designer.cs

    r10904 r10969  
    5151      this.exportProblemButton = new System.Windows.Forms.Button();
    5252      this.toolTip = new System.Windows.Forms.ToolTip(this.components);
     53      this.lblFilterActive = new System.Windows.Forms.Label();
    5354      this.viewShortcutListView = new HeuristicLab.DataPreprocessing.Views.ViewShortcutListView();
    5455      this.SuspendLayout();
     
    8788      this.exportProblemButton.Click += new System.EventHandler(this.exportProblemButton_Click);
    8889      //
    89       // ViewShortcutListView
     90      // lblFilterActive
    9091      //
    91       this.viewShortcutListView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    92             | System.Windows.Forms.AnchorStyles.Left)
     92      this.lblFilterActive.AutoSize = true;
     93      this.lblFilterActive.Location = new System.Drawing.Point(220, 12);
     94      this.lblFilterActive.Name = "lblFilterActive";
     95      this.lblFilterActive.Size = new System.Drawing.Size(277, 13);
     96      this.lblFilterActive.TabIndex = 5;
     97      this.lblFilterActive.Text = "Attention! The data is read-only, because a filter is active.";
     98      this.lblFilterActive.Visible = false;
     99      //
     100      // viewShortcutListView
     101      //
     102      this.viewShortcutListView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     103            | System.Windows.Forms.AnchorStyles.Left)
    93104            | System.Windows.Forms.AnchorStyles.Right)));
    94105      this.viewShortcutListView.Caption = "ViewShortcutCollection View";
     
    104115      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
    105116      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     117      this.Controls.Add(this.lblFilterActive);
    106118      this.Controls.Add(this.viewShortcutListView);
    107119      this.Controls.Add(this.undoButton);
     
    111123      this.Size = new System.Drawing.Size(838, 449);
    112124      this.ResumeLayout(false);
     125      this.PerformLayout();
    113126
    114127    }
     
    121134    private System.Windows.Forms.ToolTip toolTip;
    122135    private ViewShortcutListView viewShortcutListView;
     136    private System.Windows.Forms.Label lblFilterActive;
    123137
    124138  }
Note: See TracChangeset for help on using the changeset viewer.