Exemplo n.º 1
0
        private void NewNote()
        {
#if RAZER
            SharpBladeHelper.Manager.Touchpad.ClearWindow();
            SharpBladeHelper.Manager.DynamicKeyEvent -= OnDynamicKeyEvent;
            RenderPoll.Stop();
#endif
            Application.Current.MainWindow = new NoteWindow();
            Close();
            Application.Current.MainWindow.Show();
        }
Exemplo n.º 2
0
        private void Back()
        {
            DisposeCaretManager();

#if RAZER
            SharpBladeHelper.Manager.Touchpad.ClearWindow();
            SharpBladeHelper.Manager.DynamicKeyEvent -= ManagerDynamicKeyEvent;
            SharpBladeHelper.Manager.SetKeyboardCapture(false);
            SharpBladeHelper.Manager.Touchpad.DisableGesture(RazerAPI.GestureType.Tap);
            SharpBladeHelper.Manager.Touchpad.Gesture -= TouchpadOnGesture;
            RenderPoll.Stop();
#endif

            Application.Current.MainWindow = new NotesWindow();
            Close();
            Application.Current.MainWindow.Show();
        }
Exemplo n.º 3
0
        private void ViewNote()
        {
            var selectedItem = NotesListBox.SelectedItem;

            if (selectedItem == null)
            {
                return;
            }
#if RAZER
            SharpBladeHelper.Manager.Touchpad.ClearWindow();
            SharpBladeHelper.Manager.DynamicKeyEvent -= OnDynamicKeyEvent;
            RenderPoll.Stop();
#endif
            Application.Current.MainWindow = new ViewNote((Note)selectedItem);
            Close();
            Application.Current.MainWindow.Show();
        }