示例#1
0
        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;
        }
示例#2
0
文件: main.cs 项目: askeron/camiacmo
        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();
 }
示例#4
0
 /// <summary>
 /// </summary>
 public static void Main()
 {
     // Just calls the class above to check for events...
     WmiChangeEventTester receiveEvent = new WmiChangeEventTester();
 }