///// <summary> ///// Occurs when subproperty value has changed. ///// </summary> //public event DevComponents.Schedule.Model.SubPropertyChangedEventHandler SubPropertyChanged; /// <summary> /// Initializes a new instance of the ClockControl class /// </summary> public AnalogClockControl() { SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw | ControlStyles.SupportsTransparentBackColor, true); _AntiAlias = true; _AutomaticMode = false; _ClockStyle = eClockStyles.Style1; _ClockStyleData = new ClockStyleData(); _ClockStyleData.Parent = this; _EditState = eClockEditStates.None; _IndicatorStyle = eClockIndicatorStyles.Ticks; _IsEditable = false; _ShowGlassOverlay = true; _ShowSecondHand = true; _Value = DateTime.Now; MinimumSize = new Size((int)_BaseSize, (int)_BaseSize); ; Size = MinimumSize; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); DevComponents.DotNetBar.Controls.ClockStyleData clockStyleData1 = new DevComponents.DotNetBar.Controls.ClockStyleData(); DevComponents.DotNetBar.Controls.ColorData colorData1 = new DevComponents.DotNetBar.Controls.ColorData(); DevComponents.DotNetBar.Controls.ColorData colorData2 = new DevComponents.DotNetBar.Controls.ColorData(); DevComponents.DotNetBar.Controls.ColorData colorData3 = new DevComponents.DotNetBar.Controls.ColorData(); DevComponents.DotNetBar.Controls.ClockHandStyleData clockHandStyleData1 = new DevComponents.DotNetBar.Controls.ClockHandStyleData(); DevComponents.DotNetBar.Controls.ColorData colorData4 = new DevComponents.DotNetBar.Controls.ColorData(); DevComponents.DotNetBar.Controls.ColorData colorData5 = new DevComponents.DotNetBar.Controls.ColorData(); DevComponents.DotNetBar.Controls.ClockHandStyleData clockHandStyleData2 = new DevComponents.DotNetBar.Controls.ClockHandStyleData(); DevComponents.DotNetBar.Controls.ColorData colorData6 = new DevComponents.DotNetBar.Controls.ColorData(); DevComponents.DotNetBar.Controls.ClockHandStyleData clockHandStyleData3 = new DevComponents.DotNetBar.Controls.ClockHandStyleData(); DevComponents.DotNetBar.Controls.ColorData colorData7 = new DevComponents.DotNetBar.Controls.ColorData(); DevComponents.DotNetBar.Controls.ColorData colorData8 = new DevComponents.DotNetBar.Controls.ColorData(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FLogin)); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.textBox1 = new System.Windows.Forms.TextBox(); this.textBox2 = new System.Windows.Forms.TextBox(); this.buttonX1 = new DevComponents.DotNetBar.ButtonX(); this.buttonX2 = new DevComponents.DotNetBar.ButtonX(); this.analogClockControl1 = new DevComponents.DotNetBar.Controls.AnalogClockControl(); this.timer1 = new System.Windows.Forms.Timer(this.components); this.label3 = new System.Windows.Forms.Label(); this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.SuspendLayout(); // // label1 // this.label1.AutoSize = true; this.label1.BackColor = System.Drawing.Color.Snow; this.label1.ForeColor = System.Drawing.Color.Black; this.label1.Location = new System.Drawing.Point(332, 32); this.label1.Name = "label1"; this.label1.RightToLeft = System.Windows.Forms.RightToLeft.Yes; this.label1.Size = new System.Drawing.Size(61, 21); this.label1.TabIndex = 0; this.label1.Text = "نام کاربری :"; // // label2 // this.label2.AutoSize = true; this.label2.BackColor = System.Drawing.Color.Snow; this.label2.ForeColor = System.Drawing.Color.Black; this.label2.Location = new System.Drawing.Point(332, 71); this.label2.Name = "label2"; this.label2.RightToLeft = System.Windows.Forms.RightToLeft.Yes; this.label2.Size = new System.Drawing.Size(57, 21); this.label2.TabIndex = 1; this.label2.Text = "کلمه عبور :"; // // textBox1 // this.textBox1.BackColor = System.Drawing.Color.Snow; this.textBox1.Font = new System.Drawing.Font("WeblogmaYekan", 8.999999F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(178))); this.textBox1.ForeColor = System.Drawing.Color.Black; this.textBox1.Location = new System.Drawing.Point(168, 28); this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(158, 26); this.textBox1.TabIndex = 0; this.textBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged); this.textBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox1_KeyDown); // // textBox2 // this.textBox2.BackColor = System.Drawing.Color.Snow; this.textBox2.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(178))); this.textBox2.ForeColor = System.Drawing.Color.Black; this.textBox2.Location = new System.Drawing.Point(168, 68); this.textBox2.Name = "textBox2"; this.textBox2.Size = new System.Drawing.Size(158, 23); this.textBox2.TabIndex = 1; this.textBox2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.textBox2.UseSystemPasswordChar = true; this.textBox2.TextChanged += new System.EventHandler(this.textBox2_TextChanged); this.textBox2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox2_KeyDown); // // buttonX1 // this.buttonX1.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.buttonX1.ColorTable = DevComponents.DotNetBar.eButtonColor.BlueOrb; this.buttonX1.Enabled = false; this.buttonX1.FocusCuesEnabled = false; this.buttonX1.ImageTextSpacing = 5; this.buttonX1.Location = new System.Drawing.Point(244, 111); this.buttonX1.Name = "buttonX1"; this.buttonX1.Shape = new DevComponents.DotNetBar.RoundRectangleShapeDescriptor(20, 2, 2, 20); this.buttonX1.Size = new System.Drawing.Size(87, 23); this.buttonX1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.buttonX1.Symbol = ""; this.buttonX1.SymbolSize = 15F; this.buttonX1.TabIndex = 3; this.buttonX1.Text = "ورود"; this.buttonX1.TextColor = System.Drawing.Color.Blue; this.buttonX1.Click += new System.EventHandler(this.buttonX1_Click); // // buttonX2 // this.buttonX2.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.buttonX2.ColorTable = DevComponents.DotNetBar.eButtonColor.BlueOrb; this.buttonX2.FocusCuesEnabled = false; this.buttonX2.ImageTextSpacing = 5; this.buttonX2.Location = new System.Drawing.Point(161, 111); this.buttonX2.Name = "buttonX2"; this.buttonX2.Shape = new DevComponents.DotNetBar.RoundRectangleShapeDescriptor(20, 2, 2, 20); this.buttonX2.Size = new System.Drawing.Size(82, 23); this.buttonX2.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.buttonX2.Symbol = ""; this.buttonX2.SymbolSize = 15F; this.buttonX2.TabIndex = 4; this.buttonX2.Text = "خروج"; this.buttonX2.TextColor = System.Drawing.Color.Red; this.buttonX2.Click += new System.EventHandler(this.buttonX2_Click); // // analogClockControl1 // this.analogClockControl1.BackColor = System.Drawing.Color.Snow; this.analogClockControl1.ClockStyle = DevComponents.DotNetBar.Controls.eClockStyles.Custom; colorData1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(120)))), ((int)(((byte)(120)))), ((int)(((byte)(120))))); colorData1.BorderWidth = 0.01F; colorData1.BrushSBSScale = 1F; colorData1.BrushType = DevComponents.DotNetBar.Controls.eBrushTypes.Linear; colorData1.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); colorData1.Color2 = System.Drawing.Color.FromArgb(((int)(((byte)(152)))), ((int)(((byte)(152)))), ((int)(((byte)(152))))); clockStyleData1.BezelColor = colorData1; colorData2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(109)))), ((int)(((byte)(127)))), ((int)(((byte)(138))))); colorData2.BorderWidth = 0.01F; colorData2.BrushSBSScale = 1F; colorData2.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(127)))), ((int)(((byte)(138))))); colorData2.Color2 = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(127)))), ((int)(((byte)(138))))); clockStyleData1.CapColor = colorData2; colorData3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(135)))), ((int)(((byte)(145)))), ((int)(((byte)(161))))); colorData3.BorderWidth = 0.01F; colorData3.BrushAngle = 45F; colorData3.BrushSBSScale = 1F; colorData3.BrushType = DevComponents.DotNetBar.Controls.eBrushTypes.Linear; colorData3.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(204)))), ((int)(((byte)(213))))); colorData3.Color2 = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); clockStyleData1.FaceColor = colorData3; clockStyleData1.GlassAngle = -20; colorData4.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(109)))), ((int)(((byte)(127)))), ((int)(((byte)(138))))); colorData4.BorderWidth = 0.01F; colorData4.BrushSBSScale = 1F; colorData4.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(127)))), ((int)(((byte)(138))))); colorData4.Color2 = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(127)))), ((int)(((byte)(138))))); clockHandStyleData1.HandColor = colorData4; clockHandStyleData1.Length = 0.55F; clockHandStyleData1.Width = 0.015F; clockStyleData1.HourHandStyle = clockHandStyleData1; colorData5.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); colorData5.BorderWidth = 0.01F; colorData5.BrushSBSScale = 1F; colorData5.BrushType = DevComponents.DotNetBar.Controls.eBrushTypes.Linear; colorData5.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(122)))), ((int)(((byte)(142)))), ((int)(((byte)(154))))); colorData5.Color2 = System.Drawing.Color.FromArgb(((int)(((byte)(122)))), ((int)(((byte)(142)))), ((int)(((byte)(154))))); clockStyleData1.LargeTickColor = colorData5; colorData6.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(109)))), ((int)(((byte)(127)))), ((int)(((byte)(138))))); colorData6.BorderWidth = 0.01F; colorData6.BrushSBSScale = 1F; colorData6.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(127)))), ((int)(((byte)(138))))); colorData6.Color2 = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(127)))), ((int)(((byte)(138))))); clockHandStyleData2.HandColor = colorData6; clockHandStyleData2.Length = 0.8F; clockHandStyleData2.Width = 0.01F; clockStyleData1.MinuteHandStyle = clockHandStyleData2; clockStyleData1.NumberFont = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); colorData7.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(109)))), ((int)(((byte)(127)))), ((int)(((byte)(138))))); colorData7.BorderWidth = 0.01F; colorData7.BrushSBSScale = 1F; colorData7.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(127)))), ((int)(((byte)(138))))); colorData7.Color2 = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(127)))), ((int)(((byte)(138))))); clockHandStyleData3.HandColor = colorData7; clockHandStyleData3.HandStyle = DevComponents.DotNetBar.Controls.eHandStyles.Style2; clockHandStyleData3.Length = 0.8F; clockHandStyleData3.Width = 0.005F; clockStyleData1.SecondHandStyle = clockHandStyleData3; colorData8.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); colorData8.BorderWidth = 0.01F; colorData8.BrushSBSScale = 1F; colorData8.BrushType = DevComponents.DotNetBar.Controls.eBrushTypes.Linear; colorData8.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(122)))), ((int)(((byte)(142)))), ((int)(((byte)(154))))); colorData8.Color2 = System.Drawing.Color.FromArgb(((int)(((byte)(122)))), ((int)(((byte)(142)))), ((int)(((byte)(154))))); clockStyleData1.SmallTickColor = colorData8; clockStyleData1.Style = DevComponents.DotNetBar.Controls.eClockStyles.Custom; this.analogClockControl1.ClockStyleData = clockStyleData1; this.analogClockControl1.ForeColor = System.Drawing.Color.Black; this.analogClockControl1.Location = new System.Drawing.Point(28, 12); this.analogClockControl1.Name = "analogClockControl1"; this.analogClockControl1.Size = new System.Drawing.Size(100, 100); this.analogClockControl1.TabIndex = 5; this.analogClockControl1.Text = "analogClockControl1"; this.analogClockControl1.Value = new System.DateTime(2016, 1, 4, 17, 57, 6, 865); // // timer1 // this.timer1.Enabled = true; this.timer1.Interval = 1; this.timer1.Tick += new System.EventHandler(this.timer1_Tick); // // label3 // this.label3.BackColor = System.Drawing.Color.Snow; this.label3.ForeColor = System.Drawing.Color.Black; this.label3.Location = new System.Drawing.Point(34, 120); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(88, 21); this.label3.TabIndex = 6; this.label3.Text = "00:00:00"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // styleManager1 // this.styleManager1.ManagerColorTint = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(128))))); this.styleManager1.ManagerStyle = DevComponents.DotNetBar.eStyle.Metro; this.styleManager1.MetroColorParameters = new DevComponents.DotNetBar.Metro.ColorTables.MetroColorGeneratorParameters(System.Drawing.Color.Snow, System.Drawing.Color.Gold); // // FLogin // this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.ClientSize = new System.Drawing.Size(437, 170); this.Controls.Add(this.label3); this.Controls.Add(this.analogClockControl1); this.Controls.Add(this.buttonX2); this.Controls.Add(this.buttonX1); this.Controls.Add(this.textBox2); this.Controls.Add(this.textBox1); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.DoubleBuffered = true; this.Font = new System.Drawing.Font("WeblogmaYekan", 9.749999F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(178))); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); this.MaximizeBox = false; this.MaximumSize = new System.Drawing.Size(439, 202); this.MinimizeBox = false; this.MinimumSize = new System.Drawing.Size(439, 202); this.Name = "FLogin"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "ورود به سیستم"; this.TopMost = true; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.F_Login_FormClosing); this.Load += new System.EventHandler(this.F_Login_Load); this.ResumeLayout(false); this.PerformLayout(); }