Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
        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;
        }