Ejemplo n.º 1
0
        private void CustomHotkeyToggle_Click(object sender, RoutedEventArgs e)
        {
            bool isWindowOpen = false;

            foreach (Window w in System.Windows.Application.Current.Windows)
            {
                if (w is HotkeyWindow)
                {
                    isWindowOpen = true;
                }
            }

            if (!isWindowOpen)
            {
                HotkeyWindow hotkeyDialog = new HotkeyWindow("toggle");
                hotkeyDialog.Show();
            }
        }
Ejemplo n.º 2
0
        private void StashTabHotkey_Click(object sender, RoutedEventArgs e)
        {
            bool isWindowOpen = false;

            foreach (Window w in System.Windows.Application.Current.Windows)
            {
                if (w is HotkeyWindow)
                {
                    isWindowOpen = true;
                }
            }

            if (!isWindowOpen)
            {
                HotkeyWindow hotkeyDialog = new HotkeyWindow(this, "stashtab");
                hotkeyDialog.Show();
            }
        }
Ejemplo n.º 3
0
        private void RefreshHotkey_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            bool isWindowOpen = false;

            foreach (Window w in System.Windows.Application.Current.Windows)
            {
                if (w is HotkeyWindow)
                {
                    isWindowOpen = true;
                }
            }

            if (!isWindowOpen)
            {
                HotkeyWindow hotkeyDialog = new HotkeyWindow("refresh");
                hotkeyDialog.Show();
            }
        }