private void LinhaAtivaBtn(FontAwesome.Sharp.IconButton btn) { Panel linhaAtiva = new Panel(); linhaAtiva.Size = new Size(btn.Width, 3); linhaAtiva.BackColor = btn.IconColor; linhaAtiva.Location = new Point(0, 33); btn.Controls.Add(linhaAtiva); linhaAtiva.Visible = true; linhaAtiva.BringToFront(); }
private void ButtonSelectedColor(FontAwesome.Sharp.IconButton button) { ButtonAnaSayfaSolMenuAnaSayfa.BackColor = Color.FromArgb(225, 91, 0); ButtonAnaSayfaSolMenuAnaSayfa.IconColor = Color.Gainsboro; ButtonAnaSayfaSolMenuAnaSayfa.ForeColor = Color.Gainsboro; ButtonAnaSayfaSolMenuAnaSayfa.ImageAlign = ContentAlignment.MiddleLeft; ButtonAnaSayfaSolMenuKitapKaydet.BackColor = Color.FromArgb(225, 91, 0); ButtonAnaSayfaSolMenuKitapKaydet.IconColor = Color.Gainsboro; ButtonAnaSayfaSolMenuKitapKaydet.ForeColor = Color.Gainsboro; ButtonAnaSayfaSolMenuKitapKaydet.ImageAlign = ContentAlignment.MiddleLeft; ButtonAnaSayfaSolMenuKitapListele.BackColor = Color.FromArgb(225, 91, 0); ButtonAnaSayfaSolMenuKitapListele.IconColor = Color.Gainsboro; ButtonAnaSayfaSolMenuKitapListele.ForeColor = Color.Gainsboro; ButtonAnaSayfaSolMenuKitapListele.ImageAlign = ContentAlignment.MiddleLeft; ButtonAnaSayfaSolMenuKullanicilar.BackColor = Color.FromArgb(225, 91, 0); ButtonAnaSayfaSolMenuKullanicilar.IconColor = Color.Gainsboro; ButtonAnaSayfaSolMenuKullanicilar.ForeColor = Color.Gainsboro; ButtonAnaSayfaSolMenuKullanicilar.ImageAlign = ContentAlignment.MiddleLeft; ButtonAnaSayfaSolMenuGeriBildirim.BackColor = Color.FromArgb(225, 91, 0); ButtonAnaSayfaSolMenuGeriBildirim.IconColor = Color.Gainsboro; ButtonAnaSayfaSolMenuGeriBildirim.ForeColor = Color.Gainsboro; ButtonAnaSayfaSolMenuGeriBildirim.ImageAlign = ContentAlignment.MiddleLeft; ButtonAnaSayfaSolMenuGirisSayfasinaGit.BackColor = Color.FromArgb(225, 91, 0); ButtonAnaSayfaSolMenuGirisSayfasinaGit.IconColor = Color.Gainsboro; ButtonAnaSayfaSolMenuGirisSayfasinaGit.ForeColor = Color.Gainsboro; ButtonAnaSayfaSolMenuGirisSayfasinaGit.ImageAlign = ContentAlignment.MiddleLeft; ButtonProfil.BackColor = Color.FromArgb(225, 91, 0); ButtonProfil.IconColor = Color.Gainsboro; ButtonProfil.ForeColor = Color.Gainsboro; ButtonProfil.ImageAlign = ContentAlignment.MiddleLeft; button.BackColor = Color.Gainsboro; button.ForeColor = Color.Black; button.IconColor = Color.Black; //button.ImageAlign = ContentAlignment.MiddleRight; }
private void btnPC_Click(object sender, EventArgs e) { if ((sender as FontAwesome.Sharp.IconButton).ForeColor != Color.WhiteSmoke) { (sender as FontAwesome.Sharp.IconButton).ForeColor = Color.WhiteSmoke; (sender as FontAwesome.Sharp.IconButton).IconColor = Color.WhiteSmoke; string name = (sender as FontAwesome.Sharp.IconButton).Name; FontAwesome.Sharp.IconButton btn = sender as FontAwesome.Sharp.IconButton; switch (name) { case "btnPC": btn.BackColor = Color.Black; break; case "btnPS": btn.BackColor = Color.DodgerBlue; break; case "btnXB": btn.BackColor = Color.LimeGreen; break; case "btnSW": btn.BackColor = Color.Red; break; case "btnMB": btn.BackColor = Color.Gray; break; } } else { (sender as FontAwesome.Sharp.IconButton).ForeColor = SystemColors.ControlText; (sender as FontAwesome.Sharp.IconButton).IconColor = SystemColors.ControlText; (sender as FontAwesome.Sharp.IconButton).BackColor = Color.White; } }
private void ActivateButton(object senderBtn, Color color) { if (senderBtn != null && senderBtn != currentBtn) { DisableButton(); //Button currentBtn = (FontAwesome.Sharp.IconButton)senderBtn; currentBtn.BackColor = Color.FromArgb(37, 36, 81); currentBtn.ForeColor = color; currentBtn.TextAlign = ContentAlignment.MiddleCenter; currentBtn.IconColor = color; currentBtn.TextImageRelation = TextImageRelation.TextBeforeImage; currentBtn.ImageAlign = ContentAlignment.MiddleRight; //Left border button leftBorderBtn.BackColor = color; leftBorderBtn.Location = new Point(0, currentBtn.Location.Y); leftBorderBtn.Size = new Size(7, currentBtn.Size.Height); leftBorderBtn.Visible = true; leftBorderBtn.BringToFront(); //Current Child Form Icon } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { FontAwesome.Sharp.IconButton btnCourse; this.panelMenu = new System.Windows.Forms.Panel(); this.btnLogout = new FontAwesome.Sharp.IconButton(); this.btnAboutUs = new FontAwesome.Sharp.IconButton(); this.btnClassRoom = new FontAwesome.Sharp.IconButton(); this.btnDocument = new FontAwesome.Sharp.IconButton(); this.btnStudent = new FontAwesome.Sharp.IconButton(); this.btnTeacher = new FontAwesome.Sharp.IconButton(); this.panel1 = new System.Windows.Forms.Panel(); this.btnLogo = new System.Windows.Forms.PictureBox(); this.panelTitleBar = new System.Windows.Forms.Panel(); this.iconPictureBox3 = new FontAwesome.Sharp.IconPictureBox(); this.iconPictureBox2 = new FontAwesome.Sharp.IconPictureBox(); this.iconPictureBox1 = new FontAwesome.Sharp.IconPictureBox(); this.lblTitleChildForm = new System.Windows.Forms.Label(); this.iconCurrentChildForm = new FontAwesome.Sharp.IconPictureBox(); this.panelShadow = new System.Windows.Forms.Panel(); this.panelDesktop = new System.Windows.Forms.Panel(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); btnCourse = new FontAwesome.Sharp.IconButton(); this.panelMenu.SuspendLayout(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.btnLogo)).BeginInit(); this.panelTitleBar.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.iconPictureBox3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.iconPictureBox2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.iconPictureBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.iconCurrentChildForm)).BeginInit(); this.panelDesktop.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.SuspendLayout(); // // panelMenu // this.panelMenu.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(25)))), ((int)(((byte)(63))))); this.panelMenu.Controls.Add(this.btnLogout); this.panelMenu.Controls.Add(this.btnAboutUs); this.panelMenu.Controls.Add(this.btnClassRoom); this.panelMenu.Controls.Add(this.btnDocument); this.panelMenu.Controls.Add(this.btnStudent); this.panelMenu.Controls.Add(btnCourse); this.panelMenu.Controls.Add(this.btnTeacher); this.panelMenu.Controls.Add(this.panel1); this.panelMenu.Dock = System.Windows.Forms.DockStyle.Left; this.panelMenu.Location = new System.Drawing.Point(0, 0); this.panelMenu.Name = "panelMenu"; this.panelMenu.Size = new System.Drawing.Size(146, 450); this.panelMenu.TabIndex = 0; // // btnLogout // this.btnLogout.Dock = System.Windows.Forms.DockStyle.Top; this.btnLogout.FlatAppearance.BorderSize = 0; this.btnLogout.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnLogout.Flip = FontAwesome.Sharp.FlipOrientation.Normal; this.btnLogout.ForeColor = System.Drawing.Color.White; this.btnLogout.IconChar = FontAwesome.Sharp.IconChar.ToggleOff; this.btnLogout.IconColor = System.Drawing.Color.White; this.btnLogout.IconSize = 32; this.btnLogout.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.btnLogout.Location = new System.Drawing.Point(0, 314); this.btnLogout.Margin = new System.Windows.Forms.Padding(11, 3, 3, 3); this.btnLogout.Name = "btnLogout"; this.btnLogout.Rotation = 0D; this.btnLogout.Size = new System.Drawing.Size(146, 38); this.btnLogout.TabIndex = 9; this.btnLogout.Tag = ""; this.btnLogout.Text = "Log out"; this.btnLogout.UseVisualStyleBackColor = true; this.btnLogout.Click += new System.EventHandler(this.btnLogout_Click); // // btnAboutUs // this.btnAboutUs.Dock = System.Windows.Forms.DockStyle.Top; this.btnAboutUs.FlatAppearance.BorderSize = 0; this.btnAboutUs.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnAboutUs.Flip = FontAwesome.Sharp.FlipOrientation.Normal; this.btnAboutUs.ForeColor = System.Drawing.Color.White; this.btnAboutUs.IconChar = FontAwesome.Sharp.IconChar.IdBadge; this.btnAboutUs.IconColor = System.Drawing.Color.White; this.btnAboutUs.IconSize = 32; this.btnAboutUs.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.btnAboutUs.Location = new System.Drawing.Point(0, 276); this.btnAboutUs.Margin = new System.Windows.Forms.Padding(11, 3, 3, 3); this.btnAboutUs.Name = "btnAboutUs"; this.btnAboutUs.Rotation = 0D; this.btnAboutUs.Size = new System.Drawing.Size(146, 38); this.btnAboutUs.TabIndex = 7; this.btnAboutUs.Text = "About Us"; this.btnAboutUs.UseVisualStyleBackColor = true; this.btnAboutUs.Click += new System.EventHandler(this.btnAboutUs_Click); // // btnClassRoom // this.btnClassRoom.Dock = System.Windows.Forms.DockStyle.Top; this.btnClassRoom.FlatAppearance.BorderSize = 0; this.btnClassRoom.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnClassRoom.Flip = FontAwesome.Sharp.FlipOrientation.Normal; this.btnClassRoom.ForeColor = System.Drawing.Color.White; this.btnClassRoom.IconChar = FontAwesome.Sharp.IconChar.Crosshairs; this.btnClassRoom.IconColor = System.Drawing.Color.White; this.btnClassRoom.IconSize = 32; this.btnClassRoom.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.btnClassRoom.Location = new System.Drawing.Point(0, 238); this.btnClassRoom.Margin = new System.Windows.Forms.Padding(11, 3, 3, 3); this.btnClassRoom.Name = "btnClassRoom"; this.btnClassRoom.Rotation = 0D; this.btnClassRoom.Size = new System.Drawing.Size(146, 38); this.btnClassRoom.TabIndex = 6; this.btnClassRoom.Text = "ClassRoom"; this.btnClassRoom.UseVisualStyleBackColor = true; this.btnClassRoom.Click += new System.EventHandler(this.btnClassRoom_Click); // // btnDocument // this.btnDocument.Dock = System.Windows.Forms.DockStyle.Top; this.btnDocument.FlatAppearance.BorderSize = 0; this.btnDocument.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnDocument.Flip = FontAwesome.Sharp.FlipOrientation.Normal; this.btnDocument.ForeColor = System.Drawing.Color.White; this.btnDocument.IconChar = FontAwesome.Sharp.IconChar.FileInvoice; this.btnDocument.IconColor = System.Drawing.Color.White; this.btnDocument.IconSize = 32; this.btnDocument.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.btnDocument.Location = new System.Drawing.Point(0, 200); this.btnDocument.Margin = new System.Windows.Forms.Padding(11, 3, 3, 3); this.btnDocument.Name = "btnDocument"; this.btnDocument.Rotation = 0D; this.btnDocument.Size = new System.Drawing.Size(146, 38); this.btnDocument.TabIndex = 5; this.btnDocument.Text = "Document"; this.btnDocument.UseVisualStyleBackColor = true; this.btnDocument.Click += new System.EventHandler(this.btnDocument_Click); // // btnStudent // this.btnStudent.Dock = System.Windows.Forms.DockStyle.Top; this.btnStudent.FlatAppearance.BorderSize = 0; this.btnStudent.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnStudent.Flip = FontAwesome.Sharp.FlipOrientation.Normal; this.btnStudent.ForeColor = System.Drawing.Color.White; this.btnStudent.IconChar = FontAwesome.Sharp.IconChar.GraduationCap; this.btnStudent.IconColor = System.Drawing.Color.White; this.btnStudent.IconSize = 32; this.btnStudent.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.btnStudent.Location = new System.Drawing.Point(0, 162); this.btnStudent.Margin = new System.Windows.Forms.Padding(11, 3, 3, 3); this.btnStudent.Name = "btnStudent"; this.btnStudent.Rotation = 0D; this.btnStudent.Size = new System.Drawing.Size(146, 38); this.btnStudent.TabIndex = 4; this.btnStudent.Text = "Student"; this.btnStudent.UseVisualStyleBackColor = true; this.btnStudent.Click += new System.EventHandler(this.btnStudent_Click); // // btnCourse // btnCourse.Dock = System.Windows.Forms.DockStyle.Top; btnCourse.FlatAppearance.BorderSize = 0; btnCourse.FlatStyle = System.Windows.Forms.FlatStyle.Flat; btnCourse.Flip = FontAwesome.Sharp.FlipOrientation.Normal; btnCourse.ForeColor = System.Drawing.Color.White; btnCourse.IconChar = FontAwesome.Sharp.IconChar.Users; btnCourse.IconColor = System.Drawing.Color.White; btnCourse.IconSize = 32; btnCourse.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; btnCourse.Location = new System.Drawing.Point(0, 124); btnCourse.Margin = new System.Windows.Forms.Padding(11, 3, 3, 3); btnCourse.Name = "btnCourse"; btnCourse.Rotation = 0D; btnCourse.Size = new System.Drawing.Size(146, 38); btnCourse.TabIndex = 3; btnCourse.Text = "Admin"; btnCourse.UseVisualStyleBackColor = true; btnCourse.Click += new System.EventHandler(this.btnCourse_Click); // // btnTeacher // this.btnTeacher.Dock = System.Windows.Forms.DockStyle.Top; this.btnTeacher.FlatAppearance.BorderSize = 0; this.btnTeacher.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnTeacher.Flip = FontAwesome.Sharp.FlipOrientation.Normal; this.btnTeacher.ForeColor = System.Drawing.Color.White; this.btnTeacher.IconChar = FontAwesome.Sharp.IconChar.UserTie; this.btnTeacher.IconColor = System.Drawing.Color.White; this.btnTeacher.IconSize = 32; this.btnTeacher.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.btnTeacher.Location = new System.Drawing.Point(0, 86); this.btnTeacher.Margin = new System.Windows.Forms.Padding(11, 3, 3, 3); this.btnTeacher.Name = "btnTeacher"; this.btnTeacher.Rotation = 0D; this.btnTeacher.Size = new System.Drawing.Size(146, 38); this.btnTeacher.TabIndex = 2; this.btnTeacher.Text = "Teacher"; this.btnTeacher.UseVisualStyleBackColor = true; this.btnTeacher.Click += new System.EventHandler(this.btnTeacher_Click); // // panel1 // this.panel1.Controls.Add(this.btnLogo); this.panel1.Dock = System.Windows.Forms.DockStyle.Top; this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(146, 86); this.panel1.TabIndex = 0; // // btnLogo // this.btnLogo.Image = global::DoneDoneDone.Properties.Resources.document; this.btnLogo.Location = new System.Drawing.Point(12, 12); this.btnLogo.Name = "btnLogo"; this.btnLogo.Size = new System.Drawing.Size(124, 59); this.btnLogo.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.btnLogo.TabIndex = 0; this.btnLogo.TabStop = false; this.btnLogo.Click += new System.EventHandler(this.btnHome_Click); // // panelTitleBar // this.panelTitleBar.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(25)))), ((int)(((byte)(63))))); this.panelTitleBar.Controls.Add(this.iconPictureBox3); this.panelTitleBar.Controls.Add(this.iconPictureBox2); this.panelTitleBar.Controls.Add(this.iconPictureBox1); this.panelTitleBar.Controls.Add(this.lblTitleChildForm); this.panelTitleBar.Controls.Add(this.iconCurrentChildForm); this.panelTitleBar.Dock = System.Windows.Forms.DockStyle.Top; this.panelTitleBar.Location = new System.Drawing.Point(146, 0); this.panelTitleBar.Name = "panelTitleBar"; this.panelTitleBar.Size = new System.Drawing.Size(654, 55); this.panelTitleBar.TabIndex = 1; this.panelTitleBar.MouseDown += new System.Windows.Forms.MouseEventHandler(this.panelTitleBar_MouseDown); // // iconPictureBox3 // this.iconPictureBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.iconPictureBox3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(25)))), ((int)(((byte)(63))))); this.iconPictureBox3.IconChar = FontAwesome.Sharp.IconChar.WindowMinimize; this.iconPictureBox3.IconColor = System.Drawing.Color.White; this.iconPictureBox3.IconSize = 25; this.iconPictureBox3.Location = new System.Drawing.Point(575, 3); this.iconPictureBox3.Name = "iconPictureBox3"; this.iconPictureBox3.Size = new System.Drawing.Size(25, 31); this.iconPictureBox3.TabIndex = 4; this.iconPictureBox3.TabStop = false; this.iconPictureBox3.Click += new System.EventHandler(this.btnMinimize_Click); // // iconPictureBox2 // this.iconPictureBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.iconPictureBox2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(25)))), ((int)(((byte)(63))))); this.iconPictureBox2.IconChar = FontAwesome.Sharp.IconChar.WindowMaximize; this.iconPictureBox2.IconColor = System.Drawing.Color.White; this.iconPictureBox2.IconSize = 25; this.iconPictureBox2.Location = new System.Drawing.Point(602, 3); this.iconPictureBox2.Name = "iconPictureBox2"; this.iconPictureBox2.Size = new System.Drawing.Size(25, 31); this.iconPictureBox2.TabIndex = 3; this.iconPictureBox2.TabStop = false; this.iconPictureBox2.Click += new System.EventHandler(this.btnMaximize_Click); // // iconPictureBox1 // this.iconPictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.iconPictureBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(25)))), ((int)(((byte)(63))))); this.iconPictureBox1.IconChar = FontAwesome.Sharp.IconChar.WindowClose; this.iconPictureBox1.IconColor = System.Drawing.Color.White; this.iconPictureBox1.IconSize = 25; this.iconPictureBox1.Location = new System.Drawing.Point(629, 3); this.iconPictureBox1.Name = "iconPictureBox1"; this.iconPictureBox1.Size = new System.Drawing.Size(25, 31); this.iconPictureBox1.TabIndex = 2; this.iconPictureBox1.TabStop = false; this.iconPictureBox1.Click += new System.EventHandler(this.btnExit_Click); // // lblTitleChildForm // this.lblTitleChildForm.AutoSize = true; this.lblTitleChildForm.ForeColor = System.Drawing.Color.White; this.lblTitleChildForm.Location = new System.Drawing.Point(51, 21); this.lblTitleChildForm.Name = "lblTitleChildForm"; this.lblTitleChildForm.Size = new System.Drawing.Size(35, 13); this.lblTitleChildForm.TabIndex = 1; this.lblTitleChildForm.Text = "Home"; this.lblTitleChildForm.TextAlign = System.Drawing.ContentAlignment.TopRight; // // iconCurrentChildForm // this.iconCurrentChildForm.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(25)))), ((int)(((byte)(63))))); this.iconCurrentChildForm.ForeColor = System.Drawing.Color.Purple; this.iconCurrentChildForm.IconChar = FontAwesome.Sharp.IconChar.Home; this.iconCurrentChildForm.IconColor = System.Drawing.Color.Purple; this.iconCurrentChildForm.Location = new System.Drawing.Point(17, 10); this.iconCurrentChildForm.Name = "iconCurrentChildForm"; this.iconCurrentChildForm.Size = new System.Drawing.Size(32, 32); this.iconCurrentChildForm.TabIndex = 0; this.iconCurrentChildForm.TabStop = false; // // panelShadow // this.panelShadow.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(25)))), ((int)(((byte)(63))))); this.panelShadow.Dock = System.Windows.Forms.DockStyle.Top; this.panelShadow.Location = new System.Drawing.Point(146, 55); this.panelShadow.Name = "panelShadow"; this.panelShadow.Size = new System.Drawing.Size(654, 10); this.panelShadow.TabIndex = 2; // // panelDesktop // this.panelDesktop.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(25)))), ((int)(((byte)(63))))); this.panelDesktop.Controls.Add(this.pictureBox1); this.panelDesktop.Dock = System.Windows.Forms.DockStyle.Fill; this.panelDesktop.Location = new System.Drawing.Point(146, 65); this.panelDesktop.Name = "panelDesktop"; this.panelDesktop.Size = new System.Drawing.Size(654, 385); this.panelDesktop.TabIndex = 3; // // pictureBox1 // this.pictureBox1.Anchor = System.Windows.Forms.AnchorStyles.None; this.pictureBox1.Image = global::DoneDoneDone.Properties.Resources.document; this.pictureBox1.Location = new System.Drawing.Point(265, 163); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(124, 59); this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.pictureBox1.TabIndex = 1; this.pictureBox1.TabStop = false; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(800, 450); this.Controls.Add(this.panelDesktop); this.Controls.Add(this.panelShadow); this.Controls.Add(this.panelTitleBar); this.Controls.Add(this.panelMenu); this.Name = "Form1"; this.Text = "Form1"; this.panelMenu.ResumeLayout(false); this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.btnLogo)).EndInit(); this.panelTitleBar.ResumeLayout(false); this.panelTitleBar.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.iconPictureBox3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.iconPictureBox2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.iconPictureBox1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.iconCurrentChildForm)).EndInit(); this.panelDesktop.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).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() { FontAwesome.Sharp.IconButton buttonUpdate; System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DashboardForm)); this.button3 = new System.Windows.Forms.Button(); this.usdEarn = new System.Windows.Forms.TextBox(); this.tokenToSell = new System.Windows.Forms.TextBox(); this.tokenBalance = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.button2 = new System.Windows.Forms.Button(); this.usdPaid = new System.Windows.Forms.TextBox(); this.tokenToBuy = new System.Windows.Forms.TextBox(); this.usdBalance = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.labelPriceInUSD = new System.Windows.Forms.Label(); this.textBoxPriceInUSD = new System.Windows.Forms.Label(); this.DashboardCurrencyIcon = new System.Windows.Forms.PictureBox(); this.panelChooseCrypto = new System.Windows.Forms.Panel(); this.button1 = new System.Windows.Forms.Button(); this.label2 = new System.Windows.Forms.Label(); this.textBoxListOfCurrencies = new System.Windows.Forms.TextBox(); buttonUpdate = new FontAwesome.Sharp.IconButton(); ((System.ComponentModel.ISupportInitialize)(this.DashboardCurrencyIcon)).BeginInit(); this.panelChooseCrypto.SuspendLayout(); this.SuspendLayout(); // // buttonUpdate // buttonUpdate.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(51))))); buttonUpdate.FlatStyle = System.Windows.Forms.FlatStyle.Flat; buttonUpdate.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(51))))); buttonUpdate.IconChar = FontAwesome.Sharp.IconChar.Sync; buttonUpdate.IconColor = System.Drawing.Color.FromArgb(((int)(((byte)(207)))), ((int)(((byte)(175)))), ((int)(((byte)(4))))); buttonUpdate.IconFont = FontAwesome.Sharp.IconFont.Auto; buttonUpdate.IconSize = 25; buttonUpdate.Location = new System.Drawing.Point(300, 11); buttonUpdate.Margin = new System.Windows.Forms.Padding(2); buttonUpdate.Name = "buttonUpdate"; buttonUpdate.Size = new System.Drawing.Size(34, 34); buttonUpdate.TabIndex = 12; buttonUpdate.UseVisualStyleBackColor = false; buttonUpdate.Click += new System.EventHandler(this.buttonUpdate_Click); // // button3 // this.button3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(51))))); this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(207)))), ((int)(((byte)(175)))), ((int)(((byte)(4))))); this.button3.Location = new System.Drawing.Point(11, 319); this.button3.Margin = new System.Windows.Forms.Padding(2); this.button3.Name = "button3"; this.button3.RightToLeft = System.Windows.Forms.RightToLeft.No; this.button3.Size = new System.Drawing.Size(48, 23); this.button3.TabIndex = 26; this.button3.Text = "SELL"; this.button3.UseVisualStyleBackColor = false; this.button3.Click += new System.EventHandler(this.buttonSell_Click); // // usdEarn // this.usdEarn.BackColor = System.Drawing.Color.DarkSlateBlue; this.usdEarn.BorderStyle = System.Windows.Forms.BorderStyle.None; this.usdEarn.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.usdEarn.ForeColor = System.Drawing.Color.Gold; this.usdEarn.Location = new System.Drawing.Point(11, 297); this.usdEarn.Margin = new System.Windows.Forms.Padding(2); this.usdEarn.Name = "usdEarn"; this.usdEarn.RightToLeft = System.Windows.Forms.RightToLeft.No; this.usdEarn.Size = new System.Drawing.Size(167, 19); this.usdEarn.TabIndex = 25; this.usdEarn.TextChanged += new System.EventHandler(this.usdEarn_TextChanged); // // tokenToSell // this.tokenToSell.BackColor = System.Drawing.Color.DarkSlateBlue; this.tokenToSell.BorderStyle = System.Windows.Forms.BorderStyle.None; this.tokenToSell.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.tokenToSell.ForeColor = System.Drawing.Color.Gold; this.tokenToSell.Location = new System.Drawing.Point(11, 273); this.tokenToSell.Margin = new System.Windows.Forms.Padding(2); this.tokenToSell.Name = "tokenToSell"; this.tokenToSell.RightToLeft = System.Windows.Forms.RightToLeft.No; this.tokenToSell.Size = new System.Drawing.Size(167, 19); this.tokenToSell.TabIndex = 24; this.tokenToSell.TextChanged += new System.EventHandler(this.tokenToSell_TextChanged); // // tokenBalance // this.tokenBalance.AutoSize = true; this.tokenBalance.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(238))); this.tokenBalance.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(207)))), ((int)(((byte)(175)))), ((int)(((byte)(4))))); this.tokenBalance.Location = new System.Drawing.Point(64, 322); this.tokenBalance.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.tokenBalance.Name = "tokenBalance"; this.tokenBalance.RightToLeft = System.Windows.Forms.RightToLeft.No; this.tokenBalance.Size = new System.Drawing.Size(90, 15); this.tokenBalance.TabIndex = 23; this.tokenBalance.Text = "token balance: "; this.tokenBalance.Click += new System.EventHandler(this.tokenBalance_Click); // // label6 // this.label6.AutoSize = true; this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(238))); this.label6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(207)))), ((int)(((byte)(175)))), ((int)(((byte)(4))))); this.label6.Location = new System.Drawing.Point(12, 254); this.label6.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.label6.Name = "label6"; this.label6.RightToLeft = System.Windows.Forms.RightToLeft.No; this.label6.Size = new System.Drawing.Size(31, 17); this.label6.TabIndex = 22; this.label6.Text = "Sell"; // // button2 // this.button2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(51))))); this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(207)))), ((int)(((byte)(175)))), ((int)(((byte)(4))))); this.button2.Location = new System.Drawing.Point(11, 209); this.button2.Margin = new System.Windows.Forms.Padding(2); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(48, 23); this.button2.TabIndex = 21; this.button2.Text = "BUY"; this.button2.UseVisualStyleBackColor = false; this.button2.Click += new System.EventHandler(this.buttonBuy_Click); // // usdPaid // this.usdPaid.BackColor = System.Drawing.Color.DarkSlateBlue; this.usdPaid.BorderStyle = System.Windows.Forms.BorderStyle.None; this.usdPaid.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.usdPaid.ForeColor = System.Drawing.Color.Gold; this.usdPaid.Location = new System.Drawing.Point(11, 185); this.usdPaid.Margin = new System.Windows.Forms.Padding(2); this.usdPaid.Name = "usdPaid"; this.usdPaid.Size = new System.Drawing.Size(167, 19); this.usdPaid.TabIndex = 20; this.usdPaid.TextChanged += new System.EventHandler(this.usdPaid_TextChanged); // // tokenToBuy // this.tokenToBuy.BackColor = System.Drawing.Color.DarkSlateBlue; this.tokenToBuy.BorderStyle = System.Windows.Forms.BorderStyle.None; this.tokenToBuy.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.tokenToBuy.ForeColor = System.Drawing.Color.Gold; this.tokenToBuy.Location = new System.Drawing.Point(11, 161); this.tokenToBuy.Margin = new System.Windows.Forms.Padding(2); this.tokenToBuy.Name = "tokenToBuy"; this.tokenToBuy.Size = new System.Drawing.Size(167, 19); this.tokenToBuy.TabIndex = 19; this.tokenToBuy.TextChanged += new System.EventHandler(this.tokenToBuy_TextChanged); // // usdBalance // this.usdBalance.AutoSize = true; this.usdBalance.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(238))); this.usdBalance.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(207)))), ((int)(((byte)(175)))), ((int)(((byte)(4))))); this.usdBalance.Location = new System.Drawing.Point(64, 209); this.usdBalance.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.usdBalance.Name = "usdBalance"; this.usdBalance.Size = new System.Drawing.Size(83, 15); this.usdBalance.TabIndex = 18; this.usdBalance.Text = "USD balance:"; this.usdBalance.Click += new System.EventHandler(this.usdBalance_Click); // // label3 // this.label3.AutoSize = true; this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(238))); this.label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(207)))), ((int)(((byte)(175)))), ((int)(((byte)(4))))); this.label3.Location = new System.Drawing.Point(11, 142); this.label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(32, 17); this.label3.TabIndex = 17; this.label3.Text = "Buy"; // // labelPriceInUSD // this.labelPriceInUSD.AutoSize = true; this.labelPriceInUSD.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); this.labelPriceInUSD.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(207)))), ((int)(((byte)(175)))), ((int)(((byte)(4))))); this.labelPriceInUSD.Location = new System.Drawing.Point(383, 62); this.labelPriceInUSD.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.labelPriceInUSD.Name = "labelPriceInUSD"; this.labelPriceInUSD.RightToLeft = System.Windows.Forms.RightToLeft.No; this.labelPriceInUSD.Size = new System.Drawing.Size(76, 20); this.labelPriceInUSD.TabIndex = 3; this.labelPriceInUSD.Text = "60000.00"; this.labelPriceInUSD.TextAlign = System.Drawing.ContentAlignment.BottomLeft; // // textBoxPriceInUSD // this.textBoxPriceInUSD.AutoSize = true; this.textBoxPriceInUSD.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); this.textBoxPriceInUSD.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(207)))), ((int)(((byte)(175)))), ((int)(((byte)(4))))); this.textBoxPriceInUSD.Location = new System.Drawing.Point(300, 62); this.textBoxPriceInUSD.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.textBoxPriceInUSD.Name = "textBoxPriceInUSD"; this.textBoxPriceInUSD.Size = new System.Drawing.Size(79, 20); this.textBoxPriceInUSD.TabIndex = 2; this.textBoxPriceInUSD.Text = "BTC/USD"; // // DashboardCurrencyIcon // this.DashboardCurrencyIcon.Image = ((System.Drawing.Image)(resources.GetObject("DashboardCurrencyIcon.Image"))); this.DashboardCurrencyIcon.Location = new System.Drawing.Point(196, 11); this.DashboardCurrencyIcon.Margin = new System.Windows.Forms.Padding(2); this.DashboardCurrencyIcon.Name = "DashboardCurrencyIcon"; this.DashboardCurrencyIcon.Size = new System.Drawing.Size(100, 107); this.DashboardCurrencyIcon.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.DashboardCurrencyIcon.TabIndex = 0; this.DashboardCurrencyIcon.TabStop = false; // // panelChooseCrypto // this.panelChooseCrypto.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(30)))), ((int)(((byte)(68))))); this.panelChooseCrypto.Controls.Add(buttonUpdate); this.panelChooseCrypto.Controls.Add(this.button3); this.panelChooseCrypto.Controls.Add(this.button1); this.panelChooseCrypto.Controls.Add(this.usdEarn); this.panelChooseCrypto.Controls.Add(this.label2); this.panelChooseCrypto.Controls.Add(this.tokenToSell); this.panelChooseCrypto.Controls.Add(this.textBoxListOfCurrencies); this.panelChooseCrypto.Controls.Add(this.tokenBalance); this.panelChooseCrypto.Controls.Add(this.DashboardCurrencyIcon); this.panelChooseCrypto.Controls.Add(this.label6); this.panelChooseCrypto.Controls.Add(this.textBoxPriceInUSD); this.panelChooseCrypto.Controls.Add(this.button2); this.panelChooseCrypto.Controls.Add(this.labelPriceInUSD); this.panelChooseCrypto.Controls.Add(this.usdPaid); this.panelChooseCrypto.Controls.Add(this.label3); this.panelChooseCrypto.Controls.Add(this.tokenToBuy); this.panelChooseCrypto.Controls.Add(this.usdBalance); this.panelChooseCrypto.Dock = System.Windows.Forms.DockStyle.Fill; this.panelChooseCrypto.ForeColor = System.Drawing.SystemColors.InactiveCaptionText; this.panelChooseCrypto.Location = new System.Drawing.Point(0, 0); this.panelChooseCrypto.Margin = new System.Windows.Forms.Padding(2); this.panelChooseCrypto.Name = "panelChooseCrypto"; this.panelChooseCrypto.Size = new System.Drawing.Size(731, 562); this.panelChooseCrypto.TabIndex = 1; // // button1 // this.button1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(51))))); this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(207)))), ((int)(((byte)(175)))), ((int)(((byte)(4))))); this.button1.Location = new System.Drawing.Point(11, 83); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(167, 26); this.button1.TabIndex = 5; this.button1.Text = "Check price"; this.button1.UseVisualStyleBackColor = false; this.button1.Click += new System.EventHandler(this.buttonCheckCoin_Click); // // label2 // this.label2.AutoSize = true; this.label2.Font = new System.Drawing.Font("Microsoft YaHei", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(207)))), ((int)(((byte)(175)))), ((int)(((byte)(4))))); this.label2.Location = new System.Drawing.Point(7, 9); this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(185, 21); this.label2.TabIndex = 3; this.label2.Text = "Choose cryptocurrency"; // // textBoxListOfCurrencies // this.textBoxListOfCurrencies.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; this.textBoxListOfCurrencies.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource; this.textBoxListOfCurrencies.BackColor = System.Drawing.Color.DarkSlateBlue; this.textBoxListOfCurrencies.BorderStyle = System.Windows.Forms.BorderStyle.None; this.textBoxListOfCurrencies.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.textBoxListOfCurrencies.ForeColor = System.Drawing.Color.Gold; this.textBoxListOfCurrencies.Location = new System.Drawing.Point(11, 44); this.textBoxListOfCurrencies.Name = "textBoxListOfCurrencies"; this.textBoxListOfCurrencies.Size = new System.Drawing.Size(167, 19); this.textBoxListOfCurrencies.TabIndex = 4; // // DashboardForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(33)))), ((int)(((byte)(74))))); this.ClientSize = new System.Drawing.Size(731, 562); this.Controls.Add(this.panelChooseCrypto); this.Margin = new System.Windows.Forms.Padding(2); this.Name = "DashboardForm"; this.Text = "Dashboard"; this.Load += new System.EventHandler(this.DashboardForm_Load); ((System.ComponentModel.ISupportInitialize)(this.DashboardCurrencyIcon)).EndInit(); this.panelChooseCrypto.ResumeLayout(false); this.panelChooseCrypto.PerformLayout(); this.ResumeLayout(false); }