private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.metroTabControl1 = new MetroFramework.Controls.MetroTabControl(); this.Favs = new MetroFramework.Controls.MetroTabPage(); this.ServerPage = new MetroFramework.Controls.MetroTabPage(); this.SAMPPlus = new MetroFramework.Controls.MetroTabPage(); this.Hosted = new MetroFramework.Controls.MetroTabPage(); this.metroStyleManager = new MetroFramework.Components.MetroStyleManager(this.components); this.metroProgressSpinner1 = new MetroFramework.Controls.MetroProgressSpinner(); this.metroScrollBar1 = new MetroFramework.Controls.MetroScrollBar(); this.metroTabControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.metroStyleManager)).BeginInit(); this.SuspendLayout(); // // metroTabControl1 // this.metroTabControl1.Controls.Add(this.Favs); this.metroTabControl1.Controls.Add(this.ServerPage); this.metroTabControl1.Controls.Add(this.SAMPPlus); this.metroTabControl1.Controls.Add(this.Hosted); this.metroTabControl1.Location = new System.Drawing.Point(4, 32); this.metroTabControl1.Name = "metroTabControl1"; this.metroTabControl1.SelectedIndex = 0; this.metroTabControl1.Size = new System.Drawing.Size(740, 36); this.metroTabControl1.Style = MetroFramework.MetroColorStyle.Lime; this.metroTabControl1.TabIndex = 0; this.metroTabControl1.UseSelectable = true; // // Favs // this.Favs.AutoScroll = true; this.Favs.HorizontalScrollbar = true; this.Favs.HorizontalScrollbarBarColor = true; this.Favs.HorizontalScrollbarHighlightOnWheel = false; this.Favs.HorizontalScrollbarSize = 10; this.Favs.Location = new System.Drawing.Point(4, 38); this.Favs.Name = "Favs"; this.Favs.Padding = new System.Windows.Forms.Padding(25); this.Favs.Size = new System.Drawing.Size(732, 0); this.Favs.TabIndex = 0; this.Favs.Text = "Favourites"; this.Favs.VerticalScrollbar = true; this.Favs.VerticalScrollbarBarColor = true; this.Favs.VerticalScrollbarHighlightOnWheel = false; this.Favs.VerticalScrollbarSize = 10; // // ServerPage // this.ServerPage.AutoScroll = true; this.ServerPage.HorizontalScrollbar = true; this.ServerPage.HorizontalScrollbarBarColor = true; this.ServerPage.HorizontalScrollbarHighlightOnWheel = false; this.ServerPage.HorizontalScrollbarSize = 10; this.ServerPage.Location = new System.Drawing.Point(4, 35); this.ServerPage.Name = "ServerPage"; this.ServerPage.Padding = new System.Windows.Forms.Padding(25); this.ServerPage.Size = new System.Drawing.Size(732, -3); this.ServerPage.TabIndex = 0; this.ServerPage.Text = "Servers"; this.ServerPage.VerticalScrollbar = true; this.ServerPage.VerticalScrollbarBarColor = true; this.ServerPage.VerticalScrollbarHighlightOnWheel = false; this.ServerPage.VerticalScrollbarSize = 10; // // SAMPPlus // this.SAMPPlus.AutoScroll = true; this.SAMPPlus.HorizontalScrollbar = true; this.SAMPPlus.HorizontalScrollbarBarColor = true; this.SAMPPlus.HorizontalScrollbarHighlightOnWheel = false; this.SAMPPlus.HorizontalScrollbarSize = 10; this.SAMPPlus.Location = new System.Drawing.Point(4, 35); this.SAMPPlus.Name = "SAMPPlus"; this.SAMPPlus.Padding = new System.Windows.Forms.Padding(25); this.SAMPPlus.Size = new System.Drawing.Size(732, -3); this.SAMPPlus.TabIndex = 0; this.SAMPPlus.Text = "SAMP+ Servers"; this.SAMPPlus.VerticalScrollbar = true; this.SAMPPlus.VerticalScrollbarBarColor = true; this.SAMPPlus.VerticalScrollbarHighlightOnWheel = false; this.SAMPPlus.VerticalScrollbarSize = 10; // // Hosted // this.Hosted.AutoScroll = true; this.Hosted.HorizontalScrollbar = true; this.Hosted.HorizontalScrollbarBarColor = true; this.Hosted.HorizontalScrollbarHighlightOnWheel = false; this.Hosted.HorizontalScrollbarSize = 10; this.Hosted.Location = new System.Drawing.Point(4, 35); this.Hosted.Name = "Hosted"; this.Hosted.Padding = new System.Windows.Forms.Padding(25); this.Hosted.Size = new System.Drawing.Size(732, -3); this.Hosted.TabIndex = 0; this.Hosted.Text = "Hosted"; this.Hosted.VerticalScrollbar = true; this.Hosted.VerticalScrollbarBarColor = true; this.Hosted.VerticalScrollbarHighlightOnWheel = false; this.Hosted.VerticalScrollbarSize = 10; // // metroStyleManager // this.metroStyleManager.Owner = null; // // metroProgressSpinner1 // this.metroProgressSpinner1.Backwards = true; this.metroProgressSpinner1.Location = new System.Drawing.Point(4, 459); this.metroProgressSpinner1.Maximum = 100; this.metroProgressSpinner1.Minimum = 20; this.metroProgressSpinner1.Name = "metroProgressSpinner1"; this.metroProgressSpinner1.Size = new System.Drawing.Size(16, 16); this.metroProgressSpinner1.Style = MetroFramework.MetroColorStyle.Lime; this.metroProgressSpinner1.TabIndex = 1; this.metroProgressSpinner1.UseSelectable = true; this.metroProgressSpinner1.UseStyleColors = true; this.metroProgressSpinner1.Value = 20; // // metroScrollBar1 // this.metroScrollBar1.LargeChange = 10; this.metroScrollBar1.Location = new System.Drawing.Point(730, 76); this.metroScrollBar1.Maximum = 100; this.metroScrollBar1.Minimum = 0; this.metroScrollBar1.MouseWheelBarPartitions = 10; this.metroScrollBar1.Name = "metroScrollBar1"; this.metroScrollBar1.Orientation = MetroFramework.Controls.MetroScrollOrientation.Vertical; this.metroScrollBar1.ScrollbarSize = 10; this.metroScrollBar1.Size = new System.Drawing.Size(10, 200); this.metroScrollBar1.TabIndex = 2; this.metroScrollBar1.UseSelectable = true; // // MainForm // this.ClientSize = new System.Drawing.Size(767, 483); this.Controls.Add(this.metroScrollBar1); this.Controls.Add(this.metroProgressSpinner1); this.Controls.Add(this.metroTabControl1); this.Name = "MainForm"; this.Style = MetroFramework.MetroColorStyle.Lime; this.metroTabControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.metroStyleManager)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this._horizontal = new MetroFramework.Controls.MetroScrollBar(); this._vertical = new MetroFramework.Controls.MetroScrollBar(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); this.SuspendLayout(); // // _horizontal // this._horizontal.LargeChange = 10; this._horizontal.Location = new System.Drawing.Point(0, 0); this._horizontal.Maximum = 100; this._horizontal.Minimum = 0; this._horizontal.MouseWheelBarPartitions = 10; this._horizontal.Name = "_horizontal"; this._horizontal.Orientation = MetroFramework.Controls.MetroScrollOrientation.Horizontal; this._horizontal.ScrollbarSize = 50; this._horizontal.Size = new System.Drawing.Size(200, 50); this._horizontal.TabIndex = 0; this._horizontal.UseSelectable = true; // // _vertical // this._vertical.LargeChange = 10; this._vertical.Location = new System.Drawing.Point(0, 0); this._vertical.Maximum = 100; this._vertical.Minimum = 0; this._vertical.MouseWheelBarPartitions = 10; this._vertical.Name = "_vertical"; this._vertical.Orientation = MetroFramework.Controls.MetroScrollOrientation.Vertical; this._vertical.ScrollbarSize = 50; this._vertical.Size = new System.Drawing.Size(50, 200); this._vertical.TabIndex = 0; this._vertical.UseSelectable = true; ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(UserControlAdminAddPatient)); this.metroDateTime1 = new MetroFramework.Controls.MetroDateTime(); this.metroTile2 = new MetroFramework.Controls.MetroTile(); this.metroTextBox5 = new MetroFramework.Controls.MetroTextBox(); this.metroLabel14 = new MetroFramework.Controls.MetroLabel(); this.metroLabel13 = new MetroFramework.Controls.MetroLabel(); this.metroLabel12 = new MetroFramework.Controls.MetroLabel(); this.metroLabel11 = new MetroFramework.Controls.MetroLabel(); this.metroLabel10 = new MetroFramework.Controls.MetroLabel(); this.metroLabel9 = new MetroFramework.Controls.MetroLabel(); this.metroLabel8 = new MetroFramework.Controls.MetroLabel(); this.metroButton1 = new MetroFramework.Controls.MetroButton(); this.metroTextBox7 = new MetroFramework.Controls.MetroTextBox(); this.metroTextBox6 = new MetroFramework.Controls.MetroTextBox(); this.metroTextBox4 = new MetroFramework.Controls.MetroTextBox(); this.metroTextBox3 = new MetroFramework.Controls.MetroTextBox(); this.metroTextBox2 = new MetroFramework.Controls.MetroTextBox(); this.metroTextBox1 = new MetroFramework.Controls.MetroTextBox(); this.metroLabel7 = new MetroFramework.Controls.MetroLabel(); this.metroLabel6 = new MetroFramework.Controls.MetroLabel(); this.metroLabel5 = new MetroFramework.Controls.MetroLabel(); this.metroLabel4 = new MetroFramework.Controls.MetroLabel(); this.metroLabel3 = new MetroFramework.Controls.MetroLabel(); this.metroLabel2 = new MetroFramework.Controls.MetroLabel(); this.metroLabel1 = new MetroFramework.Controls.MetroLabel(); this.metroTextBox8 = new MetroFramework.Controls.MetroTextBox(); this.metroLabel15 = new MetroFramework.Controls.MetroLabel(); this.metroLabel16 = new MetroFramework.Controls.MetroLabel(); this.metroLabel17 = new MetroFramework.Controls.MetroLabel(); this.metroTextBox9 = new MetroFramework.Controls.MetroTextBox(); this.metroTextBox10 = new MetroFramework.Controls.MetroTextBox(); this.metroLabel18 = new MetroFramework.Controls.MetroLabel(); this.metroLabel19 = new MetroFramework.Controls.MetroLabel(); this.metroLabel20 = new MetroFramework.Controls.MetroLabel(); this.metroScrollBar1 = new MetroFramework.Controls.MetroScrollBar(); this.metroLabel21 = new MetroFramework.Controls.MetroLabel(); this.metroTextBox11 = new MetroFramework.Controls.MetroTextBox(); this.metroLabel22 = new MetroFramework.Controls.MetroLabel(); this.SuspendLayout(); // // metroDateTime1 // this.metroDateTime1.Location = new System.Drawing.Point(619, 31); this.metroDateTime1.MinimumSize = new System.Drawing.Size(0, 29); this.metroDateTime1.Name = "metroDateTime1"; this.metroDateTime1.Size = new System.Drawing.Size(206, 29); this.metroDateTime1.TabIndex = 85; // // metroTile2 // this.metroTile2.ActiveControl = null; this.metroTile2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); this.metroTile2.ForeColor = System.Drawing.SystemColors.ControlText; this.metroTile2.Location = new System.Drawing.Point(95, 40); this.metroTile2.Name = "metroTile2"; this.metroTile2.Size = new System.Drawing.Size(40, 20); this.metroTile2.TabIndex = 84; this.metroTile2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.metroTile2.TileImage = ((System.Drawing.Image)(resources.GetObject("metroTile2.TileImage"))); this.metroTile2.TileImageAlign = System.Drawing.ContentAlignment.MiddleCenter; this.metroTile2.TileTextFontWeight = MetroFramework.MetroTileTextWeight.Bold; this.metroTile2.UseCustomForeColor = true; this.metroTile2.UseSelectable = true; this.metroTile2.UseTileImage = true; // // metroTextBox5 // // // // this.metroTextBox5.CustomButton.Image = null; this.metroTextBox5.CustomButton.Location = new System.Drawing.Point(272, 1); this.metroTextBox5.CustomButton.Name = ""; this.metroTextBox5.CustomButton.Size = new System.Drawing.Size(43, 43); this.metroTextBox5.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; this.metroTextBox5.CustomButton.TabIndex = 1; this.metroTextBox5.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; this.metroTextBox5.CustomButton.UseSelectable = true; this.metroTextBox5.CustomButton.Visible = false; this.metroTextBox5.Lines = new string[0]; this.metroTextBox5.Location = new System.Drawing.Point(284, 243); this.metroTextBox5.MaxLength = 32767; this.metroTextBox5.Name = "metroTextBox5"; this.metroTextBox5.PasswordChar = '\0'; this.metroTextBox5.ScrollBars = System.Windows.Forms.ScrollBars.None; this.metroTextBox5.SelectedText = ""; this.metroTextBox5.SelectionLength = 0; this.metroTextBox5.SelectionStart = 0; this.metroTextBox5.ShortcutsEnabled = true; this.metroTextBox5.Size = new System.Drawing.Size(316, 45); this.metroTextBox5.TabIndex = 83; this.metroTextBox5.Theme = MetroFramework.MetroThemeStyle.Dark; this.metroTextBox5.UseSelectable = true; this.metroTextBox5.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); this.metroTextBox5.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel); this.metroTextBox5.Click += new System.EventHandler(this.metroTextBox5_Click); // // metroLabel14 // this.metroLabel14.AutoSize = true; this.metroLabel14.Location = new System.Drawing.Point(230, 411); this.metroLabel14.Name = "metroLabel14"; this.metroLabel14.Size = new System.Drawing.Size(12, 19); this.metroLabel14.TabIndex = 82; this.metroLabel14.Text = ":"; this.metroLabel14.Theme = MetroFramework.MetroThemeStyle.Dark; // // metroLabel13 // this.metroLabel13.AutoSize = true; this.metroLabel13.Location = new System.Drawing.Point(230, 318); this.metroLabel13.Name = "metroLabel13"; this.metroLabel13.Size = new System.Drawing.Size(12, 19); this.metroLabel13.TabIndex = 81; this.metroLabel13.Text = ":"; this.metroLabel13.Theme = MetroFramework.MetroThemeStyle.Dark; // // metroLabel12 // this.metroLabel12.AutoSize = true; this.metroLabel12.Location = new System.Drawing.Point(230, 254); this.metroLabel12.Name = "metroLabel12"; this.metroLabel12.Size = new System.Drawing.Size(12, 19); this.metroLabel12.TabIndex = 80; this.metroLabel12.Text = ":"; this.metroLabel12.Theme = MetroFramework.MetroThemeStyle.Dark; // // metroLabel11 // this.metroLabel11.AutoSize = true; this.metroLabel11.Location = new System.Drawing.Point(230, 200); this.metroLabel11.Name = "metroLabel11"; this.metroLabel11.Size = new System.Drawing.Size(12, 19); this.metroLabel11.TabIndex = 79; this.metroLabel11.Text = ":"; this.metroLabel11.Theme = MetroFramework.MetroThemeStyle.Dark; // // metroLabel10 // this.metroLabel10.AutoSize = true; this.metroLabel10.Location = new System.Drawing.Point(230, 153); this.metroLabel10.Name = "metroLabel10"; this.metroLabel10.Size = new System.Drawing.Size(12, 19); this.metroLabel10.TabIndex = 78; this.metroLabel10.Text = ":"; this.metroLabel10.Theme = MetroFramework.MetroThemeStyle.Dark; // // metroLabel9 // this.metroLabel9.AutoSize = true; this.metroLabel9.Location = new System.Drawing.Point(230, 110); this.metroLabel9.Name = "metroLabel9"; this.metroLabel9.Size = new System.Drawing.Size(12, 19); this.metroLabel9.TabIndex = 77; this.metroLabel9.Text = ":"; this.metroLabel9.Theme = MetroFramework.MetroThemeStyle.Dark; // // metroLabel8 // this.metroLabel8.AutoSize = true; this.metroLabel8.Location = new System.Drawing.Point(230, 64); this.metroLabel8.Name = "metroLabel8"; this.metroLabel8.Size = new System.Drawing.Size(12, 19); this.metroLabel8.TabIndex = 76; this.metroLabel8.Text = ":"; this.metroLabel8.Theme = MetroFramework.MetroThemeStyle.Dark; // // metroButton1 // this.metroButton1.Location = new System.Drawing.Point(652, 504); this.metroButton1.Name = "metroButton1"; this.metroButton1.Size = new System.Drawing.Size(75, 23); this.metroButton1.TabIndex = 75; this.metroButton1.Text = "Submit"; this.metroButton1.Theme = MetroFramework.MetroThemeStyle.Light; this.metroButton1.UseSelectable = true; this.metroButton1.Click += new System.EventHandler(this.metroButton1_Click); // // metroTextBox7 // // // // this.metroTextBox7.CustomButton.Image = null; this.metroTextBox7.CustomButton.Location = new System.Drawing.Point(294, 1); this.metroTextBox7.CustomButton.Name = ""; this.metroTextBox7.CustomButton.Size = new System.Drawing.Size(21, 21); this.metroTextBox7.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; this.metroTextBox7.CustomButton.TabIndex = 1; this.metroTextBox7.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; this.metroTextBox7.CustomButton.UseSelectable = true; this.metroTextBox7.CustomButton.Visible = false; this.metroTextBox7.Lines = new string[0]; this.metroTextBox7.Location = new System.Drawing.Point(284, 407); this.metroTextBox7.MaxLength = 32767; this.metroTextBox7.Name = "metroTextBox7"; this.metroTextBox7.PasswordChar = '\0'; this.metroTextBox7.ScrollBars = System.Windows.Forms.ScrollBars.None; this.metroTextBox7.SelectedText = ""; this.metroTextBox7.SelectionLength = 0; this.metroTextBox7.SelectionStart = 0; this.metroTextBox7.ShortcutsEnabled = true; this.metroTextBox7.Size = new System.Drawing.Size(316, 23); this.metroTextBox7.TabIndex = 73; this.metroTextBox7.Theme = MetroFramework.MetroThemeStyle.Dark; this.metroTextBox7.UseSelectable = true; this.metroTextBox7.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); this.metroTextBox7.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel); this.metroTextBox7.Click += new System.EventHandler(this.metroTextBox7_Click); // // metroTextBox6 // // // // this.metroTextBox6.CustomButton.Image = null; this.metroTextBox6.CustomButton.Location = new System.Drawing.Point(294, 1); this.metroTextBox6.CustomButton.Name = ""; this.metroTextBox6.CustomButton.Size = new System.Drawing.Size(21, 21); this.metroTextBox6.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; this.metroTextBox6.CustomButton.TabIndex = 1; this.metroTextBox6.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; this.metroTextBox6.CustomButton.UseSelectable = true; this.metroTextBox6.CustomButton.Visible = false; this.metroTextBox6.Lines = new string[0]; this.metroTextBox6.Location = new System.Drawing.Point(284, 310); this.metroTextBox6.MaxLength = 32767; this.metroTextBox6.Name = "metroTextBox6"; this.metroTextBox6.PasswordChar = '\0'; this.metroTextBox6.ScrollBars = System.Windows.Forms.ScrollBars.None; this.metroTextBox6.SelectedText = ""; this.metroTextBox6.SelectionLength = 0; this.metroTextBox6.SelectionStart = 0; this.metroTextBox6.ShortcutsEnabled = true; this.metroTextBox6.Size = new System.Drawing.Size(316, 23); this.metroTextBox6.TabIndex = 72; this.metroTextBox6.Theme = MetroFramework.MetroThemeStyle.Dark; this.metroTextBox6.UseSelectable = true; this.metroTextBox6.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); this.metroTextBox6.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel); this.metroTextBox6.Click += new System.EventHandler(this.metroTextBox6_Click); // // metroTextBox4 // // // // this.metroTextBox4.CustomButton.Image = null; this.metroTextBox4.CustomButton.Location = new System.Drawing.Point(294, 1); this.metroTextBox4.CustomButton.Name = ""; this.metroTextBox4.CustomButton.Size = new System.Drawing.Size(21, 21); this.metroTextBox4.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; this.metroTextBox4.CustomButton.TabIndex = 1; this.metroTextBox4.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; this.metroTextBox4.CustomButton.UseSelectable = true; this.metroTextBox4.CustomButton.Visible = false; this.metroTextBox4.Lines = new string[0]; this.metroTextBox4.Location = new System.Drawing.Point(284, 196); this.metroTextBox4.MaxLength = 32767; this.metroTextBox4.Name = "metroTextBox4"; this.metroTextBox4.PasswordChar = '\0'; this.metroTextBox4.ScrollBars = System.Windows.Forms.ScrollBars.None; this.metroTextBox4.SelectedText = ""; this.metroTextBox4.SelectionLength = 0; this.metroTextBox4.SelectionStart = 0; this.metroTextBox4.ShortcutsEnabled = true; this.metroTextBox4.Size = new System.Drawing.Size(316, 23); this.metroTextBox4.TabIndex = 71; this.metroTextBox4.Theme = MetroFramework.MetroThemeStyle.Dark; this.metroTextBox4.UseSelectable = true; this.metroTextBox4.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); this.metroTextBox4.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel); this.metroTextBox4.Click += new System.EventHandler(this.metroTextBox4_Click); // // metroTextBox3 // // // // this.metroTextBox3.CustomButton.Image = null; this.metroTextBox3.CustomButton.Location = new System.Drawing.Point(294, 1); this.metroTextBox3.CustomButton.Name = ""; this.metroTextBox3.CustomButton.Size = new System.Drawing.Size(21, 21); this.metroTextBox3.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; this.metroTextBox3.CustomButton.TabIndex = 1; this.metroTextBox3.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; this.metroTextBox3.CustomButton.UseSelectable = true; this.metroTextBox3.CustomButton.Visible = false; this.metroTextBox3.Lines = new string[0]; this.metroTextBox3.Location = new System.Drawing.Point(284, 149); this.metroTextBox3.MaxLength = 32767; this.metroTextBox3.Name = "metroTextBox3"; this.metroTextBox3.PasswordChar = '\0'; this.metroTextBox3.ScrollBars = System.Windows.Forms.ScrollBars.None; this.metroTextBox3.SelectedText = ""; this.metroTextBox3.SelectionLength = 0; this.metroTextBox3.SelectionStart = 0; this.metroTextBox3.ShortcutsEnabled = true; this.metroTextBox3.Size = new System.Drawing.Size(316, 23); this.metroTextBox3.TabIndex = 70; this.metroTextBox3.Theme = MetroFramework.MetroThemeStyle.Dark; this.metroTextBox3.UseSelectable = true; this.metroTextBox3.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); this.metroTextBox3.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel); this.metroTextBox3.Click += new System.EventHandler(this.metroTextBox3_Click); // // metroTextBox2 // // // // this.metroTextBox2.CustomButton.Image = null; this.metroTextBox2.CustomButton.Location = new System.Drawing.Point(294, 1); this.metroTextBox2.CustomButton.Name = ""; this.metroTextBox2.CustomButton.Size = new System.Drawing.Size(21, 21); this.metroTextBox2.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; this.metroTextBox2.CustomButton.TabIndex = 1; this.metroTextBox2.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; this.metroTextBox2.CustomButton.UseSelectable = true; this.metroTextBox2.CustomButton.Visible = false; this.metroTextBox2.Lines = new string[0]; this.metroTextBox2.Location = new System.Drawing.Point(284, 106); this.metroTextBox2.MaxLength = 32767; this.metroTextBox2.Name = "metroTextBox2"; this.metroTextBox2.PasswordChar = '\0'; this.metroTextBox2.ScrollBars = System.Windows.Forms.ScrollBars.None; this.metroTextBox2.SelectedText = ""; this.metroTextBox2.SelectionLength = 0; this.metroTextBox2.SelectionStart = 0; this.metroTextBox2.ShortcutsEnabled = true; this.metroTextBox2.Size = new System.Drawing.Size(316, 23); this.metroTextBox2.TabIndex = 69; this.metroTextBox2.Theme = MetroFramework.MetroThemeStyle.Dark; this.metroTextBox2.UseSelectable = true; this.metroTextBox2.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); this.metroTextBox2.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel); this.metroTextBox2.Click += new System.EventHandler(this.metroTextBox2_Click); // // metroTextBox1 // // // // this.metroTextBox1.CustomButton.Image = null; this.metroTextBox1.CustomButton.Location = new System.Drawing.Point(294, 1); this.metroTextBox1.CustomButton.Name = ""; this.metroTextBox1.CustomButton.Size = new System.Drawing.Size(21, 21); this.metroTextBox1.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; this.metroTextBox1.CustomButton.TabIndex = 1; this.metroTextBox1.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; this.metroTextBox1.CustomButton.UseSelectable = true; this.metroTextBox1.CustomButton.Visible = false; this.metroTextBox1.Lines = new string[0]; this.metroTextBox1.Location = new System.Drawing.Point(284, 61); this.metroTextBox1.MaxLength = 32767; this.metroTextBox1.Name = "metroTextBox1"; this.metroTextBox1.PasswordChar = '\0'; this.metroTextBox1.ScrollBars = System.Windows.Forms.ScrollBars.None; this.metroTextBox1.SelectedText = ""; this.metroTextBox1.SelectionLength = 0; this.metroTextBox1.SelectionStart = 0; this.metroTextBox1.ShortcutsEnabled = true; this.metroTextBox1.Size = new System.Drawing.Size(316, 23); this.metroTextBox1.TabIndex = 68; this.metroTextBox1.Theme = MetroFramework.MetroThemeStyle.Dark; this.metroTextBox1.UseSelectable = true; this.metroTextBox1.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); this.metroTextBox1.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel); this.metroTextBox1.Click += new System.EventHandler(this.metroTextBox1_Click); // // metroLabel7 // this.metroLabel7.AutoSize = true; this.metroLabel7.Location = new System.Drawing.Point(145, 407); this.metroLabel7.Name = "metroLabel7"; this.metroLabel7.Size = new System.Drawing.Size(85, 19); this.metroLabel7.TabIndex = 67; this.metroLabel7.Text = "Blood Group"; this.metroLabel7.Theme = MetroFramework.MetroThemeStyle.Dark; // // metroLabel6 // this.metroLabel6.AutoSize = true; this.metroLabel6.Location = new System.Drawing.Point(145, 314); this.metroLabel6.Name = "metroLabel6"; this.metroLabel6.Size = new System.Drawing.Size(56, 19); this.metroLabel6.TabIndex = 66; this.metroLabel6.Text = "Address"; this.metroLabel6.Theme = MetroFramework.MetroThemeStyle.Dark; // // metroLabel5 // this.metroLabel5.AutoSize = true; this.metroLabel5.Location = new System.Drawing.Point(145, 254); this.metroLabel5.Name = "metroLabel5"; this.metroLabel5.Size = new System.Drawing.Size(37, 19); this.metroLabel5.TabIndex = 65; this.metroLabel5.Text = "DOB"; this.metroLabel5.Theme = MetroFramework.MetroThemeStyle.Dark; // // metroLabel4 // this.metroLabel4.AutoSize = true; this.metroLabel4.Location = new System.Drawing.Point(145, 200); this.metroLabel4.Name = "metroLabel4"; this.metroLabel4.Size = new System.Drawing.Size(52, 19); this.metroLabel4.TabIndex = 64; this.metroLabel4.Text = "Gender"; this.metroLabel4.Theme = MetroFramework.MetroThemeStyle.Dark; // // metroLabel3 // this.metroLabel3.AutoSize = true; this.metroLabel3.Location = new System.Drawing.Point(145, 153); this.metroLabel3.Name = "metroLabel3"; this.metroLabel3.Size = new System.Drawing.Size(33, 19); this.metroLabel3.TabIndex = 63; this.metroLabel3.Text = "Age"; this.metroLabel3.Theme = MetroFramework.MetroThemeStyle.Dark; // // metroLabel2 // this.metroLabel2.AutoSize = true; this.metroLabel2.Location = new System.Drawing.Point(145, 110); this.metroLabel2.Name = "metroLabel2"; this.metroLabel2.Size = new System.Drawing.Size(45, 19); this.metroLabel2.TabIndex = 62; this.metroLabel2.Text = "Name"; this.metroLabel2.Theme = MetroFramework.MetroThemeStyle.Dark; // // metroLabel1 // this.metroLabel1.AutoSize = true; this.metroLabel1.Location = new System.Drawing.Point(145, 65); this.metroLabel1.Name = "metroLabel1"; this.metroLabel1.Size = new System.Drawing.Size(21, 19); this.metroLabel1.TabIndex = 61; this.metroLabel1.Text = "ID"; this.metroLabel1.Theme = MetroFramework.MetroThemeStyle.Dark; // // metroTextBox8 // // // // this.metroTextBox8.CustomButton.Image = null; this.metroTextBox8.CustomButton.Location = new System.Drawing.Point(294, 1); this.metroTextBox8.CustomButton.Name = ""; this.metroTextBox8.CustomButton.Size = new System.Drawing.Size(21, 21); this.metroTextBox8.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; this.metroTextBox8.CustomButton.TabIndex = 1; this.metroTextBox8.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; this.metroTextBox8.CustomButton.UseSelectable = true; this.metroTextBox8.CustomButton.Visible = false; this.metroTextBox8.Lines = new string[0]; this.metroTextBox8.Location = new System.Drawing.Point(284, 454); this.metroTextBox8.MaxLength = 32767; this.metroTextBox8.Name = "metroTextBox8"; this.metroTextBox8.PasswordChar = '\0'; this.metroTextBox8.ScrollBars = System.Windows.Forms.ScrollBars.None; this.metroTextBox8.SelectedText = ""; this.metroTextBox8.SelectionLength = 0; this.metroTextBox8.SelectionStart = 0; this.metroTextBox8.ShortcutsEnabled = true; this.metroTextBox8.Size = new System.Drawing.Size(316, 23); this.metroTextBox8.TabIndex = 94; this.metroTextBox8.Theme = MetroFramework.MetroThemeStyle.Dark; this.metroTextBox8.UseSelectable = true; this.metroTextBox8.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); this.metroTextBox8.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel); this.metroTextBox8.Click += new System.EventHandler(this.metroTextBox8_Click); // // metroLabel15 // this.metroLabel15.AutoSize = true; this.metroLabel15.Location = new System.Drawing.Point(230, 563); this.metroLabel15.Name = "metroLabel15"; this.metroLabel15.Size = new System.Drawing.Size(12, 19); this.metroLabel15.TabIndex = 93; this.metroLabel15.Text = ":"; this.metroLabel15.Theme = MetroFramework.MetroThemeStyle.Dark; // // metroLabel16 // this.metroLabel16.AutoSize = true; this.metroLabel16.Location = new System.Drawing.Point(230, 516); this.metroLabel16.Name = "metroLabel16"; this.metroLabel16.Size = new System.Drawing.Size(12, 19); this.metroLabel16.TabIndex = 92; this.metroLabel16.Text = ":"; this.metroLabel16.Theme = MetroFramework.MetroThemeStyle.Dark; // // metroLabel17 // this.metroLabel17.AutoSize = true; this.metroLabel17.Location = new System.Drawing.Point(230, 452); this.metroLabel17.Name = "metroLabel17"; this.metroLabel17.Size = new System.Drawing.Size(12, 19); this.metroLabel17.TabIndex = 91; this.metroLabel17.Text = ":"; this.metroLabel17.Theme = MetroFramework.MetroThemeStyle.Dark; // // metroTextBox9 // // // // this.metroTextBox9.CustomButton.Image = null; this.metroTextBox9.CustomButton.Location = new System.Drawing.Point(294, 1); this.metroTextBox9.CustomButton.Name = ""; this.metroTextBox9.CustomButton.Size = new System.Drawing.Size(21, 21); this.metroTextBox9.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; this.metroTextBox9.CustomButton.TabIndex = 1; this.metroTextBox9.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; this.metroTextBox9.CustomButton.UseSelectable = true; this.metroTextBox9.CustomButton.Visible = false; this.metroTextBox9.Lines = new string[0]; this.metroTextBox9.Location = new System.Drawing.Point(284, 559); this.metroTextBox9.MaxLength = 32767; this.metroTextBox9.Name = "metroTextBox9"; this.metroTextBox9.PasswordChar = '\0'; this.metroTextBox9.ScrollBars = System.Windows.Forms.ScrollBars.None; this.metroTextBox9.SelectedText = ""; this.metroTextBox9.SelectionLength = 0; this.metroTextBox9.SelectionStart = 0; this.metroTextBox9.ShortcutsEnabled = true; this.metroTextBox9.Size = new System.Drawing.Size(316, 23); this.metroTextBox9.TabIndex = 90; this.metroTextBox9.Theme = MetroFramework.MetroThemeStyle.Dark; this.metroTextBox9.UseSelectable = true; this.metroTextBox9.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); this.metroTextBox9.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel); this.metroTextBox9.Click += new System.EventHandler(this.metroTextBox9_Click); // // metroTextBox10 // // // // this.metroTextBox10.CustomButton.Image = null; this.metroTextBox10.CustomButton.Location = new System.Drawing.Point(294, 1); this.metroTextBox10.CustomButton.Name = ""; this.metroTextBox10.CustomButton.Size = new System.Drawing.Size(21, 21); this.metroTextBox10.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; this.metroTextBox10.CustomButton.TabIndex = 1; this.metroTextBox10.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; this.metroTextBox10.CustomButton.UseSelectable = true; this.metroTextBox10.CustomButton.Visible = false; this.metroTextBox10.Lines = new string[0]; this.metroTextBox10.Location = new System.Drawing.Point(284, 508); this.metroTextBox10.MaxLength = 32767; this.metroTextBox10.Name = "metroTextBox10"; this.metroTextBox10.PasswordChar = '\0'; this.metroTextBox10.ScrollBars = System.Windows.Forms.ScrollBars.None; this.metroTextBox10.SelectedText = ""; this.metroTextBox10.SelectionLength = 0; this.metroTextBox10.SelectionStart = 0; this.metroTextBox10.ShortcutsEnabled = true; this.metroTextBox10.Size = new System.Drawing.Size(316, 23); this.metroTextBox10.TabIndex = 89; this.metroTextBox10.Theme = MetroFramework.MetroThemeStyle.Dark; this.metroTextBox10.UseSelectable = true; this.metroTextBox10.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); this.metroTextBox10.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel); this.metroTextBox10.Click += new System.EventHandler(this.metroTextBox10_Click); // // metroLabel18 // this.metroLabel18.AutoSize = true; this.metroLabel18.Location = new System.Drawing.Point(145, 559); this.metroLabel18.Name = "metroLabel18"; this.metroLabel18.Size = new System.Drawing.Size(89, 19); this.metroLabel18.TabIndex = 88; this.metroLabel18.Text = "Doctor Name"; this.metroLabel18.Theme = MetroFramework.MetroThemeStyle.Dark; // // metroLabel19 // this.metroLabel19.AutoSize = true; this.metroLabel19.Location = new System.Drawing.Point(130, 512); this.metroLabel19.Name = "metroLabel19"; this.metroLabel19.Size = new System.Drawing.Size(96, 19); this.metroLabel19.TabIndex = 87; this.metroLabel19.Text = "Date Of Relase"; this.metroLabel19.Theme = MetroFramework.MetroThemeStyle.Dark; // // metroLabel20 // this.metroLabel20.AutoSize = true; this.metroLabel20.Location = new System.Drawing.Point(145, 452); this.metroLabel20.Name = "metroLabel20"; this.metroLabel20.Size = new System.Drawing.Size(67, 19); this.metroLabel20.TabIndex = 86; this.metroLabel20.Text = "Room No"; this.metroLabel20.Theme = MetroFramework.MetroThemeStyle.Dark; // // metroScrollBar1 // this.metroScrollBar1.LargeChange = 10; this.metroScrollBar1.Location = new System.Drawing.Point(796, 77); this.metroScrollBar1.Maximum = 100; this.metroScrollBar1.Minimum = 0; this.metroScrollBar1.MouseWheelBarPartitions = 10; this.metroScrollBar1.Name = "metroScrollBar1"; this.metroScrollBar1.Orientation = MetroFramework.Controls.MetroScrollOrientation.Vertical; this.metroScrollBar1.ScrollbarSize = 10; this.metroScrollBar1.Size = new System.Drawing.Size(10, 450); this.metroScrollBar1.Style = MetroFramework.MetroColorStyle.Blue; this.metroScrollBar1.TabIndex = 95; this.metroScrollBar1.Theme = MetroFramework.MetroThemeStyle.Dark; this.metroScrollBar1.UseSelectable = true; // // metroLabel21 // this.metroLabel21.AutoSize = true; this.metroLabel21.Location = new System.Drawing.Point(230, 364); this.metroLabel21.Name = "metroLabel21"; this.metroLabel21.Size = new System.Drawing.Size(12, 19); this.metroLabel21.TabIndex = 98; this.metroLabel21.Text = ":"; this.metroLabel21.Theme = MetroFramework.MetroThemeStyle.Dark; // // metroTextBox11 // // // // this.metroTextBox11.CustomButton.Image = null; this.metroTextBox11.CustomButton.Location = new System.Drawing.Point(294, 1); this.metroTextBox11.CustomButton.Name = ""; this.metroTextBox11.CustomButton.Size = new System.Drawing.Size(21, 21); this.metroTextBox11.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; this.metroTextBox11.CustomButton.TabIndex = 1; this.metroTextBox11.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; this.metroTextBox11.CustomButton.UseSelectable = true; this.metroTextBox11.CustomButton.Visible = false; this.metroTextBox11.Lines = new string[0]; this.metroTextBox11.Location = new System.Drawing.Point(284, 365); this.metroTextBox11.MaxLength = 32767; this.metroTextBox11.Name = "metroTextBox11"; this.metroTextBox11.PasswordChar = '\0'; this.metroTextBox11.ScrollBars = System.Windows.Forms.ScrollBars.None; this.metroTextBox11.SelectedText = ""; this.metroTextBox11.SelectionLength = 0; this.metroTextBox11.SelectionStart = 0; this.metroTextBox11.ShortcutsEnabled = true; this.metroTextBox11.Size = new System.Drawing.Size(316, 23); this.metroTextBox11.TabIndex = 97; this.metroTextBox11.Theme = MetroFramework.MetroThemeStyle.Dark; this.metroTextBox11.UseSelectable = true; this.metroTextBox11.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); this.metroTextBox11.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel); this.metroTextBox11.Click += new System.EventHandler(this.metroTextBox11_Click); // // metroLabel22 // this.metroLabel22.AutoSize = true; this.metroLabel22.Location = new System.Drawing.Point(145, 365); this.metroLabel22.Name = "metroLabel22"; this.metroLabel22.Size = new System.Drawing.Size(46, 19); this.metroLabel22.TabIndex = 96; this.metroLabel22.Text = "Phone"; this.metroLabel22.Theme = MetroFramework.MetroThemeStyle.Dark; // // UserControlAdminAddPatient // this.ClientSize = new System.Drawing.Size(850, 600); this.Controls.Add(this.metroLabel21); this.Controls.Add(this.metroTextBox11); this.Controls.Add(this.metroLabel22); this.Controls.Add(this.metroScrollBar1); this.Controls.Add(this.metroTextBox8); this.Controls.Add(this.metroLabel15); this.Controls.Add(this.metroLabel16); this.Controls.Add(this.metroLabel17); this.Controls.Add(this.metroTextBox9); this.Controls.Add(this.metroTextBox10); this.Controls.Add(this.metroLabel18); this.Controls.Add(this.metroLabel19); this.Controls.Add(this.metroLabel20); this.Controls.Add(this.metroDateTime1); this.Controls.Add(this.metroTile2); this.Controls.Add(this.metroTextBox5); this.Controls.Add(this.metroLabel14); this.Controls.Add(this.metroLabel13); this.Controls.Add(this.metroLabel12); this.Controls.Add(this.metroLabel11); this.Controls.Add(this.metroLabel10); this.Controls.Add(this.metroLabel9); this.Controls.Add(this.metroLabel8); this.Controls.Add(this.metroButton1); this.Controls.Add(this.metroTextBox7); this.Controls.Add(this.metroTextBox6); this.Controls.Add(this.metroTextBox4); this.Controls.Add(this.metroTextBox3); this.Controls.Add(this.metroTextBox2); this.Controls.Add(this.metroTextBox1); this.Controls.Add(this.metroLabel7); this.Controls.Add(this.metroLabel6); this.Controls.Add(this.metroLabel5); this.Controls.Add(this.metroLabel4); this.Controls.Add(this.metroLabel3); this.Controls.Add(this.metroLabel2); this.Controls.Add(this.metroLabel1); this.Name = "UserControlAdminAddPatient"; this.Text = "Add Patient"; this.TextAlign = MetroFramework.Forms.MetroFormTextAlign.Center; this.Theme = MetroFramework.MetroThemeStyle.Dark; this.Load += new System.EventHandler(this.UserControlAdminAddPatient_Load); this.ResumeLayout(false); this.PerformLayout(); }
public RosterGanttControl() { SetStyle(ControlStyles.OptimizedDoubleBuffer, true); SetStyle(ControlStyles.ResizeRedraw, true); SetStyle(ControlStyles.Selectable, true); //hScrollbar = new HScrollBar(); hScrollbar = new MetroFramework.Controls.MetroScrollBar(MetroFramework.Controls.MetroScrollOrientation.Horizontal); hScrollbar.Style = MetroFramework.MetroColorStyle.Black; hScrollbar.SmallChange = halfHourWidth; hScrollbar.LargeChange = halfHourWidth * 2; hScrollbar.Dock = DockStyle.Bottom; hScrollbar.Visible = true; hScrollbar.Scroll += new ScrollEventHandler(hScrollbar_Scroll); //vScrollbar = new VScrollBar(); vScrollbar = new MetroFramework.Controls.MetroScrollBar(MetroFramework.Controls.MetroScrollOrientation.Vertical); vScrollbar.SmallChange = 1;//rowHeight; vScrollbar.LargeChange = 2;// rowHeight * 2; vScrollbar.Dock = DockStyle.Right; vScrollbar.Visible = true; vScrollbar.Scroll += new ScrollEventHandler(vScrollbar_Scroll); AdjustScrollbar(); hScrollbar.Value = 0; vScrollbar.Value = 0; this.Controls.Add(hScrollbar); this.Controls.Add(vScrollbar); drawTool = new DrawTool(); drawTool.RosterGanttView = this; activeTool = drawTool; selectionTool = new SelectionTool(); selectionTool.RosterGanttView = this; selectionTool.Complete += new EventHandler(selectionTool_Complete); editbox = new TextBox(); editbox.Multiline = true; editbox.Visible = false; editbox.BorderStyle = BorderStyle.None; editbox.KeyUp += new KeyEventHandler(editbox_KeyUp); editbox.Margin = Padding.Empty; this.Controls.Add(editbox); lblTip = new Label(); lblTip.Visible = false; lblTip.AutoSize = true; //lblTip.BackColor = System.Drawing.SystemColors.Window; lblTip.BackColor = Color.FromArgb(95, 0, 0, 0);//Roger lblTip.ForeColor = Color.FromArgb(255, 255, 255); lblTip.BorderStyle = System.Windows.Forms.BorderStyle.None; lblTip.MaximumSize = new System.Drawing.Size(200, 400); lblTip.MinimumSize = new System.Drawing.Size(100, 25); lblTip.Padding = new System.Windows.Forms.Padding(5); lblTip.Size = new System.Drawing.Size(100, 25); lblTip.Name = "label3"; this.Controls.Add(lblTip); //this.renderer = new Office12Renderer(); this.renderer = new MetroRenderer(); }
public RosterGanttControl() { SetStyle(ControlStyles.OptimizedDoubleBuffer, true); SetStyle(ControlStyles.ResizeRedraw, true); SetStyle(ControlStyles.Selectable, true); //hScrollbar = new HScrollBar(); hScrollbar = new MetroFramework.Controls.MetroScrollBar(MetroFramework.Controls.MetroScrollOrientation.Horizontal); hScrollbar.Style = MetroFramework.MetroColorStyle.Black; hScrollbar.SmallChange = halfHourWidth; hScrollbar.LargeChange = halfHourWidth * 2; hScrollbar.Dock = DockStyle.Bottom; hScrollbar.Visible = true; hScrollbar.Scroll += new ScrollEventHandler(hScrollbar_Scroll); //vScrollbar = new VScrollBar(); vScrollbar = new MetroFramework.Controls.MetroScrollBar(MetroFramework.Controls.MetroScrollOrientation.Vertical); vScrollbar.SmallChange = 1; //rowHeight; vScrollbar.LargeChange = 2; // rowHeight * 2; vScrollbar.Dock = DockStyle.Right; vScrollbar.Visible = true; vScrollbar.Scroll += new ScrollEventHandler(vScrollbar_Scroll); AdjustScrollbar(); hScrollbar.Value = 0; vScrollbar.Value = 0; this.Controls.Add(hScrollbar); this.Controls.Add(vScrollbar); drawTool = new DrawTool(); drawTool.RosterGanttView = this; activeTool = drawTool; selectionTool = new SelectionTool(); selectionTool.RosterGanttView = this; selectionTool.Complete += new EventHandler(selectionTool_Complete); editbox = new TextBox(); editbox.Multiline = true; editbox.Visible = false; editbox.BorderStyle = BorderStyle.None; editbox.KeyUp += new KeyEventHandler(editbox_KeyUp); editbox.Margin = Padding.Empty; this.Controls.Add(editbox); lblTip = new Label(); lblTip.Visible = false; lblTip.AutoSize = true; //lblTip.BackColor = System.Drawing.SystemColors.Window; lblTip.BackColor = Color.FromArgb(95, 0, 0, 0);//Roger lblTip.ForeColor = Color.FromArgb(255, 255, 255); lblTip.BorderStyle = System.Windows.Forms.BorderStyle.None; lblTip.MaximumSize = new System.Drawing.Size(200, 400); lblTip.MinimumSize = new System.Drawing.Size(100, 25); lblTip.Padding = new System.Windows.Forms.Padding(5); lblTip.Size = new System.Drawing.Size(100, 25); lblTip.Name = "label3"; this.Controls.Add(lblTip); //this.renderer = new Office12Renderer(); this.renderer = new MetroRenderer(); }