private void Button_Click(object sender, RoutedEventArgs e) { First.Clear(); Second.Clear(); Third.Clear(); Fourth.Clear(); MessageBox.Show("The data has been cleared!", "Warning!", MessageBoxButton.OK, MessageBoxImage.Warning); }
public void SetBlueprint(ObservableSortedList <GridItemViewModel> grid) { First.Clear(); if (grid != null) { if (grid.Count > 0) { SetBlueprint(grid[0]); grid[0].IsExpanded = true; First.Add(grid[0]); } } }
public void Balance() { if (First.Count > PoolSize && poolCluster.Count < Capacity) { AddPool(); } else if (First.Count == 0 && poolCluster.Count > 1) { First.Clear(); RemovePool(First); } else { int size = (Last.Count - First.Count) / 2; for (int i = 0; i < size; i++) { First.Add(Last.GetLast()); Last.RemoveLast(); } } DoSort(); }
public void Clear() { First.Clear(); Second.Clear(); }
public void Clear() { First.Clear(); }