Пример #1
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
     this.panel1             = new System.Windows.Forms.Panel();
     this.alphaBlendTextBox1 = new ZBobb.AlphaBlendTextBox();
     this.trackBar1          = new System.Windows.Forms.TrackBar();
     this.buttonColor        = new System.Windows.Forms.Button();
     this.label1             = new System.Windows.Forms.Label();
     this.label2             = new System.Windows.Forms.Label();
     this.alphaBlendTextBox2 = new ZBobb.AlphaBlendTextBox();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit();
     this.SuspendLayout();
     //
     // panel1
     //
     this.panel1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel1.BackgroundImage")));
     this.panel1.Controls.Add(this.alphaBlendTextBox2);
     this.panel1.Location = new System.Drawing.Point(216, 16);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(152, 192);
     this.panel1.TabIndex = 2;
     //
     // alphaBlendTextBox1
     //
     this.alphaBlendTextBox1.BackAlpha   = 10;
     this.alphaBlendTextBox1.BackColor   = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(255)));
     this.alphaBlendTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.alphaBlendTextBox1.Font        = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.alphaBlendTextBox1.Location    = new System.Drawing.Point(32, 16);
     this.alphaBlendTextBox1.Multiline   = true;
     this.alphaBlendTextBox1.Name        = "alphaBlendTextBox1";
     this.alphaBlendTextBox1.ScrollBars  = System.Windows.Forms.ScrollBars.Vertical;
     this.alphaBlendTextBox1.Size        = new System.Drawing.Size(176, 112);
     this.alphaBlendTextBox1.TabIndex    = 9;
     this.alphaBlendTextBox1.Text        = "This is a test of the AlphaBlendTextBox control.  Notice how you can see the back" +
                                           "ground behind these textboxes?  Change the options below to see how they look.";
     //
     // trackBar1
     //
     this.trackBar1.Location      = new System.Drawing.Point(88, 144);
     this.trackBar1.Maximum       = 255;
     this.trackBar1.Name          = "trackBar1";
     this.trackBar1.Size          = new System.Drawing.Size(112, 45);
     this.trackBar1.TabIndex      = 5;
     this.trackBar1.TickFrequency = 15;
     this.trackBar1.Value         = 20;
     this.trackBar1.Scroll       += new System.EventHandler(this.trackBar1_Scroll);
     //
     // buttonColor
     //
     this.buttonColor.Location = new System.Drawing.Point(88, 192);
     this.buttonColor.Name     = "buttonColor";
     this.buttonColor.Size     = new System.Drawing.Size(56, 23);
     this.buttonColor.TabIndex = 6;
     this.buttonColor.Click   += new System.EventHandler(this.buttonColor_Click);
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(32, 144);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(48, 16);
     this.label1.TabIndex = 7;
     this.label1.Text     = "Alpha:";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(32, 192);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(48, 16);
     this.label2.TabIndex = 8;
     this.label2.Text     = "Color:";
     //
     // alphaBlendTextBox2
     //
     this.alphaBlendTextBox2.BackAlpha   = 10;
     this.alphaBlendTextBox2.BackColor   = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(0)), ((System.Byte)(0)));
     this.alphaBlendTextBox2.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.alphaBlendTextBox2.Font        = new System.Drawing.Font("Comic Sans MS", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.alphaBlendTextBox2.ForeColor   = System.Drawing.Color.Yellow;
     this.alphaBlendTextBox2.Location    = new System.Drawing.Point(8, 16);
     this.alphaBlendTextBox2.Multiline   = true;
     this.alphaBlendTextBox2.Name        = "alphaBlendTextBox2";
     this.alphaBlendTextBox2.Size        = new System.Drawing.Size(128, 160);
     this.alphaBlendTextBox2.TabIndex    = 0;
     this.alphaBlendTextBox2.Text        = "Bob Bradley";
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
     this.BackgroundImage   = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
     this.ClientSize        = new System.Drawing.Size(384, 230);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.buttonColor);
     this.Controls.Add(this.trackBar1);
     this.Controls.Add(this.alphaBlendTextBox1);
     this.Controls.Add(this.panel1);
     this.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.Name = "Form1";
     this.Text = "AlphaBlendTextBox Tester";
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit();
     this.ResumeLayout(false);
 }
Пример #2
0
        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");
        }
