コード例 #1
0
        public MainForm()
        {
            InitializeComponent();

            FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(Application.ExecutablePath);

            notifyIcon.Text = Text = "GS Sound Helper - " + fvi.FileVersion;

            InitKeysAndModifiers();

            keyboardHook.KeyPressed += new EventHandler <KeyPressedEventArgs>(KeyboardHook_KeyPressed);
            keyboardHook.RegisterHotKey(Modifiers, Key);

            if (SoundHelper.GetVolume(out int level) && level == 0)
            {
                Mute = true;
            }

            SetNotifyIcon(Mute);
            chkRunWithWindows.Checked = StartWithWindows.IsAdded();
            notifyIcon.Visible        = true;
        }
コード例 #2
0
 public void TestStartWithWindows()
 {
     StartWithWindows.IsAdded();
 }