コード例 #1
0
ファイル: main.cs プロジェクト: tlevis/S.H.I.E.L.D
        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();
        }
コード例 #3
0
 /// <summary>
 /// </summary>
 public static void Test()
 {
     // Just calls the class above to check for events...
     WmiChangeEventTester receiveEvent = new WmiChangeEventTester();
 }
コード例 #4
0
ファイル: Program.cs プロジェクト: sem256/second_year
 /// <summary>
 /// </summary>
 public static void Main()
 {
     // Just calls the class above to check for events...
     WmiChangeEventTester receiveEvent = new WmiChangeEventTester();
 }