public StepWeb(Global g,string url) { this.url = url; _inactiveTimeRetriever = new InactiveTimeRetriever(); this.Opacity = 0.0f; this.g = g; InitializeComponent(); webBrowser1.Navigate(url); initTheme(); System.Timers.Timer aTimer = new System.Timers.Timer(); aTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent); aTimer.Interval = 500; aTimer.Enabled = true; DateTime t1 = DateTime.Now; string H = t1.Hour.ToString(); if (H.Length == 1) H = "0" + H; string M = t1.Minute.ToString(); if (M.Length == 1) M = "0" + M; if (t1.Second % 2 == 0) SetTime(H + ":" + M); else SetTime(H + " " + M); noFocus.Select(); this.Update(); }
public StepWebKeyboard(Global g,string url,string ms) { this.ms = ms; this.url = url; _inactiveTimeRetriever = new InactiveTimeRetriever(); this.Opacity = 0.0f; this.g = g; InitializeComponent(); initTheme(); webBrowser1.ScriptErrorsSuppressed = true; this.webBrowser1.Navigate(url); System.Timers.Timer aTimer = new System.Timers.Timer(); aTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent); aTimer.Interval = 500; aTimer.Enabled = true; DateTime t1 = DateTime.Now; string H = t1.Hour.ToString(); if (H.Length == 1) H = "0" + H; string M = t1.Minute.ToString(); if (M.Length == 1) M = "0" + M; if (t1.Second % 2 == 0) SetTime(H + ":" + M); else SetTime(H + " " + M); noFocus.Select(); this.Update(); // g.playVoice("3"); this.button11.GotFocus += new EventHandler(this.myButton_GotFocus); }
public Step1(Global g) { _inactiveTimeRetriever = new InactiveTimeRetriever(); this.Opacity = 0.0f; this.g = g; // this.BackgroundImage = g.getTheme("bg"); InitializeComponent(); initTheme(); System.Timers.Timer aTimer = new System.Timers.Timer(); aTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent); aTimer.Interval = 500; aTimer.Enabled = true; DateTime t1 = DateTime.Now; string H = t1.Hour.ToString(); if (H.Length == 1) H = "0" + H; string M = t1.Minute.ToString(); if (M.Length == 1) M = "0" + M; if (t1.Second % 2 == 0) SetTime(H + ":" + M); else SetTime(H + " " + M); alphaBlendTextBox1 = new ZBobb.AlphaBlendTextBox(); alphaBlendTextBox1.Location = new System.Drawing.Point(0, 0); alphaBlendTextBox1.Height = 53; alphaBlendTextBox1.Width = 922; alphaBlendTextBox1.TabStop = false; alphaBlendTextBox1.BorderStyle = BorderStyle.None; alphaBlendTextBox1.BackAlpha = 0; alphaBlendTextBox1.Font = new Font(FontFamily.GenericSansSerif, 32f); alphaBlendTextBox1.ReadOnly = true; alphaBlendTextBox1.GotFocus += new EventHandler(panel1_Click); this.panel1.BackColor = Color.FromArgb(250,250,250); this.panel1.Controls.Add(this.alphaBlendTextBox1); alphaBlendTextBox2 = new ZBobb.AlphaBlendTextBox(); alphaBlendTextBox2.Location = new System.Drawing.Point(0, 0); alphaBlendTextBox2.Height = 53; alphaBlendTextBox2.Width = 922; alphaBlendTextBox2.TabStop = false; alphaBlendTextBox2.BorderStyle = BorderStyle.None; alphaBlendTextBox2.Text = ""; alphaBlendTextBox2.BackAlpha = 0; alphaBlendTextBox2.Font = new Font(FontFamily.GenericSansSerif, 32f); alphaBlendTextBox2.ReadOnly = true; alphaBlendTextBox2.GotFocus += new EventHandler(panel2_Click); this.panel2.BackColor = Color.FromArgb(250, 250, 250); this.panel2.Controls.Add(this.alphaBlendTextBox2); alphaBlendTextBox3 = new ZBobb.AlphaBlendTextBox(); alphaBlendTextBox3.Location = new System.Drawing.Point(0, 0); alphaBlendTextBox3.Height = 53; alphaBlendTextBox3.Width = 922; alphaBlendTextBox2.TabStop = false; alphaBlendTextBox3.BorderStyle = BorderStyle.None; alphaBlendTextBox3.Text = ""; alphaBlendTextBox3.BackAlpha = 0; alphaBlendTextBox3.Font = new Font(FontFamily.GenericSansSerif, 32f); alphaBlendTextBox3.ReadOnly = true; alphaBlendTextBox3.GotFocus += new EventHandler(panel3_Click); this.panel3.BackColor = Color.FromArgb(250, 250, 250); this.panel3.Controls.Add(this.alphaBlendTextBox3); alphaBlendTextS1 = new ZBobb.AlphaBlendTextBox(); alphaBlendTextS1.Location = new System.Drawing.Point(0, 0); alphaBlendTextS1.Height = 53; alphaBlendTextS1.Width = 198; alphaBlendTextS1.TabStop = false; alphaBlendTextS1.BorderStyle = BorderStyle.None; alphaBlendTextS1.Text = ""; alphaBlendTextS1.BackAlpha = 0; alphaBlendTextS1.TextAlign = HorizontalAlignment.Center; alphaBlendTextS1.Font = new Font(FontFamily.GenericSansSerif, 32f); alphaBlendTextS1.ReadOnly = true; alphaBlendTextS1.GotFocus += new EventHandler(panelS1_Click); this.panelS1.BackColor = Color.White; this.panelS1.Controls.Add(this.alphaBlendTextS1); alphaBlendTextS2 = new ZBobb.AlphaBlendTextBox(); alphaBlendTextS2.Location = new System.Drawing.Point(0, 0); alphaBlendTextS2.Height = 53; alphaBlendTextS2.Width = 198; alphaBlendTextS2.TabStop = false; alphaBlendTextS2.BorderStyle = BorderStyle.None; alphaBlendTextS2.Text = ""; alphaBlendTextS2.BackAlpha = 0; alphaBlendTextS2.Font = new Font(FontFamily.GenericSansSerif, 32f); alphaBlendTextS2.ReadOnly = true; alphaBlendTextS2.TextAlign = HorizontalAlignment.Center; alphaBlendTextS2.GotFocus += new EventHandler(panelS2_Click); this.panelS2.BackColor = Color.FromArgb(250, 250, 250); this.panelS2.Controls.Add(this.alphaBlendTextS2); alphaBlendTextS3 = new ZBobb.AlphaBlendTextBox(); alphaBlendTextS3.Location = new System.Drawing.Point(0, 0); alphaBlendTextS3.Height = 53; alphaBlendTextS3.Width = 198; alphaBlendTextS3.TabStop = false; alphaBlendTextS3.BorderStyle = BorderStyle.None; alphaBlendTextS3.Text = ""; alphaBlendTextS3.TextAlign = HorizontalAlignment.Center; alphaBlendTextS3.BackAlpha = 0; alphaBlendTextS3.Font = new Font(FontFamily.GenericSansSerif, 32f); alphaBlendTextS3.ReadOnly = true; alphaBlendTextS3.GotFocus += new EventHandler(panelS3_Click); this.panelS3.BackColor = Color.FromArgb(250, 250, 250); this.panelS3.Controls.Add(this.alphaBlendTextS3); alphaBlendTextS4 = new ZBobb.AlphaBlendTextBox(); alphaBlendTextS4.Location = new System.Drawing.Point(0, 0); alphaBlendTextS4.Height = 53; alphaBlendTextS4.Width = 110; alphaBlendTextS4.TabStop = false; alphaBlendTextS4.BorderStyle = BorderStyle.None; alphaBlendTextS4.Text = ""; alphaBlendTextS4.BackAlpha = 0; alphaBlendTextS4.TextAlign = HorizontalAlignment.Center; alphaBlendTextS4.Font = new Font(FontFamily.GenericSansSerif, 32f); alphaBlendTextS4.ReadOnly = true; alphaBlendTextS4.GotFocus += new EventHandler(panelS4_Click); this.panelS4.BackColor = Color.FromArgb(250, 250, 250); this.panelS4.Controls.Add(this.alphaBlendTextS4); noFocus.Select(); this.Update(); g.playVoice("3"); }