private void main_Load(object sender, EventArgs e) { LoadCOMPortList(); receiveEvent = new WmiChangeEventTester(this); colorDialog.AllowFullOpen = false; colorDialog.ShowHelp = true; picCamOnColor.BackColor = ColorTranslator.FromHtml("#" + Settings.Default.cam_on_color); picCamOffColor.BackColor = ColorTranslator.FromHtml("#" + Settings.Default.cam_off_color); picMicOnColor.BackColor = ColorTranslator.FromHtml("#" + Settings.Default.mic_on_color); picMicOffColor.BackColor = ColorTranslator.FromHtml("#" + Settings.Default.mic_off_color); myNotifyIcon = new System.Windows.Forms.NotifyIcon(); myNotifyIcon.Icon = shield.Properties.Resources.camera; // new Icon(shield.Properties.Resources.; myNotifyIcon.Text = "I'm watching your back!"; myNotifyIcon.Visible = true; myNotifyIcon.DoubleClick += MyNotifyIcon_DoubleClick; chkBeep.Checked = Settings.Default.beep; }
private void main_Load(object sender, EventArgs e) { receiveEvent = new WmiChangeEventTester(this); myNotifyIcon = new NotifyIcon(); myNotifyIcon.Text = ""; myNotifyIcon.Visible = true; myNotifyIcon.DoubleClick += MyNotifyIcon_DoubleClick; checkBoxBeep.Checked = Settings.Default.beep; checkBoxNotification.Checked = Settings.Default.notification; checkBoxWebhooks.Checked = Settings.Default.webhooks; textBoxGetWebhookUrlWebcamActive.Text = Settings.Default.httpGetWebhookUrlWebcamActive; textBoxGetWebhookUrlWebcamInactive.Text = Settings.Default.httpGetWebhookUrlWebcamInactive; textBoxGetWebhookUrlMicrophoneActive.Text = Settings.Default.httpGetWebhookUrlMicrophoneActive; textBoxGetWebhookUrlMicrophoneInactive.Text = Settings.Default.httpGetWebhookUrlMicrophoneInactive; showState(); }
/// <summary> /// </summary> public static void Test() { // Just calls the class above to check for events... WmiChangeEventTester receiveEvent = new WmiChangeEventTester(); }
/// <summary> /// </summary> public static void Main() { // Just calls the class above to check for events... WmiChangeEventTester receiveEvent = new WmiChangeEventTester(); }