private void Button_Cursor_OnCheckChanged(object sender, bool IsChecked) { Button_Eraser.SetCheckedNoCall(false); Button_Draw.SetCheckedNoCall(false); Button_Cursor.SetCheckedNoCall(true); DesignCanvas.EditingMode = InkCanvasEditingMode.None; }
public MainWindow() { if (Good_Teacher.MainWindow.appSettings.Load()) { LoadedSettings = true; } if (LoadedSettings) { Good_Teacher.MainWindow.appSettings.ApplyLanguage(); } InitializeComponent(); DesignCanvas.EditingMode = InkCanvasEditingMode.None; if (LoadedSettings) { Good_Teacher.MainWindow.appSettings.ApplyComponentData(MainWindow_Border); } Loaded += MainWindow_Loaded; StateChanged += MainWindow_StateChanged; CheckState(); Button_Cursor.SetCheckedNoCall(true); CB_PaintSize_SelectionChanged(CB_PaintSize, null); Button_Cursor_OnCheckChanged(Button_Cursor, true); ContentRendered += MainWindow_ContentRendered; }