Пример #3
0
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
			this.panel1 = new System.Windows.Forms.Panel();
			this.alphaBlendTextBox1 = new ZBobb.AlphaBlendTextBox();
			this.trackBar1 = new System.Windows.Forms.TrackBar();
			this.buttonColor = new System.Windows.Forms.Button();
			this.label1 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.alphaBlendTextBox2 = new ZBobb.AlphaBlendTextBox();
			this.panel1.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit();
			this.SuspendLayout();
			// 
			// panel1
			// 
			this.panel1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel1.BackgroundImage")));
			this.panel1.Controls.Add(this.alphaBlendTextBox2);
			this.panel1.Location = new System.Drawing.Point(216, 16);
			this.panel1.Name = "panel1";
			this.panel1.Size = new System.Drawing.Size(152, 192);
			this.panel1.TabIndex = 2;
			// 
			// alphaBlendTextBox1
			// 
			this.alphaBlendTextBox1.BackAlpha = 10;
			this.alphaBlendTextBox1.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(255)));
			this.alphaBlendTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
			this.alphaBlendTextBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.alphaBlendTextBox1.Location = new System.Drawing.Point(32, 16);
			this.alphaBlendTextBox1.Multiline = true;
			this.alphaBlendTextBox1.Name = "alphaBlendTextBox1";
			this.alphaBlendTextBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
			this.alphaBlendTextBox1.Size = new System.Drawing.Size(176, 112);
			this.alphaBlendTextBox1.TabIndex = 9;
			this.alphaBlendTextBox1.Text = "This is a test of the AlphaBlendTextBox control.  Notice how you can see the back" +
				"ground behind these textboxes?  Change the options below to see how they look.";
			// 
			// trackBar1
			// 
			this.trackBar1.Location = new System.Drawing.Point(88, 144);
			this.trackBar1.Maximum = 255;
			this.trackBar1.Name = "trackBar1";
			this.trackBar1.Size = new System.Drawing.Size(112, 45);
			this.trackBar1.TabIndex = 5;
			this.trackBar1.TickFrequency = 15;
			this.trackBar1.Value = 20;
			this.trackBar1.Scroll += new System.EventHandler(this.trackBar1_Scroll);
			// 
			// buttonColor
			// 
			this.buttonColor.Location = new System.Drawing.Point(88, 192);
			this.buttonColor.Name = "buttonColor";
			this.buttonColor.Size = new System.Drawing.Size(56, 23);
			this.buttonColor.TabIndex = 6;
			this.buttonColor.Click += new System.EventHandler(this.buttonColor_Click);
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(32, 144);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(48, 16);
			this.label1.TabIndex = 7;
			this.label1.Text = "Alpha:";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(32, 192);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(48, 16);
			this.label2.TabIndex = 8;
			this.label2.Text = "Color:";
			// 
			// alphaBlendTextBox2
			// 
			this.alphaBlendTextBox2.BackAlpha = 10;
			this.alphaBlendTextBox2.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(0)), ((System.Byte)(0)));
			this.alphaBlendTextBox2.BorderStyle = System.Windows.Forms.BorderStyle.None;
			this.alphaBlendTextBox2.Font = new System.Drawing.Font("Comic Sans MS", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.alphaBlendTextBox2.ForeColor = System.Drawing.Color.Yellow;
			this.alphaBlendTextBox2.Location = new System.Drawing.Point(8, 16);
			this.alphaBlendTextBox2.Multiline = true;
			this.alphaBlendTextBox2.Name = "alphaBlendTextBox2";
			this.alphaBlendTextBox2.Size = new System.Drawing.Size(128, 160);
			this.alphaBlendTextBox2.TabIndex = 0;
			this.alphaBlendTextBox2.Text = "Bob Bradley";
			// 
			// Form1
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
			this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
			this.ClientSize = new System.Drawing.Size(384, 230);
			this.Controls.Add(this.label2);
			this.Controls.Add(this.label1);
			this.Controls.Add(this.buttonColor);
			this.Controls.Add(this.trackBar1);
			this.Controls.Add(this.alphaBlendTextBox1);
			this.Controls.Add(this.panel1);
			this.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Name = "Form1";
			this.Text = "AlphaBlendTextBox Tester";
			this.panel1.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit();
			this.ResumeLayout(false);

		}