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); }
private void ToggleSpinner(MetroFramework.Controls.MetroProgressSpinner obj, bool status, String type = "hide") { try { if (obj.InvokeRequired) { this.Invoke((MethodInvoker) delegate { if (type == "hide") { obj.Visible = status; } else { obj.Enabled = status; } }); } else { if (type == "hide") { obj.Visible = status; } else { obj.Enabled = status; } } } catch (Exception e) { ErrorHandler.logError("Error Hiding Spinner", "Error while hiding the spinner " + obj.Name.ToString(), "error", false); } }
private void InitializeComponent() { components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form2)); metroProgressSpinner1 = new MetroFramework.Controls.MetroProgressSpinner(); metroButton1 = new MetroFramework.Controls.MetroButton(); Themer = new MetroFramework.Components.MetroStyleManager(components); SuspendLayout(); metroProgressSpinner1.Cursor = System.Windows.Forms.Cursors.AppStarting; metroProgressSpinner1.Location = new System.Drawing.Point(23, 57); metroProgressSpinner1.Maximum = 100; metroProgressSpinner1.Name = "metroProgressSpinner1"; metroProgressSpinner1.Size = new System.Drawing.Size(200, 200); metroProgressSpinner1.TabIndex = 0; metroProgressSpinner1.Theme = MetroFramework.MetroThemeStyle.Dark; metroProgressSpinner1.Value = 1; metroButton1.Cursor = System.Windows.Forms.Cursors.Default; metroButton1.Location = new System.Drawing.Point(85, 147); metroButton1.Name = "metroButton1"; metroButton1.Size = new System.Drawing.Size(75, 23); metroButton1.TabIndex = 1; metroButton1.TabStop = false; metroButton1.Text = "Cancel"; metroButton1.Theme = MetroFramework.MetroThemeStyle.Dark; metroButton1.Click += new System.EventHandler(metroButton1_Click); Themer.Owner = this; base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f); base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; base.ClientSize = new System.Drawing.Size(250, 280); base.ControlBox = false; base.Controls.Add(metroButton1); base.Controls.Add(metroProgressSpinner1); Cursor = System.Windows.Forms.Cursors.AppStarting; base.Icon = (System.Drawing.Icon)resources.GetObject("$this.Icon"); base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "Form2"; base.Resizable = false; base.ShadowType = MetroFramework.Forms.MetroFormShadowType.AeroShadow; Text = "Loading BnS Buddy"; base.TextAlign = MetroFramework.Forms.MetroFormTextAlign.Center; base.Theme = MetroFramework.MetroThemeStyle.Dark; base.TopMost = true; ((System.ComponentModel.ISupportInitialize)Themer).EndInit(); ResumeLayout(false); }
public static void ProgressSpinner_SetValue(MetroFramework.Controls.MetroProgressSpinner spinner, int val) { try { if (spinner.InvokeRequired) { spinner.Invoke(new _ProgressSpinner_SetValue(ProgressSpinner_SetValue), spinner, val); } else { spinner.Value = val; } } catch (System.Exception) { } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.txtTitre2 = new System.Windows.Forms.Label(); this.webcam = new WebEye.Controls.WinForms.WebCameraControl.WebCameraControl(); this.Btn_RetourVisuel = new MetroFramework.Controls.MetroButton(); this.Btn_VérifierVisuel = new MetroFramework.Controls.MetroButton(); this.Cam_Visuel1 = new WebEye.Controls.WinForms.WebCameraControl.WebCameraControl(); this.List_Camera = new System.Windows.Forms.ListBox(); this.Load_identificationVisuel = new MetroFramework.Controls.MetroProgressSpinner(); this.Txt_chargementMetro = new MetroFramework.Controls.MetroLabel(); this.Lbl_infoutilisateur = new System.Windows.Forms.Label(); this.Btn_continuerToMdp = new MetroFramework.Controls.MetroButton(); this.Img_previewUserReconnu = new System.Windows.Forms.PictureBox(); this.Img_identificationVisuelPreview = new System.Windows.Forms.PictureBox(); this.Img_LogoOX = new System.Windows.Forms.PictureBox(); ((System.ComponentModel.ISupportInitialize)(this.Img_previewUserReconnu)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.Img_identificationVisuelPreview)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.Img_LogoOX)).BeginInit(); this.SuspendLayout(); // // txtTitre2 // this.txtTitre2.AutoSize = true; this.txtTitre2.Font = new System.Drawing.Font("Roboto Th", 39.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtTitre2.ForeColor = System.Drawing.SystemColors.ControlDark; this.txtTitre2.Location = new System.Drawing.Point(513, 41); this.txtTitre2.Name = "Txt_Titre2"; this.txtTitre2.Size = new System.Drawing.Size(894, 65); this.txtTitre2.TabIndex = 1; this.txtTitre2.Text = "Merci de vous placer face à la camera"; // // webcam // this.webcam.Location = new System.Drawing.Point(0, 0); this.webcam.Name = "webcam"; this.webcam.Size = new System.Drawing.Size(150, 150); this.webcam.TabIndex = 0; // // Btn_RetourVisuel // this.Btn_RetourVisuel.BackColor = System.Drawing.SystemColors.MenuHighlight; this.Btn_RetourVisuel.FontSize = MetroFramework.MetroButtonSize.Tall; this.Btn_RetourVisuel.FontWeight = MetroFramework.MetroButtonWeight.Light; this.Btn_RetourVisuel.ForeColor = System.Drawing.SystemColors.Info; this.Btn_RetourVisuel.Location = new System.Drawing.Point(1559, 49); this.Btn_RetourVisuel.Name = "Btn_RetourVisuel"; this.Btn_RetourVisuel.Size = new System.Drawing.Size(442, 57); this.Btn_RetourVisuel.Style = MetroFramework.MetroColorStyle.Silver; this.Btn_RetourVisuel.TabIndex = 2; this.Btn_RetourVisuel.Text = "Retour"; this.Btn_RetourVisuel.Theme = MetroFramework.MetroThemeStyle.Light; this.Btn_RetourVisuel.UseCustomBackColor = true; this.Btn_RetourVisuel.UseCustomForeColor = true; this.Btn_RetourVisuel.UseSelectable = true; this.Btn_RetourVisuel.Click += new System.EventHandler(this.Btn_RetourVisuel_Click); // // Btn_VérifierVisuel // this.Btn_VérifierVisuel.FontSize = MetroFramework.MetroButtonSize.Medium; this.Btn_VérifierVisuel.FontWeight = MetroFramework.MetroButtonWeight.Light; this.Btn_VérifierVisuel.Location = new System.Drawing.Point(1539, 499); this.Btn_VérifierVisuel.Name = "Btn_VérifierVisuel"; this.Btn_VérifierVisuel.Size = new System.Drawing.Size(358, 116); this.Btn_VérifierVisuel.Style = MetroFramework.MetroColorStyle.Silver; this.Btn_VérifierVisuel.TabIndex = 3; this.Btn_VérifierVisuel.Text = "Vérifier"; this.Btn_VérifierVisuel.Theme = MetroFramework.MetroThemeStyle.Light; this.Btn_VérifierVisuel.UseSelectable = true; this.Btn_VérifierVisuel.Click += new System.EventHandler(this.Btn_VérifierVisuel_Click); // // Cam_Visuel1 // this.Cam_Visuel1.AutoValidate = System.Windows.Forms.AutoValidate.Disable; this.Cam_Visuel1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; this.Cam_Visuel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.Cam_Visuel1.Location = new System.Drawing.Point(406, 235); this.Cam_Visuel1.MinimumSize = new System.Drawing.Size(830, 500); this.Cam_Visuel1.Name = "Cam_Visuel1"; this.Cam_Visuel1.Size = new System.Drawing.Size(1109, 684); this.Cam_Visuel1.TabIndex = 8; this.Cam_Visuel1.Load += new System.EventHandler(this.Cam_Visuel1_Load); // // List_Camera // this.List_Camera.FormattingEnabled = true; this.List_Camera.Location = new System.Drawing.Point(349, 956); this.List_Camera.Name = "List_Camera"; this.List_Camera.Size = new System.Drawing.Size(1222, 95); this.List_Camera.TabIndex = 5; this.List_Camera.SelectedIndexChanged += new System.EventHandler(this.List_Camera_SelectedIndexChanged); // // Load_identificationVisuel // this.Load_identificationVisuel.Location = new System.Drawing.Point(774, 403); this.Load_identificationVisuel.Maximum = 100; this.Load_identificationVisuel.Name = "Load_identificationVisuel"; this.Load_identificationVisuel.Size = new System.Drawing.Size(368, 350); this.Load_identificationVisuel.Speed = 2F; this.Load_identificationVisuel.TabIndex = 7; this.Load_identificationVisuel.UseCustomBackColor = true; this.Load_identificationVisuel.UseCustomForeColor = true; this.Load_identificationVisuel.UseSelectable = true; this.Load_identificationVisuel.UseStyleColors = true; // // Txt_chargementMetro // this.Txt_chargementMetro.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.Txt_chargementMetro.AutoSize = true; this.Txt_chargementMetro.FontSize = MetroFramework.MetroLabelSize.Tall; this.Txt_chargementMetro.Location = new System.Drawing.Point(754, 698); this.Txt_chargementMetro.Name = "Txt_chargementMetro"; this.Txt_chargementMetro.Size = new System.Drawing.Size(413, 25); this.Txt_chargementMetro.Style = MetroFramework.MetroColorStyle.Blue; this.Txt_chargementMetro.TabIndex = 8; this.Txt_chargementMetro.Text = "IDENTIFICATION DE LA PHOTO MERCI DE PATIENTER"; this.Txt_chargementMetro.Theme = MetroFramework.MetroThemeStyle.Light; this.Txt_chargementMetro.UseCustomBackColor = true; this.Txt_chargementMetro.UseCustomForeColor = true; this.Txt_chargementMetro.UseStyleColors = true; // // Lbl_infoutilisateur // this.Lbl_infoutilisateur.AutoSize = true; this.Lbl_infoutilisateur.Font = new System.Drawing.Font("Roboto Cn", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Lbl_infoutilisateur.ForeColor = System.Drawing.SystemColors.ControlDarkDark; this.Lbl_infoutilisateur.Location = new System.Drawing.Point(20, 211); this.Lbl_infoutilisateur.Name = "Lbl_infoutilisateur"; this.Lbl_infoutilisateur.Size = new System.Drawing.Size(63, 25); this.Lbl_infoutilisateur.TabIndex = 10; this.Lbl_infoutilisateur.Text = "label1"; // // Btn_continuerToMdp // this.Btn_continuerToMdp.FontSize = MetroFramework.MetroButtonSize.Tall; this.Btn_continuerToMdp.ForeColor = System.Drawing.SystemColors.Highlight; this.Btn_continuerToMdp.Location = new System.Drawing.Point(1539, 499); this.Btn_continuerToMdp.Name = "Btn_continuerToMdp"; this.Btn_continuerToMdp.Size = new System.Drawing.Size(358, 116); this.Btn_continuerToMdp.TabIndex = 12; this.Btn_continuerToMdp.Text = "Continuer"; this.Btn_continuerToMdp.UseCustomForeColor = true; this.Btn_continuerToMdp.UseSelectable = true; this.Btn_continuerToMdp.Click += new System.EventHandler(this.Btn_continuerToMdp_Click); // // Img_previewUserReconnu // this.Img_previewUserReconnu.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.Img_previewUserReconnu.Location = new System.Drawing.Point(406, 250); this.Img_previewUserReconnu.Name = "Img_previewUserReconnu"; this.Img_previewUserReconnu.Size = new System.Drawing.Size(1109, 669); this.Img_previewUserReconnu.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.Img_previewUserReconnu.TabIndex = 11; this.Img_previewUserReconnu.TabStop = false; this.Img_previewUserReconnu.Click += new System.EventHandler(this.Img_previewUserReconnu_Click); // // Img_identificationVisuelPreview // this.Img_identificationVisuelPreview.Location = new System.Drawing.Point(0, 615); this.Img_identificationVisuelPreview.Name = "Img_identificationVisuelPreview"; this.Img_identificationVisuelPreview.Size = new System.Drawing.Size(390, 304); this.Img_identificationVisuelPreview.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.Img_identificationVisuelPreview.TabIndex = 6; this.Img_identificationVisuelPreview.TabStop = false; // // Img_LogoOX // this.Img_LogoOX.Image = global::ProjOXFORD_G2WinForm.Properties.Resources.LogoOxford; this.Img_LogoOX.Location = new System.Drawing.Point(0, -1); this.Img_LogoOX.Name = "Img_LogoOX"; this.Img_LogoOX.Size = new System.Drawing.Size(193, 194); this.Img_LogoOX.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.Img_LogoOX.TabIndex = 0; this.Img_LogoOX.TabStop = false; // // IdentificationVisuel // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1920, 1080); this.Controls.Add(this.Btn_continuerToMdp); this.Controls.Add(this.Lbl_infoutilisateur); this.Controls.Add(this.Txt_chargementMetro); this.Controls.Add(this.Load_identificationVisuel); this.Controls.Add(this.Img_identificationVisuelPreview); this.Controls.Add(this.List_Camera); this.Controls.Add(this.Cam_Visuel1); this.Controls.Add(this.Btn_VérifierVisuel); this.Controls.Add(this.Btn_RetourVisuel); this.Controls.Add(this.txtTitre2); this.Controls.Add(this.Img_LogoOX); this.Controls.Add(this.Img_previewUserReconnu); this.Name = "IdentificationVisuel"; this.StartPosition = System.Windows.Forms.FormStartPosition.WindowsDefaultLocation; this.Load += new System.EventHandler(this.IdentificationVisuel_Load); ((System.ComponentModel.ISupportInitialize)(this.Img_previewUserReconnu)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.Img_identificationVisuelPreview)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.Img_LogoOX)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }