예제 #1
0
 private void Akceptuj_Click(object sender, RoutedEventArgs e)
 {
     _typeFace = Box.SelectedItem.ToString();
     SPDAssets.ChangeFont(_typeFace);
     DialogResult = true;
     Close();
 }
예제 #2
0
        private void Left_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            SPDAssets.ChangeFont(Box.SelectedItem.ToString());
            Canvas.Children.Clear();
            var D = SPDAssets.GenerateLegend(Canvas.Height, _statecount);

            Canvas.Children.Add(D);
            SPDAssets.ChangeFont(_typeFace);
        }
예제 #3
0
        public MainWindow()
        {
            SPDAssets.CreateBrushes();
            SPDAssets.ChangeFont("Arial");
            SPDAssets.InitialiseDescriptions();
            _colorPicking = ColorPicking.RegularPickingFactory(10);
            InitializeComponent();

            InitialConditions.Initialise();
            ShapeBox.ItemsSource      = Enum.GetValues(typeof(Shape));
            NeighbourBox.ItemsSource  = Enum.GetValues(typeof(Neighbourhoods));
            ShapeBox.SelectedItem     = Shape.Płaski;
            NeighbourBox.SelectedItem = Neighbourhoods.Moore;

            DataContext  = this;
            Error        = ValidationErrors.None;
            _canvalidate = true;
        }