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; }
public void TestStartWithWindows() { StartWithWindows.IsAdded(); }