Exemplo n.º 1
0
        private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
        {
            var ic = new InitialCondition(2 + GetNeighboursCount((Neighbourhoods)NeighbourBox.SelectedItem, (int)Slider1.Value), _ic);
            var b  = ic.ShowDialog();

            if (!b.HasValue || !b.Value)
            {
                return;
            }
            if (pointMatrix != null && ic.Condition.Grid.CellGrid.GetLength(0) != pointMatrix.Size)
            {
                AdvancedMatrixAccepted = false;
            }
            _ic = ic.Condition;
            NotifyPropertyChanged("NoError");
            NotifyPropertyChanged("NoAdvancedError");
        }
Exemplo n.º 2
0
 private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
 {
     var ic = new InitialCondition(2+GetNeighboursCount((Neighbourhoods)NeighbourBox.SelectedItem,(int)Slider1.Value),_ic);
     var b = ic.ShowDialog();
     if (!b.HasValue || !b.Value) return;
     if (pointMatrix != null && ic.Condition.Grid.CellGrid.GetLength(0) != pointMatrix.Size)
     {
         AdvancedMatrixAccepted = false;
     }
     _ic = ic.Condition;
     NotifyPropertyChanged("NoError");
     NotifyPropertyChanged("NoAdvancedError");
 }