Exemple #1
0
            protected override void WndProc(ref Message m)
            {
                if (m.Msg == 0x0312)
                {
                    int     id = m.WParam.ToInt32();
                    webPull wp = new webPull();

                    if (id == 1)
                    {
                        wp.htmlPull();
                    }
                    if (id == 2)
                    {
                        wp.cursorLoc();
                    }
                    if (id == 3)
                    {
                        Program.GUIref.browserViewBox.Navigate("http://owa.mit.edu/");
                    }
                    if (id == 4)
                    {
                        Program.GUIref.browserViewBox.Navigate("http://www.google.com");
                    }
                    if (id == 5)
                    {
                        Program.running = true;
                        automation au = new automation();
                        au.sheetLoaded();
                    }

                    if (id == 7)
                    {
                        Program.running = false;
                    }

                    if (id == 6)
                    {
                        automation au = new automation();

                        Program.sW          = new System.Windows.Forms.Timer();
                        Program.sW.Interval = 10000;
                        Program.sW.Tick    += new EventHandler(au.emailCheck);
                        Program.activated   = true;
                        Program.sW.Start();
                    }
                }

                base.WndProc(ref m);
            }
Exemple #2
0
 private void browserViewBox_Navigated(object sender, WebBrowserNavigatedEventArgs e)
 {
     if (Program.activated)
     {
         if (Program.firstLoad)
         {
             WindowState = FormWindowState.Maximized;
             this.TopMost = true;
             Program.firstLoad = false;
             Program.sW.Stop();
             automation au = new automation();
             Thread auT = new Thread(au.sheetLoaded);
             auT.IsBackground = true;
             auT.Start();
         }
     }
 }
Exemple #3
0
 private void browserViewBox_Navigated(object sender, WebBrowserNavigatedEventArgs e)
 {
     if (Program.activated)
     {
         if (Program.firstLoad)
         {
             WindowState       = FormWindowState.Maximized;
             this.TopMost      = true;
             Program.firstLoad = false;
             Program.sW.Stop();
             automation au  = new automation();
             Thread     auT = new Thread(au.sheetLoaded);
             auT.IsBackground = true;
             auT.Start();
         }
     }
 }
Exemple #4
0
            protected override void WndProc(ref Message m)
            {
                if (m.Msg == 0x0312)
                {
                    int id = m.WParam.ToInt32();
                    webPull wp = new webPull();

                    if (id == 1)
                    {
                        wp.htmlPull();
                    }
                    if (id == 2)
                    {
                        wp.cursorLoc();
                    }
                    if (id == 3)
                    {
                        Program.GUIref.browserViewBox.Navigate("http://owa.mit.edu/");
                    }
                    if (id == 4)
                    {
                        Program.GUIref.browserViewBox.Navigate("http://www.google.com");
                    }
                    if (id == 5)
                    {
                        Program.running = true;
                        automation au = new automation();
                        au.sheetLoaded();
                    }

                    if (id == 7)
                    {
                        Program.running = false;
                    }

                    if (id == 6)
                    {
                        automation au = new automation();

                        Program.sW = new System.Windows.Forms.Timer();
                        Program.sW.Interval = 10000;
                        Program.sW.Tick += new EventHandler(au.emailCheck);
                        Program.activated = true;
                        Program.sW.Start();
                    }

                }

                base.WndProc(ref m);
            }