Changeset 11044 for branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4/FilterView.cs
- Timestamp:
- 06/25/14 13:16:53 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.