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(); }
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(); }
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(); }