private void Akceptuj_Click(object sender, RoutedEventArgs e) { _typeFace = Box.SelectedItem.ToString(); SPDAssets.ChangeFont(_typeFace); DialogResult = true; Close(); }
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); }
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; }