Changeset 11044
- Timestamp:
- 06/25/14 13:16:53 (10 years ago)
- Location:
- branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4/FilterView.Designer.cs
r10979 r11044 34 34 this.lblPercentage = new System.Windows.Forms.Label(); 35 35 this.tbPercentage = new System.Windows.Forms.TextBox(); 36 this.tb Filtered= new System.Windows.Forms.TextBox();37 this.lbl Filtered= new System.Windows.Forms.Label();36 this.tbRemaining = new System.Windows.Forms.TextBox(); 37 this.lblRemaining = new System.Windows.Forms.Label(); 38 38 this.tbTotal = new System.Windows.Forms.TextBox(); 39 39 this.lblTotal = new System.Windows.Forms.Label(); … … 81 81 this.groupBoxFilterInfo.Controls.Add(this.lblPercentage); 82 82 this.groupBoxFilterInfo.Controls.Add(this.tbPercentage); 83 this.groupBoxFilterInfo.Controls.Add(this.tb Filtered);84 this.groupBoxFilterInfo.Controls.Add(this.lbl Filtered);83 this.groupBoxFilterInfo.Controls.Add(this.tbRemaining); 84 this.groupBoxFilterInfo.Controls.Add(this.lblRemaining); 85 85 this.groupBoxFilterInfo.Controls.Add(this.tbTotal); 86 86 this.groupBoxFilterInfo.Controls.Add(this.lblTotal); … … 113 113 // tbFiltered 114 114 // 115 this.tb Filtered.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)116 | System.Windows.Forms.AnchorStyles.Right))); 117 this.tb Filtered.Enabled = false;118 this.tb Filtered.Location = new System.Drawing.Point(104, 45);119 this.tb Filtered.Name = "tbFiltered";120 this.tb Filtered.Size = new System.Drawing.Size(549, 20);121 this.tb Filtered.TabIndex = 9;115 this.tbRemaining.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 116 | System.Windows.Forms.AnchorStyles.Right))); 117 this.tbRemaining.Enabled = false; 118 this.tbRemaining.Location = new System.Drawing.Point(104, 45); 119 this.tbRemaining.Name = "tbRemaining"; 120 this.tbRemaining.Size = new System.Drawing.Size(549, 20); 121 this.tbRemaining.TabIndex = 9; 122 122 // 123 123 // lblFiltered 124 124 // 125 this.lbl Filtered.AutoSize = true;126 this.lbl Filtered.Location = new System.Drawing.Point(15, 47);127 this.lbl Filtered.Name = "lblFiltered";128 this.lbl Filtered.Size = new System.Drawing.Size(44, 13);129 this.lbl Filtered.TabIndex = 8;130 this.lbl Filtered.Text = "Filtered:";125 this.lblRemaining.AutoSize = true; 126 this.lblRemaining.Location = new System.Drawing.Point(15, 47); 127 this.lblRemaining.Name = "lblRemaining"; 128 this.lblRemaining.Size = new System.Drawing.Size(60, 13); 129 this.lblRemaining.TabIndex = 8; 130 this.lblRemaining.Text = "Remaining:"; 131 131 // 132 132 // tbTotal … … 276 276 private System.Windows.Forms.Label lblPercentage; 277 277 private System.Windows.Forms.TextBox tbPercentage; 278 private System.Windows.Forms.TextBox tb Filtered;279 private System.Windows.Forms.Label lbl Filtered;278 private System.Windows.Forms.TextBox tbRemaining; 279 private System.Windows.Forms.Label lblRemaining; 280 280 private System.Windows.Forms.RadioButton rBtnOr; 281 281 private System.Windows.Forms.RadioButton rBtnAnd; -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4/FilterView.cs
r11002 r11044 18 18 InitializeComponent(); 19 19 tbTotal.Text = "0"; 20 tb Filtered.Text = "0";20 tbRemaining.Text = "0"; 21 21 tbPercentage.Text = "0%"; 22 22 } … … 65 65 bool[] result = Content.FilterLogic.Preview(filters, rBtnAnd.Checked); 66 66 67 int filteredCnt = result.Count(c => c);67 int filteredCnt = result.Count(c => !c); 68 68 69 tb Filtered.Text = filteredCnt.ToString();69 tbRemaining.Text = filteredCnt.ToString(); 70 70 double percentage = result.Length == 0 ? 0.0 : filteredCnt * 100 / (double)result.Length; 71 71 tbPercentage.Text = String.Format("{0:0.0000}%", percentage);
Note: See TracChangeset
for help on using the changeset viewer.