コード例 #1
0
        private void UpdateLabelTextBox()
        {
            if (showLabel)
            {
                if (metroLabel == null)
                {
                    metroLabel          = new MetroFramework.Controls.MetroLabel();
                    metroLabel.AutoSize = true;
                    metroLabel.Location = new Point(0, 0);
                }
                metroLabel.FontSize       = FontSize;
                metroLabel.FontWeight     = FontWeight;
                metroLabel.Text           = label;
                metroLabel.UseStyleColors = true;

                if (!labelAdded)
                {
                    Controls.Add(metroLabel);
                    labelAdded = true;
                }
            }
            else
            {
                if (labelAdded)
                {
                    Controls.Remove(metroLabel);
                    labelAdded = false;
                }
            }
            Refresh();
        }
コード例 #2
0
 public void CambiarColor(MetroFramework.Controls.MetroTile t, MetroFramework.Controls.MetroLabel l, char c)
 {
     switch (c)
     {
         case 'g':
         case 'G':
             t.Style = MetroFramework.MetroColorStyle.Green;
             l.Style = MetroFramework.MetroColorStyle.Green;
             break;
         case 'r': 
         case 'R':
             t.Style = MetroFramework.MetroColorStyle.Red;
             l.Style = MetroFramework.MetroColorStyle.Red;
             break;
         case 'b':
         case 'B':
             t.Style = MetroFramework.MetroColorStyle.Blue;
             l.Style = MetroFramework.MetroColorStyle.Blue;
             break;
         case 's':
         case 'S':
         default:
             t.Style = MetroFramework.MetroColorStyle.Silver;
             l.Style = MetroFramework.MetroColorStyle.Silver;
             break;
     }
     t.Refresh();
     l.Refresh();
 }
コード例 #3
0
        public Bloc_Department(int position_x, int position_y, MetroFramework.Controls.MetroTabPage fenetre, List <Department> list_dep)
        {
            this.fenetre      = fenetre;
            panel_departement = new MetroFramework.Controls.MetroPanel();
            label_titre       = new MetroFramework.Controls.MetroLabel();
            button_inverser   = new MetroFramework.Controls.MetroButton();

            panel_departement.BorderStyle       = BorderStyle.FixedSingle;
            panel_departement.VerticalScrollbar = true;
            panel_departement.Location          = new Point(position_x, position_y);
            panel_departement.Size       = new Size(150, 230);
            panel_departement.AutoScroll = true;
            fenetre.Controls.Add(panel_departement);

            label_titre.Text     = "Quartier";
            label_titre.Location = new Point(10, 10);
            label_titre.Size     = new Size(60, 20);
            panel_departement.Controls.Add(label_titre);

            button_inverser.Text     = "Inverser";
            button_inverser.Location = new Point(75, 10);
            button_inverser.Size     = new Size(60, 20);
            panel_departement.Controls.Add(button_inverser);

            button_inverser.Click += Bouton_inverser_Click;


            for (int i = 0; i < list_dep.Count; i++)
            {
                Department_Element ajout = new Department_Element(list_dep[i], 10, 40 + 20 * i, panel_departement);
                list_department.Add(ajout);
            }
        }
コード例 #4
0
        /// <summary>
        /// catches the controller of the RightsWindow
        /// </summary>
        private void catchControllers()
        {
            btnSave   = (MetroFramework.Controls.MetroButton)parRightsWindow.Controls.Find("mBtnSave", true).First();
            btnCancel = (MetroFramework.Controls.MetroButton)parRightsWindow.Controls.Find("mBtnCancel", true).First();

            comboboxAllGroups = (MetroFramework.Controls.MetroComboBox)parRightsWindow.Controls.Find("mCmbBxAllGroups", true).First();
            textboxGroupName  = (MetroFramework.Controls.MetroTextBox)parRightsWindow.Controls.Find("mTxtBxGroupName", true).First();
            labelGroupName    = (MetroFramework.Controls.MetroLabel)parRightsWindow.Controls.Find("mLblGroup", true).First();

            comboboxR6Accidents = (MetroFramework.Controls.MetroComboBox)parRightsWindow.Controls.Find("mCmbBxAccidents", true).First();
            comboboxR4Users     = (MetroFramework.Controls.MetroComboBox)parRightsWindow.Controls.Find("mCmbBxUsers", true).First();
            comboboxR5Rights    = (MetroFramework.Controls.MetroComboBox)parRightsWindow.Controls.Find("mCmbBxRights", true).First();
            comboboxR7Store     = (MetroFramework.Controls.MetroComboBox)parRightsWindow.Controls.Find("mCmbBxStore", true).First();
            comboboxR8Request   = (MetroFramework.Controls.MetroComboBox)parRightsWindow.Controls.Find("mCmbBxRequest", true).First();
            comboboxR9Order     = (MetroFramework.Controls.MetroComboBox)parRightsWindow.Controls.Find("mCmbBxOrder", true).First();
            comboboxR10Subcontr = (MetroFramework.Controls.MetroComboBox)parRightsWindow.Controls.Find("mCmbBxSubcontr", true).First();

            comboboxR2LocalAccid   = (MetroFramework.Controls.MetroComboBox)parRightsWindow.Controls.Find("mCmbBxAccidLocal", true).First();
            comboboxR3LocalUser    = (MetroFramework.Controls.MetroComboBox)parRightsWindow.Controls.Find("mCmbBxUsersLocal", true).First();
            comboboxR1LocalRequest = (MetroFramework.Controls.MetroComboBox)parRightsWindow.Controls.Find("mCmbBxRequestLocal", true).First();

            tileNew    = (MetroFramework.Controls.MetroTile)parRightsWindow.Controls.Find("mTileNew", true).First();
            tileModify = (MetroFramework.Controls.MetroTile)parRightsWindow.Controls.Find("mTileModify", true).First();
            tileDelete = (MetroFramework.Controls.MetroTile)parRightsWindow.Controls.Find("mTileDelete", true).First();
        }
コード例 #5
0
        public Bloc_Fenetre(Locations location, Size taille_fenetre)
        {
            this.location    = location;
            fenetre          = new MetroFramework.Controls.MetroTabPage();
            fenetre.Location = new System.Drawing.Point(4, 22);
            fenetre.Name     = "fenetre";
            fenetre.Padding  = new System.Windows.Forms.Padding(3);
            fenetre.Size     = taille_fenetre;
            fenetre.Text     = location.Name;
            fenetre.UseVisualStyleBackColor = true;

            position_y = fenetre.Height - 40;

            label_recheche          = new MetroFramework.Controls.MetroLabel();
            label_recheche.AutoSize = true;
            label_recheche.Location = new Point((int)(fenetre.Width * 0.5), (int)(position_y - label_recheche.Size.Height * 1.5));
            label_recheche.Name     = "label_recherche";
            label_recheche.Text     = "Sortie du planning";

            temps_sortie_planning = new DateTimePicker();
            temps_sortie_planning.CustomFormat = "HH:mm";
            temps_sortie_planning.Format       = DateTimePickerFormat.Custom;
            temps_sortie_planning.Location     = new Point((int)(fenetre.Width * 0.7), (int)(position_y - label_recheche.Size.Height * 1.5));
            temps_sortie_planning.Name         = "debut_periode_date";
            temps_sortie_planning.ShowUpDown   = true;
            temps_sortie_planning.Size         = new Size(70, 25);
            temps_sortie_planning.Value        = new DateTime(1900, 1, 1, 0, 0, 0);



            fenetre.Controls.Add(label_recheche);
            fenetre.Controls.Add(temps_sortie_planning);
        }
コード例 #6
0
ファイル: DBUtils.cs プロジェクト: Alexander-knure/OMEGA
        public static bool OpenConnection(MetroFramework.Controls.MetroLabel lbStatus, Logger logger)
        {
            try
            {
                conn               = GetDBConnection();
                lbStatus.Text      = String.Empty;
                lbStatus.ForeColor = Color.Yellow;
                lbStatus.Text     += "Openning connection";
                conn.Open();

                lbStatus.ForeColor = Color.GreenYellow;
                lbStatus.Text      = String.Empty;
                lbStatus.Text     += "Connection successful";

                logger.Info("connection successful");
                return(true);
            }
            catch (MySqlException exc)
            {
                lbStatus.ForeColor = Color.Red;

                lbStatus.Text = "Error (check server)";

                logger.Error("open connection:" + exc);
                return(false);
            }
        }
コード例 #7
0
ファイル: Form1.cs プロジェクト: DemonRem/BnS-Buddy-Updater
            public static void Popup(string Message)
            {
                ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));

                MetroFramework.Forms.MetroForm prompt = new MetroFramework.Forms.MetroForm()
                {
                    Width           = 280,
                    Height          = 135,
                    FormBorderStyle = FormBorderStyle.None,
                    Resizable       = false,
                    AutoSize        = true,
                    AutoSizeMode    = AutoSizeMode.GrowOnly,
                    Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))),
                    ControlBox      = false,
                    Theme           = MetroFramework.MetroThemeStyle.Dark,
                    DisplayHeader   = false,
                    TopMost         = true,
                    Text            = "",
                    StartPosition   = FormStartPosition.CenterScreen
                };
                MetroFramework.Controls.MetroLabel textLabel = new MetroFramework.Controls.MetroLabel()
                {
                    AutoSize = true, Left = 5, Top = 20, Text = Message, Width = 270, Height = 40, TextAlign = ContentAlignment.MiddleCenter, Theme = MetroFramework.MetroThemeStyle.Dark
                };
                MetroFramework.Controls.MetroButton confirmation = new MetroFramework.Controls.MetroButton()
                {
                    Text = "Ok", Left = 5, Width = 100, Top = 130, DialogResult = DialogResult.OK, Theme = MetroFramework.MetroThemeStyle.Dark
                };
                prompt.Controls.Add(confirmation);
                prompt.Controls.Add(textLabel);
                prompt.AcceptButton = confirmation;
                prompt.ShowDialog();
            }
コード例 #8
0
 public TreeConstructor(string file, TreeView tv, MetroFramework.Controls.MetroLabel stat)
 {
     FilePath                    = file;
     TreeView                    = tv;
     TreeView.Sorted             = true;
     TreeView.TreeViewNodeSorter = new NodeSorter();
     Status           = stat;
     UniqueProperties = new HashSet <string>();
 }
コード例 #9
0
        public static async Task setTimeout(MetroFramework.Controls.MetroLabel iLabel, long iTime)
        {
            var iTimer = new System.Timers.Timer();

            iTimer.Interval = iTime;

            iTimer.Elapsed += (iSeconds, en) =>
            {
                iLabel.Visible = false;
            };

            await Task.Run(() => iTimer.Start());
        }
コード例 #10
0
 public void CreateLabel(int top, string text)
 {
     MetroFramework.Controls.MetroLabel label = new MetroFramework.Controls.MetroLabel();
     this.Controls.Add(label);
     label.Top    = top;
     label.Left   = 75;
     label.Text   = text;
     label.Anchor = AnchorStyles.None;
     label.BringToFront();
     label.AutoSize   = false;
     label.Size       = new Size(1200, 50);
     label.WrapToLine = true;
 }
コード例 #11
0
        public void AddLesson(Lesson Lesson, string Format)
        {
            Format = Format.Replace("[SubjectName]", DAL.Methods.GetSubjectName(Lesson.SubjectID));
            Format = Format.Replace("[GroupName]", DAL.Methods.GetGroupName(Lesson.GroupID));
            Label l = new Label()
            {
                Name        = "label_" + Lesson.Day + "_" + Lesson.Period,
                Text        = Format,
                BackColor   = BackColor,
                BorderStyle = BorderStyle.None,
                ForeColor   = ForeColor,
                Dock        = DockStyle.Fill,
                TabIndex    = 0,
                Margin      = new Padding(0),
                Padding     = new Padding(0),
                TextAlign   = ContentAlignment.MiddleCenter,
                Font        = new Font(Font.FontFamily, Font.Size * 0.95F),
                Tag         = Lesson
            };

            l.MouseEnter += (object _sender, EventArgs _e) =>
            {
                Color temp = ((Control)_sender).BackColor;
                ((Control)_sender).BackColor = ((Control)_sender).ForeColor;
                ((Control)_sender).ForeColor = temp;
            };
            l.MouseLeave += (object _sender, EventArgs _e) =>
            {
                Color temp = ((Control)_sender).BackColor;
                ((Control)_sender).BackColor = ((Control)_sender).ForeColor;
                ((Control)_sender).ForeColor = temp;
            };
            for (int row = 1; row <= Lesson.Period; row++)
            {
                if (Table.GetControlFromPosition(0, row) == null)
                {
                    MetroFramework.Controls.MetroLabel c = new MetroFramework.Controls.MetroLabel()
                    {
                        Dock = DockStyle.Fill,
                        Text = row.ToString(),
                        UseCustomBackColor = true,
                        UseCustomForeColor = true
                    };
                    Table.Controls.Add(c, 0, row);
                }
            }
            Table.Controls.Add(l, Lesson.Day, Lesson.Period);
        }
コード例 #12
0
        private void createFields(Dictionary <string, string> keys)
        {
            int n         = keys.Count;
            var arrKeys   = keys.Keys.ToArray();
            var arrValues = keys.Values.ToArray();

            txtBox = new MetroFramework.Controls.MetroTextBox[n];
            lbl    = new MetroFramework.Controls.MetroLabel[n];
            btn    = new MetroFramework.Controls.MetroButton[n];

            for (int i = 0; i < n; ++i)
            {
                lbl[i]      = new MetroFramework.Controls.MetroLabel();
                lbl[i].Name = "label" + arrKeys[i];
                lbl[i].Text = arrKeys[i];

                txtBox[i]      = new MetroFramework.Controls.MetroTextBox();
                txtBox[i].Name = "txtBox" + arrValues[i];
                txtBox[i].Text = arrValues[i];

                btn[i]      = new MetroFramework.Controls.MetroButton();
                btn[i].Name = arrKeys[i];
                btn[i].Text = "X";
            }

            for (int i = 0; i < n; i++)
            {
                lbl[i].Visible     = true;
                lbl[i].Location    = new Point(10, 60 + space);
                txtBox[i].Visible  = true;
                txtBox[i].Location = new Point(100, 60 + space);
                txtBox[i].Size     = new System.Drawing.Size(75, 23);
                txtBox[i].TabIndex = n + 1;
                txtBox[i].ReadOnly = true;
                txtBox[i].Click   += delegate { Clipboard.SetText(this.ActiveControl.Text); };
                btn[i].Visible     = true;
                btn[i].Location    = new Point(200, 60 + space);
                btn[i].Size        = new System.Drawing.Size(25, 25);
                btn[i].TabIndex    = n + 2;
                btn[i].Click      += delegate { deleteKey(this.ActiveControl.Name); };
                this.Controls.Add(txtBox[i]);
                this.Controls.Add(lbl[i]);
                this.Controls.Add(btn[i]);
                space += 50;
            }

            space = 20;
        }
コード例 #13
0
        private void UpdateMenu()
        {
            GetDatabaseValue();
            try
            {
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    if (pX > pictureX * 3)
                    {
                        pX  = 0;
                        lX  = 42;
                        pY += pictureY;
                        lY += labelY;
                    }

                    var picture = new PictureBox
                    {
                        Name     = "picture" + i,
                        Size     = new Size(133, 110),
                        Location = new Point(pX, pY),
                        SizeMode = PictureBoxSizeMode.StretchImage,
                        Tag      = dt.Rows[i][1],
                        Image    = GetImageFromByteArray((byte[])dt.Rows[i][3]),
                    };

                    var label = new MetroFramework.Controls.MetroLabel
                    {
                        Name     = "label" + i,
                        Location = new Point(lX, lY),
                        AutoSize = true,
                        Text     = Convert.ToString(dt.Rows[i][2]) + "PHP",
                        Tag      = dt.Rows[i][1],
                    };

                    pX += pictureX;
                    lX += labelX;

                    tpMenu.SelectedTab.Controls.Add(picture);
                    tpMenu.SelectedTab.Controls.Add(label);

                    picture.MouseClick += new MouseEventHandler(CheckClickedItem);
                }
            }
            catch (Exception ex)
            {
                System.Diagnostics.Debug.WriteLine("ControlsTag: " + ex.Message);
            }
        }
コード例 #14
0
 public void responseLabel(MetroFramework.Controls.MetroLabel label)
 {
     if (response.Contains("Successfully"))
     {
         label.ForeColor = System.Drawing.Color.Green;
     }
     else if (response.Contains("Validating"))
     {
         label.ForeColor = System.Drawing.Color.Orange;
     }
     else
     {
         label.ForeColor = System.Drawing.Color.Red;
     }
     label.Text = response;
 }
コード例 #15
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.directorySearcher1 = new System.DirectoryServices.DirectorySearcher();
     this.metroLabel1 = new MetroFramework.Controls.MetroLabel();
     this.metroLabel2 = new MetroFramework.Controls.MetroLabel();
     this.SuspendLayout();
     //
     // directorySearcher1
     //
     this.directorySearcher1.ClientTimeout = System.TimeSpan.Parse("-00:00:01");
     this.directorySearcher1.ServerPageTimeLimit = System.TimeSpan.Parse("-00:00:01");
     this.directorySearcher1.ServerTimeLimit = System.TimeSpan.Parse("-00:00:01");
     //
     // metroLabel1
     //
     this.metroLabel1.AutoSize = true;
     this.metroLabel1.FontSize = MetroFramework.MetroLabelSize.Tall;
     this.metroLabel1.Location = new System.Drawing.Point(302, 33);
     this.metroLabel1.Name = "metroLabel1";
     this.metroLabel1.Size = new System.Drawing.Size(82, 25);
     this.metroLabel1.TabIndex = 0;
     this.metroLabel1.Text = "Welcome";
     //
     // metroLabel2
     //
     this.metroLabel2.AutoSize = true;
     this.metroLabel2.FontSize = MetroFramework.MetroLabelSize.Tall;
     this.metroLabel2.Location = new System.Drawing.Point(182, 95);
     this.metroLabel2.Name = "metroLabel2";
     this.metroLabel2.Size = new System.Drawing.Size(310, 25);
     this.metroLabel2.TabIndex = 1;
     this.metroLabel2.Text = "You are successfully login  into this site!";
     //
     // HomePage
     //
     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.metroLabel2);
     this.Controls.Add(this.metroLabel1);
     this.Name = "HomePage";
     this.Text = "HomePage";
     this.Load += new System.EventHandler(this.HomePage_Load);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #16
0
        private void NotifMessage(string message)
        {
            MetroFramework.Controls.MetroLabel lblStatusDevice = new MetroFramework.Controls.MetroLabel();
            lblStatusDevice.BackColor          = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
            lblStatusDevice.ForeColor          = System.Drawing.SystemColors.ActiveCaptionText;
            lblStatusDevice.Location           = new System.Drawing.Point(0, 121);
            lblStatusDevice.Name               = "lblStatusDevice";
            lblStatusDevice.AutoSize           = true;
            lblStatusDevice.MinimumSize        = new Size(1920, 0);
            lblStatusDevice.TabIndex           = 3;
            lblStatusDevice.Text               = message;
            lblStatusDevice.TextAlign          = System.Drawing.ContentAlignment.MiddleCenter;
            lblStatusDevice.UseCustomBackColor = true;
            lblStatusDevice.UseCustomForeColor = true;

            this.Controls.Add(lblStatusDevice);
        }
コード例 #17
0
 /// <summary>
 /// This method is required for Windows Forms designer support.
 /// Do not change the method contents inside the source code editor. The Forms designer might
 /// not be able to load this method if it was changed manually.
 /// </summary>
 private void InitializeComponent()
 {
     this.CounterLabel    = new MetroFramework.Controls.MetroLabel();
     this.IncrementButton = new MetroFramework.Controls.MetroButton();
     this.ResetButton     = new MetroFramework.Controls.MetroButton();
     this.SuspendLayout();
     //
     // CounterLabel
     //
     this.CounterLabel.Location = new System.Drawing.Point(24, 64);
     this.CounterLabel.Name     = "CounterLabel";
     this.CounterLabel.Size     = new System.Drawing.Size(100, 23);
     this.CounterLabel.TabIndex = 0;
     this.CounterLabel.Text     = "0";
     //
     // IncrementButton
     //
     this.IncrementButton.Location      = new System.Drawing.Point(24, 91);
     this.IncrementButton.Name          = "IncrementButton";
     this.IncrementButton.Size          = new System.Drawing.Size(75, 23);
     this.IncrementButton.TabIndex      = 1;
     this.IncrementButton.Text          = "Increment";
     this.IncrementButton.UseSelectable = true;
     //
     // ResetButton
     //
     this.ResetButton.Location      = new System.Drawing.Point(105, 90);
     this.ResetButton.Name          = "ResetButton";
     this.ResetButton.Size          = new System.Drawing.Size(75, 23);
     this.ResetButton.TabIndex      = 2;
     this.ResetButton.Text          = "Reset";
     this.ResetButton.UseSelectable = true;
     //
     // MainForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(300, 300);
     this.Controls.Add(this.ResetButton);
     this.Controls.Add(this.IncrementButton);
     this.Controls.Add(this.CounterLabel);
     this.Name  = "MainForm";
     this.Text  = "MetroUICounter";
     this.Load += new System.EventHandler(this.MainFormLoad);
     this.ResumeLayout(false);
 }
コード例 #18
0
ファイル: UserKalendar.cs プロジェクト: Joso997/DnevnikRada
        void Osvjezi()
        {
            int top  = 40;
            int left = 5 + mjesta.Kalendar.GetDayInWeek() * 42;

            Mjesec_Godina.Text = CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(mjesta.Kalendar.Datum.Month) + " " + mjesta.Kalendar.Datum.Year;
            int razmak = mjesta.Kalendar.GetDayInWeek();

            DataTable dT = new DataTable();

            dT = mjesta.Ucitaj();
            Console.WriteLine();
            foreach (int i in Enumerable.Range(1, mjesta.Kalendar.GetNumOfDays()))
            {
                MetroFramework.Controls.MetroLabel label = new MetroFramework.Controls.MetroLabel
                {
                    Location  = new Point(left, top),
                    Margin    = new Padding(5, 8, 7, 0),
                    Name      = "day" + i.ToString(),
                    Size      = new Size(30, 30),
                    TextAlign = ContentAlignment.MiddleCenter,
                    Text      = i.ToString(),
                    Visible   = true
                };
                if (mjesta.Kalendar.Datum.Date == DateTime.Now.Date && i == DateTime.Today.Day)
                {
                    label.UseCustomBackColor = true;
                    label.FontWeight         = (MetroFramework.MetroLabelWeight)FontStyle.Bold;
                    label.BackColor          = Color.Red;
                }
                this.Controls.Add(label);
                left += label.Width + label.Margin.Left + label.Margin.Right;
                if (razmak == 6)
                {
                    top   += label.Height + label.Margin.Top;
                    left   = 5;
                    razmak = 0;
                }
                else
                {
                    razmak++;
                }
            }
            GetEvents();
        }
コード例 #19
0
        private void catchTheControls()
        {
            txtbName     = (MetroFramework.Controls.MetroTextBox)productWindow.Controls.Find("mTxtBxName", true).First();
            cmbbSubcontr = (MetroFramework.Controls.MetroComboBox)productWindow.Controls.Find("mCmbBxSubcontr", true).First();
            txtbQuantUn  = (MetroFramework.Controls.MetroTextBox)productWindow.Controls.Find("mTxtBxQuantUnit", true).First();
            txtbDescr    = (MetroFramework.Controls.MetroTextBox)productWindow.Controls.Find("mTxtBxDescr", true).First();
            txtbSaftySh  = (MetroFramework.Controls.MetroTextBox)productWindow.Controls.Find("mTxtBxSheet", true).First();
            txtbDanger   = (MetroFramework.Controls.MetroTextBox)productWindow.Controls.Find("mTxtBxDanger", true).First();

            txtbStripping = (MetroFramework.Controls.MetroTextBox)productWindow.Controls.Find("mTxtBxStripping", true).First();
            txtbQuan      = (MetroFramework.Controls.MetroTextBox)productWindow.Controls.Find("mTxtBxQuantity", true).First();
            txtbPlace     = (MetroFramework.Controls.MetroTextBox)productWindow.Controls.Find("mTxtBxPlaceing", true).First();
            txtbBarcode   = (MetroFramework.Controls.MetroTextBox)productWindow.Controls.Find("mTxtBxBarcode", true).First();

            btnOk    = (MetroFramework.Controls.MetroTile)productWindow.Controls.Find("mTileOk", true).First();
            lblInfos = (MetroFramework.Controls.MetroLabel)productWindow.Controls.Find("mLabelInfos", true).First();
            lblMain  = (MetroFramework.Controls.MetroLabel)productWindow.Controls.Find("mLabelMainTitle", true).First();
        }
コード例 #20
0
ファイル: DBUtils.cs プロジェクト: Alexander-knure/OMEGA
        public static bool CloseConnection(MetroFramework.Controls.MetroLabel lbStatus, Logger logger)
        {
            try
            {
                if (conn != null)
                {
                    lbStatus.Text      = "Status: connection closed";
                    lbStatus.ForeColor = Color.Yellow;
                    conn.Close();
                }

                return(true);
            }
            catch (MySqlException ex)
            {
                lbStatus.Text      = "Status: error";
                lbStatus.ForeColor = Color.Red;
                logger.Error("close connection: " + ex.Message);
                return(false);
            }
        }
コード例 #21
0
        private void InitialalarmHistory()
        {
            int iLabelHeight = 15;

            MetroFramework.Controls.MetroLabel lblLeftTitle = new MetroFramework.Controls.MetroLabel();
            lblLeftTitle.Font         = new Font("宋体", 8F, FontStyle.Bold, GraphicsUnit.Point, 0);
            lblLeftTitle.Height       = iLabelHeight;
            lblLeftTitle.Text         = "现场照";
            lblLeftTitle.StyleManager = metroStyleManager;
            lblLeftTitle.Style        = this.Style;
            lblLeftTitle.Location     = new Point(plAlarmHistory.Location.X, 0);

            MetroFramework.Controls.MetroLabel lblRightTitle = new MetroFramework.Controls.MetroLabel();
            lblRightTitle.Font         = new Font("宋体", 8F, FontStyle.Bold, GraphicsUnit.Point, 0);
            lblRightTitle.Height       = iLabelHeight;
            lblRightTitle.Text         = "标准照";
            lblRightTitle.StyleManager = metroStyleManager;
            lblRightTitle.Style        = this.Style;
            lblRightTitle.Location     = new Point(plAlarmHistory.Location.X + plAlarmHistory.Width / 2, 0);

            plAlarmHistory.Controls.Add(lblLeftTitle);
            plAlarmHistory.Controls.Add(lblRightTitle);
        }
コード例 #22
0
ファイル: Bloc_Jour.cs プロジェクト: Paulalex85/ShiftBot
        public Bloc_Jour(int position_x, int position_y, DateTime date, Bloc_Fenetre fenetre)
        {
            date_jour    = date;
            date_jour    = date_jour.Date;
            this.fenetre = fenetre;

            bouton_moins = new MetroFramework.Controls.MetroButton();
            bouton_plus  = new MetroFramework.Controls.MetroButton();
            label_date   = new MetroFramework.Controls.MetroLabel();

            bouton_moins.Location = new Point(position_x, position_y + 30);
            bouton_moins.Name     = "bouton_moins";
            bouton_moins.Size     = new Size(28, 21);
            bouton_moins.Text     = "-";
            bouton_moins.UseVisualStyleBackColor = true;

            bouton_plus.Location = new Point(position_x + (int)(bouton_moins.Size.Width * 1.5), position_y + 30);
            bouton_plus.Name     = "bouton_plus";
            bouton_plus.Size     = new Size(28, 21);
            bouton_plus.Text     = "+";
            bouton_plus.UseVisualStyleBackColor = true;

            label_date.AutoSize = true;
            label_date.Location = new Point(position_x, position_y);
            label_date.Name     = "label_date";
            label_date.Size     = new Size(72, 13);
            Change_Jour_Label(date);

            list_interval.Add(new Bloc_Shift_Interval(bouton_moins.Location.X,
                                                      bouton_moins.Location.Y + bouton_plus.Size.Height * 2));
            fenetre.fenetre.Controls.Add(list_interval[0].debut_periode);
            fenetre.fenetre.Controls.Add(list_interval[0].fin_periode);

            bouton_moins.Click += Bouton_moins_Click;
            bouton_plus.Click  += Bouton_plus_Click;
        }
コード例 #23
0
 /// <summary>
 /// Требуемый метод для поддержки конструктора — не изменяйте
 /// содержимое этого метода с помощью редактора кода.
 /// </summary>
 private void InitializeComponent()
 {
     MetroFramework.Controls.MetroLabel metroLabel1;
     this.searchTextBox     = new MetroFramework.Controls.MetroTextBox();
     this.downloadButton    = new MetroFramework.Controls.MetroButton();
     this.downloadBox       = new System.Windows.Forms.ListBox();
     this.settingsButton    = new MetroFramework.Controls.MetroButton();
     this.metroButton2      = new MetroFramework.Controls.MetroButton();
     this.metroProgressBar1 = new MetroFramework.Controls.MetroProgressBar();
     this.progressLabel     = new MetroFramework.Controls.MetroLabel();
     this.panel1            = new System.Windows.Forms.Panel();
     metroLabel1            = new MetroFramework.Controls.MetroLabel();
     this.SuspendLayout();
     //
     // metroLabel1
     //
     metroLabel1.AutoSize = true;
     metroLabel1.Location = new System.Drawing.Point(5, 33);
     metroLabel1.Name     = "metroLabel1";
     metroLabel1.Size     = new System.Drawing.Size(96, 19);
     metroLabel1.TabIndex = 3;
     metroLabel1.Text     = "Мои загрузки:";
     //
     // searchTextBox
     //
     this.searchTextBox.Location = new System.Drawing.Point(5, 7);
     this.searchTextBox.Name     = "searchTextBox";
     this.searchTextBox.Size     = new System.Drawing.Size(666, 23);
     this.searchTextBox.TabIndex = 0;
     //
     // downloadButton
     //
     this.downloadButton.Location = new System.Drawing.Point(677, 8);
     this.downloadButton.Name     = "downloadButton";
     this.downloadButton.Size     = new System.Drawing.Size(59, 22);
     this.downloadButton.TabIndex = 1;
     this.downloadButton.Text     = "Скачать!";
     this.downloadButton.Click   += new System.EventHandler(this.DownloadButton_Click);
     //
     // downloadBox
     //
     this.downloadBox.FormattingEnabled = true;
     this.downloadBox.Location          = new System.Drawing.Point(5, 65);
     this.downloadBox.Name     = "downloadBox";
     this.downloadBox.Size     = new System.Drawing.Size(413, 680);
     this.downloadBox.TabIndex = 4;
     //
     // settingsButton
     //
     this.settingsButton.Location = new System.Drawing.Point(742, 8);
     this.settingsButton.Name     = "settingsButton";
     this.settingsButton.Size     = new System.Drawing.Size(65, 23);
     this.settingsButton.TabIndex = 6;
     this.settingsButton.Text     = "Настройки";
     this.settingsButton.Click   += new System.EventHandler(this.SettingsButton_Click);
     //
     // metroButton2
     //
     this.metroButton2.Location = new System.Drawing.Point(813, 7);
     this.metroButton2.Name     = "metroButton2";
     this.metroButton2.Size     = new System.Drawing.Size(65, 23);
     this.metroButton2.TabIndex = 8;
     this.metroButton2.Text     = "Помощь";
     //
     // metroProgressBar1
     //
     this.metroProgressBar1.Location = new System.Drawing.Point(104, 36);
     this.metroProgressBar1.Name     = "metroProgressBar1";
     this.metroProgressBar1.Size     = new System.Drawing.Size(421, 16);
     this.metroProgressBar1.TabIndex = 9;
     //
     // progressLabel
     //
     this.progressLabel.AutoSize = true;
     this.progressLabel.Location = new System.Drawing.Point(525, 30);
     this.progressLabel.Name     = "progressLabel";
     this.progressLabel.Size     = new System.Drawing.Size(0, 0);
     this.progressLabel.TabIndex = 10;
     //
     // panel1
     //
     this.panel1.Location = new System.Drawing.Point(425, 63);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(589, 699);
     this.panel1.TabIndex = 11;
     //
     // MainForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(1024, 768);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.progressLabel);
     this.Controls.Add(this.metroProgressBar1);
     this.Controls.Add(this.metroButton2);
     this.Controls.Add(this.settingsButton);
     this.Controls.Add(this.downloadBox);
     this.Controls.Add(metroLabel1);
     this.Controls.Add(this.downloadButton);
     this.Controls.Add(this.searchTextBox);
     this.Name       = "MainForm";
     this.ShadowType = MetroFramework.Forms.MetroForm.MetroFormShadowType.SystemShadow;
     this.Style      = MetroFramework.MetroColorStyle.Black;
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #24
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     MetroFramework.Controls.MetroLabel labelAircraft;
     MetroFramework.Controls.MetroLabel labelApplicability;
     this.buttonCancel                = new System.Windows.Forms.Button();
     this.buttonOk                    = new System.Windows.Forms.Button();
     this.checkedListBoxAircraft      = new System.Windows.Forms.CheckedListBox();
     this.checkedListBoxApplicability = new System.Windows.Forms.CheckedListBox();
     labelAircraft                    = new MetroFramework.Controls.MetroLabel();
     labelApplicability               = new MetroFramework.Controls.MetroLabel();
     this.SuspendLayout();
     //
     // labelAircraft
     //
     labelAircraft.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(122)))), ((int)(((byte)(122)))), ((int)(((byte)(122)))));
     labelAircraft.Location  = new System.Drawing.Point(8, 36);
     labelAircraft.Name      = "labelAircraft";
     labelAircraft.Size      = new System.Drawing.Size(200, 19);
     labelAircraft.TabIndex  = 28;
     labelAircraft.Text      = "Aircraft";
     labelAircraft.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // labelApplicability
     //
     labelApplicability.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(122)))), ((int)(((byte)(122)))), ((int)(((byte)(122)))));
     labelApplicability.Location  = new System.Drawing.Point(222, 36);
     labelApplicability.Name      = "labelApplicability";
     labelApplicability.Size      = new System.Drawing.Size(199, 19);
     labelApplicability.TabIndex  = 39;
     labelApplicability.Text      = "Applicability";
     labelApplicability.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // buttonCancel
     //
     this.buttonCancel.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.buttonCancel.FlatStyle    = System.Windows.Forms.FlatStyle.Flat;
     this.buttonCancel.Font         = new System.Drawing.Font("Verdana", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
     this.buttonCancel.ForeColor    = System.Drawing.Color.FromArgb(((int)(((byte)(62)))), ((int)(((byte)(155)))), ((int)(((byte)(246)))));
     this.buttonCancel.Location     = new System.Drawing.Point(346, 517);
     this.buttonCancel.Name         = "buttonCancel";
     this.buttonCancel.Size         = new System.Drawing.Size(75, 33);
     this.buttonCancel.TabIndex     = 38;
     this.buttonCancel.Text         = "Cancel";
     this.buttonCancel.Click       += new System.EventHandler(this.buttonCancel_Click);
     //
     // buttonOk
     //
     this.buttonOk.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.buttonOk.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.buttonOk.Font      = new System.Drawing.Font("Verdana", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
     this.buttonOk.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(62)))), ((int)(((byte)(155)))), ((int)(((byte)(246)))));
     this.buttonOk.Location  = new System.Drawing.Point(265, 517);
     this.buttonOk.Name      = "buttonOk";
     this.buttonOk.Size      = new System.Drawing.Size(75, 33);
     this.buttonOk.TabIndex  = 37;
     this.buttonOk.Text      = "Ok";
     this.buttonOk.Click    += new System.EventHandler(this.buttonOk_Click);
     //
     // checkedListBoxAircraft
     //
     this.checkedListBoxAircraft.FormattingEnabled = true;
     this.checkedListBoxAircraft.Location          = new System.Drawing.Point(8, 63);
     this.checkedListBoxAircraft.Name                  = "checkedListBoxAircraft";
     this.checkedListBoxAircraft.Size                  = new System.Drawing.Size(200, 439);
     this.checkedListBoxAircraft.TabIndex              = 40;
     this.checkedListBoxAircraft.SelectedIndexChanged += new System.EventHandler(this.checkedListBoxAircraft_SelectedIndexChanged);
     //
     // checkedListBoxApplicability
     //
     this.checkedListBoxApplicability.FormattingEnabled = true;
     this.checkedListBoxApplicability.Location          = new System.Drawing.Point(222, 63);
     this.checkedListBoxApplicability.Name     = "checkedListBoxApplicability";
     this.checkedListBoxApplicability.Size     = new System.Drawing.Size(200, 439);
     this.checkedListBoxApplicability.TabIndex = 41;
     //
     // CopyADToAircraftForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(428, 562);
     this.Controls.Add(this.checkedListBoxApplicability);
     this.Controls.Add(this.checkedListBoxAircraft);
     this.Controls.Add(labelApplicability);
     this.Controls.Add(this.buttonCancel);
     this.Controls.Add(this.buttonOk);
     this.Controls.Add(labelAircraft);
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name        = "CopyADToAircraftForm";
     this.Resizable   = false;
     this.ResumeLayout(false);
 }
コード例 #25
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            MetroFramework.Controls.MetroLabel passwordLabel;
            this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components);
            this.metroPanel1 = new MetroFramework.Controls.MetroPanel();
            this.buttonValidation = new MetroFramework.Controls.MetroButton();
            this.buttonService = new MetroFramework.Controls.MetroButton();
            this.buttonPropertyChange = new MetroFramework.Controls.MetroButton();
            this.passwordTextBox = new MetroFramework.Controls.MetroTextBox();
            this.userNameLabel = new MetroFramework.Controls.MetroLabel();
            this.userNameTextBox = new MetroFramework.Controls.MetroTextBox();
            this.bindingSource = new System.Windows.Forms.BindingSource(this.components);
            passwordLabel = new MetroFramework.Controls.MetroLabel();
            ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
            this.metroPanel1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.bindingSource)).BeginInit();
            this.SuspendLayout();
            // 
            // errorProvider
            // 
            this.errorProvider.BlinkStyle = System.Windows.Forms.ErrorBlinkStyle.NeverBlink;
            this.errorProvider.ContainerControl = this;
            this.errorProvider.DataSource = this.bindingSource;
            // 
            // metroPanel1
            // 
            this.metroPanel1.Controls.Add(this.buttonValidation);
            this.metroPanel1.Controls.Add(this.buttonService);
            this.metroPanel1.Controls.Add(this.buttonPropertyChange);
            this.metroPanel1.Controls.Add(passwordLabel);
            this.metroPanel1.Controls.Add(this.passwordTextBox);
            this.metroPanel1.Controls.Add(this.userNameLabel);
            this.metroPanel1.Controls.Add(this.userNameTextBox);
            this.metroPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.metroPanel1.HorizontalScrollbarBarColor = true;
            this.metroPanel1.HorizontalScrollbarHighlightOnWheel = false;
            this.metroPanel1.HorizontalScrollbarSize = 10;
            this.metroPanel1.Location = new System.Drawing.Point(20, 60);
            this.metroPanel1.Name = "metroPanel1";
            this.metroPanel1.Size = new System.Drawing.Size(289, 199);
            this.metroPanel1.TabIndex = 7;
            this.metroPanel1.VerticalScrollbarBarColor = true;
            this.metroPanel1.VerticalScrollbarHighlightOnWheel = false;
            this.metroPanel1.VerticalScrollbarSize = 10;
            // 
            // buttonValidation
            // 
            this.buttonValidation.FontSize = MetroFramework.MetroButtonSize.Tall;
            this.buttonValidation.Location = new System.Drawing.Point(20, 84);
            this.buttonValidation.Name = "buttonValidation";
            this.buttonValidation.Size = new System.Drawing.Size(246, 30);
            this.buttonValidation.TabIndex = 11;
            this.buttonValidation.Text = "Validate With Default Ruleset";
            this.buttonValidation.UseSelectable = true;
            this.buttonValidation.Click += new System.EventHandler(this.buttonValidation_Click);
            // 
            // buttonService
            // 
            this.buttonService.FontSize = MetroFramework.MetroButtonSize.Tall;
            this.buttonService.Location = new System.Drawing.Point(20, 156);
            this.buttonService.Name = "buttonService";
            this.buttonService.Size = new System.Drawing.Size(246, 30);
            this.buttonService.TabIndex = 13;
            this.buttonService.Text = "Validate and Call Service";
            this.buttonService.UseSelectable = true;
            this.buttonService.Click += new System.EventHandler(this.buttonService_Click);
            // 
            // buttonPropertyChange
            // 
            this.buttonPropertyChange.FontSize = MetroFramework.MetroButtonSize.Tall;
            this.buttonPropertyChange.Location = new System.Drawing.Point(20, 120);
            this.buttonPropertyChange.Name = "buttonPropertyChange";
            this.buttonPropertyChange.Size = new System.Drawing.Size(246, 30);
            this.buttonPropertyChange.TabIndex = 12;
            this.buttonPropertyChange.Text = "PropertyChanged in Logic";
            this.buttonPropertyChange.UseSelectable = true;
            this.buttonPropertyChange.Click += new System.EventHandler(this.buttonPropertyChange_Click);
            // 
            // passwordLabel
            // 
            passwordLabel.FontSize = MetroFramework.MetroLabelSize.Tall;
            passwordLabel.Location = new System.Drawing.Point(20, 48);
            passwordLabel.Name = "passwordLabel";
            passwordLabel.Size = new System.Drawing.Size(120, 30);
            passwordLabel.TabIndex = 9;
            passwordLabel.Text = "パスワード:";
            passwordLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // passwordTextBox
            // 
            // 
            // 
            // 
            this.passwordTextBox.CustomButton.Image = null;
            this.passwordTextBox.CustomButton.Location = new System.Drawing.Point(92, 2);
            this.passwordTextBox.CustomButton.Name = "";
            this.passwordTextBox.CustomButton.Size = new System.Drawing.Size(25, 25);
            this.passwordTextBox.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
            this.passwordTextBox.CustomButton.TabIndex = 1;
            this.passwordTextBox.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
            this.passwordTextBox.CustomButton.UseSelectable = true;
            this.passwordTextBox.CustomButton.Visible = false;
            this.passwordTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bindingSource, "Password", true));
            this.passwordTextBox.FontSize = MetroFramework.MetroTextBoxSize.Tall;
            this.passwordTextBox.Lines = new string[0];
            this.passwordTextBox.Location = new System.Drawing.Point(146, 48);
            this.passwordTextBox.MaxLength = 32767;
            this.passwordTextBox.Name = "passwordTextBox";
            this.passwordTextBox.PasswordChar = '\0';
            this.passwordTextBox.ScrollBars = System.Windows.Forms.ScrollBars.None;
            this.passwordTextBox.SelectedText = "";
            this.passwordTextBox.SelectionLength = 0;
            this.passwordTextBox.SelectionStart = 0;
            this.passwordTextBox.Size = new System.Drawing.Size(120, 30);
            this.passwordTextBox.Style = MetroFramework.MetroColorStyle.Blue;
            this.passwordTextBox.TabIndex = 10;
            this.passwordTextBox.UseSelectable = true;
            this.passwordTextBox.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
            this.passwordTextBox.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
            // 
            // userNameLabel
            // 
            this.userNameLabel.FontSize = MetroFramework.MetroLabelSize.Tall;
            this.userNameLabel.Location = new System.Drawing.Point(20, 12);
            this.userNameLabel.Name = "userNameLabel";
            this.userNameLabel.Size = new System.Drawing.Size(120, 30);
            this.userNameLabel.TabIndex = 7;
            this.userNameLabel.Text = "ユーザ名:";
            this.userNameLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // userNameTextBox
            // 
            // 
            // 
            // 
            this.userNameTextBox.CustomButton.Image = null;
            this.userNameTextBox.CustomButton.Location = new System.Drawing.Point(92, 2);
            this.userNameTextBox.CustomButton.Name = "";
            this.userNameTextBox.CustomButton.Size = new System.Drawing.Size(25, 25);
            this.userNameTextBox.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
            this.userNameTextBox.CustomButton.TabIndex = 1;
            this.userNameTextBox.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
            this.userNameTextBox.CustomButton.UseSelectable = true;
            this.userNameTextBox.CustomButton.Visible = false;
            this.userNameTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bindingSource, "UserName", true));
            this.userNameTextBox.FontSize = MetroFramework.MetroTextBoxSize.Tall;
            this.userNameTextBox.Lines = new string[0];
            this.userNameTextBox.Location = new System.Drawing.Point(146, 12);
            this.userNameTextBox.MaxLength = 32767;
            this.userNameTextBox.Name = "userNameTextBox";
            this.userNameTextBox.PasswordChar = '\0';
            this.userNameTextBox.ScrollBars = System.Windows.Forms.ScrollBars.None;
            this.userNameTextBox.SelectedText = "";
            this.userNameTextBox.SelectionLength = 0;
            this.userNameTextBox.SelectionStart = 0;
            this.userNameTextBox.Size = new System.Drawing.Size(120, 30);
            this.userNameTextBox.Style = MetroFramework.MetroColorStyle.Blue;
            this.userNameTextBox.TabIndex = 8;
            this.userNameTextBox.UseSelectable = true;
            this.userNameTextBox.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
            this.userNameTextBox.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
            // 
            // bindingSource
            // 
            this.bindingSource.DataSource = typeof(FormApp.ViewModels.SampleViewModel);
            // 
            // SampleForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(16F, 41F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(329, 279);
            this.Controls.Add(this.metroPanel1);
            this.Font = new System.Drawing.Font("メイリオ", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
            this.Margin = new System.Windows.Forms.Padding(8, 10, 8, 10);
            this.Name = "SampleForm";
            this.Text = "SampleForm";
            ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit();
            this.metroPanel1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.bindingSource)).EndInit();
            this.ResumeLayout(false);

        }
コード例 #26
0
 private void ValidarTxt(Func <string, bool> metodo, MetroFramework.Controls.MetroTextBox txt, MetroFramework.Controls.MetroTile t, MetroFramework.Controls.MetroLabel l)
 {
     if (metodo(txt.Text))
     {
         EntradasVal = true;
         val.CambiarColor(t, l, 'g');
     }
     else
     {
         EntradasVal = false;
         if (txt.Text == "")
         {
             val.CambiarColor(t, l, 'b');
         }
         else
         {
             val.CambiarColor(t, l, 'r');
         }
     }
     ValidarEntradas();
 }
コード例 #27
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this.metroLabel1 = new MetroFramework.Controls.MetroLabel();
     this.txtVertice = new MetroFramework.Controls.MetroTextBox();
     this.btnCancelar = new MetroFramework.Controls.MetroButton();
     this.btnAceptar = new MetroFramework.Controls.MetroButton();
     this.VerticeStyleManager = new MetroFramework.Components.MetroStyleManager(this.components);
     ((System.ComponentModel.ISupportInitialize)(this.VerticeStyleManager)).BeginInit();
     this.SuspendLayout();
     //
     // metroLabel1
     //
     this.metroLabel1.AutoSize = true;
     this.metroLabel1.FontSize = MetroFramework.MetroLabelSize.Tall;
     this.metroLabel1.Location = new System.Drawing.Point(23, 67);
     this.metroLabel1.Name = "metroLabel1";
     this.metroLabel1.Size = new System.Drawing.Size(162, 25);
     this.metroLabel1.TabIndex = 12;
     this.metroLabel1.Text = "Valor nuevo vertice:";
     this.metroLabel1.UseStyleColors = true;
     //
     // txtVertice
     //
     //
     //
     //
     this.txtVertice.CustomButton.Image = null;
     this.txtVertice.CustomButton.Location = new System.Drawing.Point(71, 2);
     this.txtVertice.CustomButton.Name = "";
     this.txtVertice.CustomButton.Size = new System.Drawing.Size(23, 23);
     this.txtVertice.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
     this.txtVertice.CustomButton.TabIndex = 1;
     this.txtVertice.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
     this.txtVertice.CustomButton.UseSelectable = true;
     this.txtVertice.CustomButton.Visible = false;
     this.txtVertice.FontSize = MetroFramework.MetroTextBoxSize.Tall;
     this.txtVertice.Lines = new string[0];
     this.txtVertice.Location = new System.Drawing.Point(189, 65);
     this.txtVertice.MaxLength = 32767;
     this.txtVertice.Name = "txtVertice";
     this.txtVertice.PasswordChar = '\0';
     this.txtVertice.PromptText = "#";
     this.txtVertice.ScrollBars = System.Windows.Forms.ScrollBars.None;
     this.txtVertice.SelectedText = "";
     this.txtVertice.SelectionLength = 0;
     this.txtVertice.SelectionStart = 0;
     this.txtVertice.ShortcutsEnabled = true;
     this.txtVertice.Size = new System.Drawing.Size(97, 28);
     this.txtVertice.TabIndex = 11;
     this.txtVertice.UseSelectable = true;
     this.txtVertice.UseStyleColors = true;
     this.txtVertice.WaterMark = "#";
     this.txtVertice.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
     this.txtVertice.WaterMarkFont = new System.Drawing.Font("Segoe UI", 14.25F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtVertice.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtVertice_KeyDown);
     //
     // btnCancelar
     //
     this.btnCancelar.FontSize = MetroFramework.MetroButtonSize.Tall;
     this.btnCancelar.Highlight = true;
     this.btnCancelar.Location = new System.Drawing.Point(186, 114);
     this.btnCancelar.Name = "btnCancelar";
     this.btnCancelar.Size = new System.Drawing.Size(100, 23);
     this.btnCancelar.TabIndex = 10;
     this.btnCancelar.Text = "Cancelar";
     this.btnCancelar.UseSelectable = true;
     this.btnCancelar.UseStyleColors = true;
     this.btnCancelar.Click += new System.EventHandler(this.btnCancelar_Click);
     //
     // btnAceptar
     //
     this.btnAceptar.FontSize = MetroFramework.MetroButtonSize.Tall;
     this.btnAceptar.Highlight = true;
     this.btnAceptar.Location = new System.Drawing.Point(23, 114);
     this.btnAceptar.Name = "btnAceptar";
     this.btnAceptar.Size = new System.Drawing.Size(100, 23);
     this.btnAceptar.TabIndex = 9;
     this.btnAceptar.Text = "Aceptar";
     this.btnAceptar.UseSelectable = true;
     this.btnAceptar.UseStyleColors = true;
     this.btnAceptar.Click += new System.EventHandler(this.btnAceptar_Click);
     //
     // VerticeStyleManager
     //
     this.VerticeStyleManager.Owner = this;
     this.VerticeStyleManager.Theme = MetroFramework.MetroThemeStyle.Dark;
     //
     // Vertice
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(309, 158);
     this.Controls.Add(this.metroLabel1);
     this.Controls.Add(this.txtVertice);
     this.Controls.Add(this.btnCancelar);
     this.Controls.Add(this.btnAceptar);
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "Vertice";
     this.Resizable = false;
     this.Text = "Agregar nuevo vertice";
     this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Vertice_FormClosing);
     this.Load += new System.EventHandler(this.Vertice_Load);
     this.Shown += new System.EventHandler(this.Vertice_Shown);
     ((System.ComponentModel.ISupportInitialize)(this.VerticeStyleManager)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #28
0
        private void btnAutonomous_Click(object sender, EventArgs e)
        {
            if (lstboxAutonomousChooser.SelectedItem == null || lstboxAutonomousChooser.SelectedItem.ToString().Length == 0) return;
            MetroFramework.Forms.MetroForm autoForm = new MetroFramework.Forms.MetroForm();
            MetroFramework.Controls.MetroPanel p = new MetroFramework.Controls.MetroPanel();
            p.Name = "panel";

            string[] autoParams = autonomousDict[lstboxAutonomousChooser.SelectedItem.ToString()];
            if (autoParams.Length < 2) return;
            for (int i = 1; i < autoParams.Length; i++)
            {
                MetroFramework.Controls.MetroLabel lbl = new MetroFramework.Controls.MetroLabel();
                lbl.Text = autoParams[i].Substring(0, autoParams[i].IndexOf(":"));
                lbl.Location = new Point(10, 30 + 30 * i);
                p.Controls.Add(lbl);
                Control c;
                string ControlText = autoParams[i].Substring(autoParams[i].IndexOf(":") + 1);
                switch (ControlText)
                {
                    case "TextBox":
                        c = new MetroFramework.Controls.MetroTextBox();
                        c.Size = new Size(100, lbl.Height);
                        break;
                    case "CheckBox":
                        c = new MetroFramework.Controls.MetroCheckBox();
                        break;
                    default:
                        MessageBox.Show("Unsupported Control");
                        return;
                }
                c.Location = new Point(10 + lbl.Width, 30 + 30 * i);
                p.Controls.Add(c);
            }
            p.Top = 55;
            p.Width = autoForm.Width;
            p.Height = autoForm.Height - p.Top;
            autoForm.Controls.Add(p);
            autoForm.Text = lstboxAutonomousChooser.SelectedItem.ToString();
            autoForm.PerformLayout();
            autoForm.Show();
            autoForm.FormClosing += autoForm_FormClosing;
        }
コード例 #29
0
 private void InitializeComponent()
 {
     this.loginbox    = new MetroFramework.Controls.MetroTextBox();
     this.passwordbox = new MetroFramework.Controls.MetroTextBox();
     this.Loginbutton = new MetroFramework.Controls.MetroButton();
     this.metroLabel1 = new MetroFramework.Controls.MetroLabel();
     this.metroLabel2 = new MetroFramework.Controls.MetroLabel();
     this.metroLabel3 = new MetroFramework.Controls.MetroLabel();
     this.SuspendLayout();
     //
     // loginbox
     //
     //
     //
     //
     this.loginbox.CustomButton.Image         = null;
     this.loginbox.CustomButton.Location      = new System.Drawing.Point(110, 1);
     this.loginbox.CustomButton.Name          = "";
     this.loginbox.CustomButton.Size          = new System.Drawing.Size(21, 21);
     this.loginbox.CustomButton.Style         = MetroFramework.MetroColorStyle.Blue;
     this.loginbox.CustomButton.TabIndex      = 1;
     this.loginbox.CustomButton.Theme         = MetroFramework.MetroThemeStyle.Light;
     this.loginbox.CustomButton.UseSelectable = true;
     this.loginbox.CustomButton.Visible       = false;
     this.loginbox.Lines            = new string[0];
     this.loginbox.Location         = new System.Drawing.Point(130, 79);
     this.loginbox.MaxLength        = 32767;
     this.loginbox.Name             = "loginbox";
     this.loginbox.PasswordChar     = '\0';
     this.loginbox.ScrollBars       = System.Windows.Forms.ScrollBars.None;
     this.loginbox.SelectedText     = "";
     this.loginbox.SelectionLength  = 0;
     this.loginbox.SelectionStart   = 0;
     this.loginbox.ShortcutsEnabled = true;
     this.loginbox.Size             = new System.Drawing.Size(114, 23);
     this.loginbox.TabIndex         = 0;
     this.loginbox.UseSelectable    = true;
     this.loginbox.WaterMarkColor   = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
     this.loginbox.WaterMarkFont    = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
     //
     // passwordbox
     //
     //
     //
     //
     this.passwordbox.CustomButton.Image         = null;
     this.passwordbox.CustomButton.Location      = new System.Drawing.Point(110, 1);
     this.passwordbox.CustomButton.Name          = "";
     this.passwordbox.CustomButton.Size          = new System.Drawing.Size(21, 21);
     this.passwordbox.CustomButton.Style         = MetroFramework.MetroColorStyle.Blue;
     this.passwordbox.CustomButton.TabIndex      = 1;
     this.passwordbox.CustomButton.Theme         = MetroFramework.MetroThemeStyle.Light;
     this.passwordbox.CustomButton.UseSelectable = true;
     this.passwordbox.CustomButton.Visible       = false;
     this.passwordbox.Lines            = new string[0];
     this.passwordbox.Location         = new System.Drawing.Point(130, 136);
     this.passwordbox.MaxLength        = 32767;
     this.passwordbox.Name             = "passwordbox";
     this.passwordbox.PasswordChar     = '*';
     this.passwordbox.ScrollBars       = System.Windows.Forms.ScrollBars.None;
     this.passwordbox.SelectedText     = "";
     this.passwordbox.SelectionLength  = 0;
     this.passwordbox.SelectionStart   = 0;
     this.passwordbox.ShortcutsEnabled = true;
     this.passwordbox.Size             = new System.Drawing.Size(114, 23);
     this.passwordbox.TabIndex         = 1;
     this.passwordbox.UseSelectable    = true;
     this.passwordbox.WaterMarkColor   = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
     this.passwordbox.WaterMarkFont    = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
     //
     // Loginbutton
     //
     this.Loginbutton.Location      = new System.Drawing.Point(82, 194);
     this.Loginbutton.Name          = "Loginbutton";
     this.Loginbutton.Size          = new System.Drawing.Size(124, 40);
     this.Loginbutton.TabIndex      = 2;
     this.Loginbutton.Text          = "Вход";
     this.Loginbutton.UseSelectable = true;
     this.Loginbutton.Click        += new System.EventHandler(this.Loginbutton_Click_1);
     //
     // metroLabel1
     //
     this.metroLabel1.AutoSize = true;
     this.metroLabel1.Location = new System.Drawing.Point(39, 79);
     this.metroLabel1.Name     = "metroLabel1";
     this.metroLabel1.Size     = new System.Drawing.Size(47, 19);
     this.metroLabel1.TabIndex = 3;
     this.metroLabel1.Text     = "Логин";
     this.metroLabel1.Click   += new System.EventHandler(this.metroLabel1_Click);
     //
     // metroLabel2
     //
     this.metroLabel2.AutoSize = true;
     this.metroLabel2.Location = new System.Drawing.Point(39, 136);
     this.metroLabel2.Name     = "metroLabel2";
     this.metroLabel2.Size     = new System.Drawing.Size(54, 19);
     this.metroLabel2.TabIndex = 4;
     this.metroLabel2.Text     = "Пароль";
     //
     // metroLabel3
     //
     this.metroLabel3.AutoSize = true;
     this.metroLabel3.Location = new System.Drawing.Point(113, 30);
     this.metroLabel3.Name     = "metroLabel3";
     this.metroLabel3.Size     = new System.Drawing.Size(45, 19);
     this.metroLabel3.TabIndex = 5;
     this.metroLabel3.Text     = "ВХОД";
     //
     // Login
     //
     this.ClientSize = new System.Drawing.Size(300, 300);
     this.Controls.Add(this.metroLabel3);
     this.Controls.Add(this.metroLabel2);
     this.Controls.Add(this.metroLabel1);
     this.Controls.Add(this.Loginbutton);
     this.Controls.Add(this.passwordbox);
     this.Controls.Add(this.loginbox);
     this.Name  = "Login";
     this.Load += new System.EventHandler(this.Login_Load);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #30
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     MetroFramework.Controls.MetroLabel labelNewPassword;
     MetroFramework.Controls.MetroLabel metroLabel1;
     MetroFramework.Controls.MetroLabel metroLabel2;
     MetroFramework.Controls.MetroLabel metroLabel3;
     MetroFramework.Controls.MetroLabel metroLabel4;
     MetroFramework.Controls.MetroLabel metroLabelUiType;
     MetroFramework.Controls.MetroLabel metroLabelPersonnel;
     this.textBoxSurname         = new MetroFramework.Controls.MetroTextBox();
     this.textBoxName            = new MetroFramework.Controls.MetroTextBox();
     this.textBoxLogin           = new MetroFramework.Controls.MetroTextBox();
     this.textBoxPassword        = new MetroFramework.Controls.MetroTextBox();
     this.checkBox1              = new MetroFramework.Controls.MetroCheckBox();
     this.buttonCancel           = new System.Windows.Forms.Button();
     this.buttonOk               = new System.Windows.Forms.Button();
     this.metroComboBox1         = new MetroFramework.Controls.MetroComboBox();
     this.metroComboBoxUiType    = new MetroFramework.Controls.MetroComboBox();
     this.metroComboBoxPersonnel = new MetroFramework.Controls.MetroComboBox();
     labelNewPassword            = new MetroFramework.Controls.MetroLabel();
     metroLabel1         = new MetroFramework.Controls.MetroLabel();
     metroLabel2         = new MetroFramework.Controls.MetroLabel();
     metroLabel3         = new MetroFramework.Controls.MetroLabel();
     metroLabel4         = new MetroFramework.Controls.MetroLabel();
     metroLabelUiType    = new MetroFramework.Controls.MetroLabel();
     metroLabelPersonnel = new MetroFramework.Controls.MetroLabel();
     this.SuspendLayout();
     //
     // labelNewPassword
     //
     labelNewPassword.AutoSize  = true;
     labelNewPassword.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(122)))), ((int)(((byte)(122)))), ((int)(((byte)(122)))));
     labelNewPassword.Location  = new System.Drawing.Point(23, 60);
     labelNewPassword.Name      = "labelNewPassword";
     labelNewPassword.Size      = new System.Drawing.Size(64, 19);
     labelNewPassword.TabIndex  = 28;
     labelNewPassword.Text      = "Surname:";
     labelNewPassword.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // metroLabel1
     //
     metroLabel1.AutoSize  = true;
     metroLabel1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(122)))), ((int)(((byte)(122)))), ((int)(((byte)(122)))));
     metroLabel1.Location  = new System.Drawing.Point(23, 86);
     metroLabel1.Name      = "metroLabel1";
     metroLabel1.Size      = new System.Drawing.Size(48, 19);
     metroLabel1.TabIndex  = 30;
     metroLabel1.Text      = "Name:";
     metroLabel1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // metroLabel2
     //
     metroLabel2.AutoSize  = true;
     metroLabel2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(122)))), ((int)(((byte)(122)))), ((int)(((byte)(122)))));
     metroLabel2.Location  = new System.Drawing.Point(23, 112);
     metroLabel2.Name      = "metroLabel2";
     metroLabel2.Size      = new System.Drawing.Size(44, 19);
     metroLabel2.TabIndex  = 32;
     metroLabel2.Text      = "Login:"******"metroLabel3";
     metroLabel3.Size      = new System.Drawing.Size(66, 19);
     metroLabel3.TabIndex  = 34;
     metroLabel3.Text      = "Password:"******"metroLabel4";
     metroLabel4.Size      = new System.Drawing.Size(69, 19);
     metroLabel4.TabIndex  = 40;
     metroLabel4.Text      = "User Type:";
     metroLabel4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // metroLabelUiType
     //
     metroLabelUiType.AutoSize  = true;
     metroLabelUiType.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(122)))), ((int)(((byte)(122)))), ((int)(((byte)(122)))));
     metroLabelUiType.Location  = new System.Drawing.Point(23, 224);
     metroLabelUiType.Name      = "metroLabelUiType";
     metroLabelUiType.Size      = new System.Drawing.Size(55, 19);
     metroLabelUiType.TabIndex  = 42;
     metroLabelUiType.Text      = "Ui Type:";
     metroLabelUiType.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // metroLabelPersonnel
     //
     metroLabelPersonnel.AutoSize  = true;
     metroLabelPersonnel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(122)))), ((int)(((byte)(122)))), ((int)(((byte)(122)))));
     metroLabelPersonnel.Location  = new System.Drawing.Point(23, 259);
     metroLabelPersonnel.Name      = "metroLabelPersonnel";
     metroLabelPersonnel.Size      = new System.Drawing.Size(68, 19);
     metroLabelPersonnel.TabIndex  = 44;
     metroLabelPersonnel.Text      = "Personnel:";
     metroLabelPersonnel.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // textBoxSurname
     //
     //
     //
     //
     this.textBoxSurname.CustomButton.Image         = null;
     this.textBoxSurname.CustomButton.Location      = new System.Drawing.Point(276, 2);
     this.textBoxSurname.CustomButton.Name          = "";
     this.textBoxSurname.CustomButton.Size          = new System.Drawing.Size(15, 15);
     this.textBoxSurname.CustomButton.Style         = MetroFramework.MetroColorStyle.Blue;
     this.textBoxSurname.CustomButton.TabIndex      = 1;
     this.textBoxSurname.CustomButton.Theme         = MetroFramework.MetroThemeStyle.Light;
     this.textBoxSurname.CustomButton.UseSelectable = true;
     this.textBoxSurname.CustomButton.Visible       = false;
     this.textBoxSurname.ForeColor        = System.Drawing.Color.DimGray;
     this.textBoxSurname.Lines            = new string[0];
     this.textBoxSurname.Location         = new System.Drawing.Point(111, 60);
     this.textBoxSurname.MaxLength        = 32767;
     this.textBoxSurname.Name             = "textBoxSurname";
     this.textBoxSurname.PasswordChar     = '\0';
     this.textBoxSurname.ScrollBars       = System.Windows.Forms.ScrollBars.None;
     this.textBoxSurname.SelectedText     = "";
     this.textBoxSurname.SelectionLength  = 0;
     this.textBoxSurname.SelectionStart   = 0;
     this.textBoxSurname.ShortcutsEnabled = true;
     this.textBoxSurname.Size             = new System.Drawing.Size(294, 20);
     this.textBoxSurname.TabIndex         = 29;
     this.textBoxSurname.UseSelectable    = true;
     this.textBoxSurname.WaterMarkColor   = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
     this.textBoxSurname.WaterMarkFont    = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
     //
     // textBoxName
     //
     //
     //
     //
     this.textBoxName.CustomButton.Image         = null;
     this.textBoxName.CustomButton.Location      = new System.Drawing.Point(276, 2);
     this.textBoxName.CustomButton.Name          = "";
     this.textBoxName.CustomButton.Size          = new System.Drawing.Size(15, 15);
     this.textBoxName.CustomButton.Style         = MetroFramework.MetroColorStyle.Blue;
     this.textBoxName.CustomButton.TabIndex      = 1;
     this.textBoxName.CustomButton.Theme         = MetroFramework.MetroThemeStyle.Light;
     this.textBoxName.CustomButton.UseSelectable = true;
     this.textBoxName.CustomButton.Visible       = false;
     this.textBoxName.ForeColor        = System.Drawing.Color.DimGray;
     this.textBoxName.Lines            = new string[0];
     this.textBoxName.Location         = new System.Drawing.Point(111, 86);
     this.textBoxName.MaxLength        = 32767;
     this.textBoxName.Name             = "textBoxName";
     this.textBoxName.PasswordChar     = '\0';
     this.textBoxName.ScrollBars       = System.Windows.Forms.ScrollBars.None;
     this.textBoxName.SelectedText     = "";
     this.textBoxName.SelectionLength  = 0;
     this.textBoxName.SelectionStart   = 0;
     this.textBoxName.ShortcutsEnabled = true;
     this.textBoxName.Size             = new System.Drawing.Size(294, 20);
     this.textBoxName.TabIndex         = 31;
     this.textBoxName.UseSelectable    = true;
     this.textBoxName.WaterMarkColor   = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
     this.textBoxName.WaterMarkFont    = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
     //
     // textBoxLogin
     //
     //
     //
     //
     this.textBoxLogin.CustomButton.Image         = null;
     this.textBoxLogin.CustomButton.Location      = new System.Drawing.Point(276, 2);
     this.textBoxLogin.CustomButton.Name          = "";
     this.textBoxLogin.CustomButton.Size          = new System.Drawing.Size(15, 15);
     this.textBoxLogin.CustomButton.Style         = MetroFramework.MetroColorStyle.Blue;
     this.textBoxLogin.CustomButton.TabIndex      = 1;
     this.textBoxLogin.CustomButton.Theme         = MetroFramework.MetroThemeStyle.Light;
     this.textBoxLogin.CustomButton.UseSelectable = true;
     this.textBoxLogin.CustomButton.Visible       = false;
     this.textBoxLogin.ForeColor        = System.Drawing.Color.DimGray;
     this.textBoxLogin.Lines            = new string[0];
     this.textBoxLogin.Location         = new System.Drawing.Point(111, 112);
     this.textBoxLogin.MaxLength        = 32767;
     this.textBoxLogin.Name             = "textBoxLogin";
     this.textBoxLogin.PasswordChar     = '\0';
     this.textBoxLogin.ScrollBars       = System.Windows.Forms.ScrollBars.None;
     this.textBoxLogin.SelectedText     = "";
     this.textBoxLogin.SelectionLength  = 0;
     this.textBoxLogin.SelectionStart   = 0;
     this.textBoxLogin.ShortcutsEnabled = true;
     this.textBoxLogin.Size             = new System.Drawing.Size(294, 20);
     this.textBoxLogin.TabIndex         = 33;
     this.textBoxLogin.UseSelectable    = true;
     this.textBoxLogin.WaterMarkColor   = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
     this.textBoxLogin.WaterMarkFont    = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
     //
     // textBoxPassword
     //
     //
     //
     //
     this.textBoxPassword.CustomButton.Image         = null;
     this.textBoxPassword.CustomButton.Location      = new System.Drawing.Point(276, 2);
     this.textBoxPassword.CustomButton.Name          = "";
     this.textBoxPassword.CustomButton.Size          = new System.Drawing.Size(15, 15);
     this.textBoxPassword.CustomButton.Style         = MetroFramework.MetroColorStyle.Blue;
     this.textBoxPassword.CustomButton.TabIndex      = 1;
     this.textBoxPassword.CustomButton.Theme         = MetroFramework.MetroThemeStyle.Light;
     this.textBoxPassword.CustomButton.UseSelectable = true;
     this.textBoxPassword.CustomButton.Visible       = false;
     this.textBoxPassword.ForeColor        = System.Drawing.Color.DimGray;
     this.textBoxPassword.Lines            = new string[0];
     this.textBoxPassword.Location         = new System.Drawing.Point(111, 138);
     this.textBoxPassword.MaxLength        = 32767;
     this.textBoxPassword.Name             = "textBoxPassword";
     this.textBoxPassword.PasswordChar     = '*';
     this.textBoxPassword.ScrollBars       = System.Windows.Forms.ScrollBars.None;
     this.textBoxPassword.SelectedText     = "";
     this.textBoxPassword.SelectionLength  = 0;
     this.textBoxPassword.SelectionStart   = 0;
     this.textBoxPassword.ShortcutsEnabled = true;
     this.textBoxPassword.Size             = new System.Drawing.Size(294, 20);
     this.textBoxPassword.TabIndex         = 35;
     this.textBoxPassword.UseSelectable    = true;
     this.textBoxPassword.WaterMarkColor   = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
     this.textBoxPassword.WaterMarkFont    = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
     //
     // checkBox1
     //
     this.checkBox1.AutoSize        = true;
     this.checkBox1.Location        = new System.Drawing.Point(300, 162);
     this.checkBox1.Name            = "checkBox1";
     this.checkBox1.Size            = new System.Drawing.Size(105, 15);
     this.checkBox1.TabIndex        = 36;
     this.checkBox1.Text            = "Show password";
     this.checkBox1.UseSelectable   = true;
     this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
     //
     // buttonCancel
     //
     this.buttonCancel.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.buttonCancel.FlatStyle    = System.Windows.Forms.FlatStyle.Flat;
     this.buttonCancel.Font         = new System.Drawing.Font("Verdana", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
     this.buttonCancel.ForeColor    = System.Drawing.Color.FromArgb(((int)(((byte)(62)))), ((int)(((byte)(155)))), ((int)(((byte)(246)))));
     this.buttonCancel.Location     = new System.Drawing.Point(330, 293);
     this.buttonCancel.Name         = "buttonCancel";
     this.buttonCancel.Size         = new System.Drawing.Size(75, 33);
     this.buttonCancel.TabIndex     = 38;
     this.buttonCancel.Text         = "Cancel";
     this.buttonCancel.Click       += new System.EventHandler(this.buttonCancel_Click);
     //
     // buttonOk
     //
     this.buttonOk.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.buttonOk.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.buttonOk.Font      = new System.Drawing.Font("Verdana", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
     this.buttonOk.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(62)))), ((int)(((byte)(155)))), ((int)(((byte)(246)))));
     this.buttonOk.Location  = new System.Drawing.Point(249, 293);
     this.buttonOk.Name      = "buttonOk";
     this.buttonOk.Size      = new System.Drawing.Size(75, 33);
     this.buttonOk.TabIndex  = 37;
     this.buttonOk.Text      = "Ok";
     this.buttonOk.Click    += new System.EventHandler(this.buttonOk_Click);
     //
     // metroComboBox1
     //
     this.metroComboBox1.FormattingEnabled = true;
     this.metroComboBox1.ItemHeight        = 23;
     this.metroComboBox1.Location          = new System.Drawing.Point(111, 184);
     this.metroComboBox1.Name          = "metroComboBox1";
     this.metroComboBox1.Size          = new System.Drawing.Size(294, 29);
     this.metroComboBox1.TabIndex      = 39;
     this.metroComboBox1.UseSelectable = true;
     //
     // metroComboBoxUiType
     //
     this.metroComboBoxUiType.FormattingEnabled = true;
     this.metroComboBoxUiType.ItemHeight        = 23;
     this.metroComboBoxUiType.Location          = new System.Drawing.Point(111, 219);
     this.metroComboBoxUiType.Name          = "metroComboBoxUiType";
     this.metroComboBoxUiType.Size          = new System.Drawing.Size(294, 29);
     this.metroComboBoxUiType.TabIndex      = 41;
     this.metroComboBoxUiType.UseSelectable = true;
     //
     // metroComboBoxPersonnel
     //
     this.metroComboBoxPersonnel.FormattingEnabled = true;
     this.metroComboBoxPersonnel.ItemHeight        = 23;
     this.metroComboBoxPersonnel.Location          = new System.Drawing.Point(111, 254);
     this.metroComboBoxPersonnel.Name                  = "metroComboBoxPersonnel";
     this.metroComboBoxPersonnel.Size                  = new System.Drawing.Size(294, 29);
     this.metroComboBoxPersonnel.TabIndex              = 43;
     this.metroComboBoxPersonnel.UseSelectable         = true;
     this.metroComboBoxPersonnel.SelectedIndexChanged += new System.EventHandler(this.metroComboBoxPersonnel_SelectedIndexChanged);
     //
     // CAAUserForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(428, 337);
     this.Controls.Add(metroLabelPersonnel);
     this.Controls.Add(this.metroComboBoxPersonnel);
     this.Controls.Add(metroLabelUiType);
     this.Controls.Add(this.metroComboBoxUiType);
     this.Controls.Add(metroLabel4);
     this.Controls.Add(this.metroComboBox1);
     this.Controls.Add(this.buttonCancel);
     this.Controls.Add(this.buttonOk);
     this.Controls.Add(this.checkBox1);
     this.Controls.Add(this.textBoxPassword);
     this.Controls.Add(metroLabel3);
     this.Controls.Add(this.textBoxLogin);
     this.Controls.Add(metroLabel2);
     this.Controls.Add(this.textBoxName);
     this.Controls.Add(metroLabel1);
     this.Controls.Add(this.textBoxSurname);
     this.Controls.Add(labelNewPassword);
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.MaximizeBox = false;
     this.Name        = "CAAUserForm";
     this.Resizable   = false;
     this.Text        = "User Form";
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #31
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(UserControlAdminAddReceptionist));
     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.pictureBox1    = new System.Windows.Forms.PictureBox();
     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();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.SuspendLayout();
     //
     // metroDateTime1
     //
     this.metroDateTime1.Location    = new System.Drawing.Point(620, 30);
     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    = 60;
     //
     // 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(96, 39);
     this.metroTile2.Name               = "metroTile2";
     this.metroTile2.Size               = new System.Drawing.Size(40, 20);
     this.metroTile2.TabIndex           = 59;
     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[] {
         "metroTextBox5"
     };
     this.metroTextBox5.Location         = new System.Drawing.Point(235, 292);
     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         = 58;
     this.metroTextBox5.Text             = "metroTextBox5";
     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);
     //
     // metroLabel14
     //
     this.metroLabel14.AutoSize = true;
     this.metroLabel14.Location = new System.Drawing.Point(181, 414);
     this.metroLabel14.Name     = "metroLabel14";
     this.metroLabel14.Size     = new System.Drawing.Size(12, 19);
     this.metroLabel14.TabIndex = 57;
     this.metroLabel14.Text     = ":";
     this.metroLabel14.Theme    = MetroFramework.MetroThemeStyle.Dark;
     //
     // metroLabel13
     //
     this.metroLabel13.AutoSize = true;
     this.metroLabel13.Location = new System.Drawing.Point(181, 367);
     this.metroLabel13.Name     = "metroLabel13";
     this.metroLabel13.Size     = new System.Drawing.Size(12, 19);
     this.metroLabel13.TabIndex = 56;
     this.metroLabel13.Text     = ":";
     this.metroLabel13.Theme    = MetroFramework.MetroThemeStyle.Dark;
     //
     // metroLabel12
     //
     this.metroLabel12.AutoSize = true;
     this.metroLabel12.Location = new System.Drawing.Point(181, 303);
     this.metroLabel12.Name     = "metroLabel12";
     this.metroLabel12.Size     = new System.Drawing.Size(12, 19);
     this.metroLabel12.TabIndex = 55;
     this.metroLabel12.Text     = ":";
     this.metroLabel12.Theme    = MetroFramework.MetroThemeStyle.Dark;
     //
     // metroLabel11
     //
     this.metroLabel11.AutoSize = true;
     this.metroLabel11.Location = new System.Drawing.Point(181, 249);
     this.metroLabel11.Name     = "metroLabel11";
     this.metroLabel11.Size     = new System.Drawing.Size(12, 19);
     this.metroLabel11.TabIndex = 54;
     this.metroLabel11.Text     = ":";
     this.metroLabel11.Theme    = MetroFramework.MetroThemeStyle.Dark;
     //
     // metroLabel10
     //
     this.metroLabel10.AutoSize = true;
     this.metroLabel10.Location = new System.Drawing.Point(181, 202);
     this.metroLabel10.Name     = "metroLabel10";
     this.metroLabel10.Size     = new System.Drawing.Size(12, 19);
     this.metroLabel10.TabIndex = 53;
     this.metroLabel10.Text     = ":";
     this.metroLabel10.Theme    = MetroFramework.MetroThemeStyle.Dark;
     //
     // metroLabel9
     //
     this.metroLabel9.AutoSize = true;
     this.metroLabel9.Location = new System.Drawing.Point(181, 159);
     this.metroLabel9.Name     = "metroLabel9";
     this.metroLabel9.Size     = new System.Drawing.Size(12, 19);
     this.metroLabel9.TabIndex = 52;
     this.metroLabel9.Text     = ":";
     this.metroLabel9.Theme    = MetroFramework.MetroThemeStyle.Dark;
     //
     // metroLabel8
     //
     this.metroLabel8.AutoSize = true;
     this.metroLabel8.Location = new System.Drawing.Point(181, 113);
     this.metroLabel8.Name     = "metroLabel8";
     this.metroLabel8.Size     = new System.Drawing.Size(12, 19);
     this.metroLabel8.TabIndex = 51;
     this.metroLabel8.Text     = ":";
     this.metroLabel8.Theme    = MetroFramework.MetroThemeStyle.Dark;
     //
     // metroButton1
     //
     this.metroButton1.Location      = new System.Drawing.Point(671, 359);
     this.metroButton1.Name          = "metroButton1";
     this.metroButton1.Size          = new System.Drawing.Size(75, 23);
     this.metroButton1.TabIndex      = 50;
     this.metroButton1.Text          = "Submit";
     this.metroButton1.Theme         = MetroFramework.MetroThemeStyle.Light;
     this.metroButton1.UseSelectable = true;
     //
     // pictureBox1
     //
     this.pictureBox1.Location = new System.Drawing.Point(620, 110);
     this.pictureBox1.Name     = "pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(172, 158);
     this.pictureBox1.TabIndex = 49;
     this.pictureBox1.TabStop  = false;
     //
     // 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[] {
         "metroTextBox7"
     };
     this.metroTextBox7.Location         = new System.Drawing.Point(235, 410);
     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         = 48;
     this.metroTextBox7.Text             = "metroTextBox7";
     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);
     //
     // 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[] {
         "metroTextBox6"
     };
     this.metroTextBox6.Location         = new System.Drawing.Point(235, 359);
     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         = 47;
     this.metroTextBox6.Text             = "metroTextBox6";
     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);
     //
     // 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[] {
         "metroTextBox4"
     };
     this.metroTextBox4.Location         = new System.Drawing.Point(235, 245);
     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         = 46;
     this.metroTextBox4.Text             = "metroTextBox4";
     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);
     //
     // 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[] {
         "metroTextBox3"
     };
     this.metroTextBox3.Location         = new System.Drawing.Point(235, 198);
     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         = 45;
     this.metroTextBox3.Text             = "metroTextBox3";
     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);
     //
     // 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[] {
         "metroTextBox2"
     };
     this.metroTextBox2.Location         = new System.Drawing.Point(235, 155);
     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         = 44;
     this.metroTextBox2.Text             = "metroTextBox2";
     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);
     //
     // 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[] {
         "metroTextBox1"
     };
     this.metroTextBox1.Location         = new System.Drawing.Point(235, 110);
     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         = 43;
     this.metroTextBox1.Text             = "metroTextBox1";
     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);
     //
     // metroLabel7
     //
     this.metroLabel7.AutoSize = true;
     this.metroLabel7.Location = new System.Drawing.Point(96, 410);
     this.metroLabel7.Name     = "metroLabel7";
     this.metroLabel7.Size     = new System.Drawing.Size(45, 19);
     this.metroLabel7.TabIndex = 42;
     this.metroLabel7.Text     = "Salary";
     this.metroLabel7.Theme    = MetroFramework.MetroThemeStyle.Dark;
     //
     // metroLabel6
     //
     this.metroLabel6.AutoSize = true;
     this.metroLabel6.Location = new System.Drawing.Point(96, 363);
     this.metroLabel6.Name     = "metroLabel6";
     this.metroLabel6.Size     = new System.Drawing.Size(46, 19);
     this.metroLabel6.TabIndex = 41;
     this.metroLabel6.Text     = "Phone";
     this.metroLabel6.Theme    = MetroFramework.MetroThemeStyle.Dark;
     //
     // metroLabel5
     //
     this.metroLabel5.AutoSize = true;
     this.metroLabel5.Location = new System.Drawing.Point(96, 303);
     this.metroLabel5.Name     = "metroLabel5";
     this.metroLabel5.Size     = new System.Drawing.Size(56, 19);
     this.metroLabel5.TabIndex = 40;
     this.metroLabel5.Text     = "Address";
     this.metroLabel5.Theme    = MetroFramework.MetroThemeStyle.Dark;
     //
     // metroLabel4
     //
     this.metroLabel4.AutoSize = true;
     this.metroLabel4.Location = new System.Drawing.Point(96, 249);
     this.metroLabel4.Name     = "metroLabel4";
     this.metroLabel4.Size     = new System.Drawing.Size(52, 19);
     this.metroLabel4.TabIndex = 39;
     this.metroLabel4.Text     = "Gender";
     this.metroLabel4.Theme    = MetroFramework.MetroThemeStyle.Dark;
     //
     // metroLabel3
     //
     this.metroLabel3.AutoSize = true;
     this.metroLabel3.Location = new System.Drawing.Point(96, 202);
     this.metroLabel3.Name     = "metroLabel3";
     this.metroLabel3.Size     = new System.Drawing.Size(33, 19);
     this.metroLabel3.TabIndex = 38;
     this.metroLabel3.Text     = "Age";
     this.metroLabel3.Theme    = MetroFramework.MetroThemeStyle.Dark;
     //
     // metroLabel2
     //
     this.metroLabel2.AutoSize = true;
     this.metroLabel2.Location = new System.Drawing.Point(96, 159);
     this.metroLabel2.Name     = "metroLabel2";
     this.metroLabel2.Size     = new System.Drawing.Size(45, 19);
     this.metroLabel2.TabIndex = 37;
     this.metroLabel2.Text     = "Name";
     this.metroLabel2.Theme    = MetroFramework.MetroThemeStyle.Dark;
     //
     // metroLabel1
     //
     this.metroLabel1.AutoSize = true;
     this.metroLabel1.Location = new System.Drawing.Point(96, 114);
     this.metroLabel1.Name     = "metroLabel1";
     this.metroLabel1.Size     = new System.Drawing.Size(21, 19);
     this.metroLabel1.TabIndex = 36;
     this.metroLabel1.Text     = "ID";
     this.metroLabel1.Theme    = MetroFramework.MetroThemeStyle.Dark;
     //
     // UserControlAdminAddReceptionist
     //
     this.ClientSize = new System.Drawing.Size(850, 500);
     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.pictureBox1);
     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      = "UserControlAdminAddReceptionist";
     this.Text      = "Add Receptionist";
     this.TextAlign = MetroFramework.Forms.MetroFormTextAlign.Center;
     this.Theme     = MetroFramework.MetroThemeStyle.Dark;
     this.Load     += new System.EventHandler(this.UserControlAdminAddReceptionist_Load);
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #32
0
        private void Search(MetroFramework.Controls.MetroGrid Table, MetroFramework.Controls.MetroTextBox _TextBoxSearch, MetroFramework.Controls.MetroLabel ResLabel)
        {
            int count = 0;

            for (int k = 0; k < Table.RowCount; k++)
            {
                for (int j = 0; j < Table.ColumnCount; j++)
                {
                    if (Table.Rows[k].Cells[j].Value != null)
                    {
                        if (Table.Rows[k].Cells[j].Value.ToString().IndexOf(_TextBoxSearch.Text, StringComparison.OrdinalIgnoreCase) >= 0)

                        {
                            count++;
                            break;
                        }
                    }
                }
            }
            ResLabel.Text = "Найдено соответствий: " + count.ToString();


            for (; i < Table.RowCount;)
            {
                for (int j = 0; j < Table.ColumnCount; j++)
                {
                    if (Table.Rows[i].Cells[j].Value != null)
                    {
                        if (Table.Rows[i].Cells[j].Value.ToString().IndexOf(_TextBoxSearch.Text, StringComparison.OrdinalIgnoreCase) >= 0)
                        {
                            Table.CurrentCell = Table[0, i];
                            if (i < Table.RowCount - 2)
                            {
                                i++;
                            }
                            else
                            {
                                i = 0;
                            }
                            return;
                        }
                    }
                }
                i++;
            }
            i = 0;
        }
コード例 #33
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this.secretCodeField = new MetroFramework.Controls.MetroTextBox();
     this.step1Label = new MetroFramework.Controls.MetroLabel();
     this.okButton = new MetroFramework.Controls.MetroButton();
     this.cancelButton = new MetroFramework.Controls.MetroButton();
     this.nameLabel = new MetroFramework.Controls.MetroLabel();
     this.nameField = new MetroFramework.Controls.MetroTextBox();
     this.step2Label = new MetroFramework.Controls.MetroLabel();
     this.verifyButton = new MetroFramework.Controls.MetroButton();
     this.codeProgress = new System.Windows.Forms.ProgressBar();
     this.codeField = new WinAuth.SecretTextBox();
     this.step4Label = new MetroFramework.Controls.MetroLabel();
     this.timer = new System.Windows.Forms.Timer(this.components);
     this.step3Label = new MetroFramework.Controls.MetroLabel();
     this.timeBasedRadio = new MetroFramework.Controls.MetroRadioButton();
     this.counterBasedRadio = new MetroFramework.Controls.MetroRadioButton();
     this.timeBasedPanel = new System.Windows.Forms.Panel();
     this.counterBasedPanel = new System.Windows.Forms.Panel();
     this.verifyCounterButton = new MetroFramework.Controls.MetroButton();
     this.counterField = new MetroFramework.Controls.MetroTextBox();
     this.step3CounterLabel = new MetroFramework.Controls.MetroLabel();
     this.secretCodeButton = new MetroFramework.Controls.MetroButton();
     this.timeBasedPanel.SuspendLayout();
     this.counterBasedPanel.SuspendLayout();
     this.SuspendLayout();
     //
     // secretCodeField
     //
     this.secretCodeField.AllowDrop = true;
     this.secretCodeField.CausesValidation = false;
     this.secretCodeField.Location = new System.Drawing.Point(43, 171);
     this.secretCodeField.MaxLength = 32767;
     this.secretCodeField.Name = "secretCodeField";
     this.secretCodeField.PasswordChar = '\0';
     this.secretCodeField.ScrollBars = System.Windows.Forms.ScrollBars.None;
     this.secretCodeField.SelectedText = "";
     this.secretCodeField.Size = new System.Drawing.Size(311, 22);
     this.secretCodeField.TabIndex = 1;
     this.secretCodeField.UseSelectable = true;
     //
     // step1Label
     //
     this.step1Label.Location = new System.Drawing.Point(25, 120);
     this.step1Label.Name = "step1Label";
     this.step1Label.Size = new System.Drawing.Size(425, 48);
     this.step1Label.TabIndex = 1;
     this.step1Label.Text = "1. Enter the Secret Code for your authenticator. Spaces don\'t matter. If you have a Q" +
     "R code, you can paste the URL of the image instead.\r\n";
     //
     // okButton
     //
     this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.okButton.Location = new System.Drawing.Point(292, 470);
     this.okButton.Name = "okButton";
     this.okButton.Size = new System.Drawing.Size(75, 23);
     this.okButton.TabIndex = 6;
     this.okButton.Text = "OK";
     this.okButton.UseSelectable = true;
     this.okButton.Click += new System.EventHandler(this.okButton_Click);
     //
     // cancelButton
     //
     this.cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.cancelButton.Location = new System.Drawing.Point(373, 470);
     this.cancelButton.Name = "cancelButton";
     this.cancelButton.Size = new System.Drawing.Size(75, 23);
     this.cancelButton.TabIndex = 7;
     this.cancelButton.Text = "Cancel";
     this.cancelButton.UseSelectable = true;
     this.cancelButton.Click += new System.EventHandler(this.cancelButton_Click);
     //
     // nameLabel
     //
     this.nameLabel.AutoSize = true;
     this.nameLabel.Location = new System.Drawing.Point(23, 70);
     this.nameLabel.Name = "nameLabel";
     this.nameLabel.Size = new System.Drawing.Size(48, 19);
     this.nameLabel.TabIndex = 3;
     this.nameLabel.Text = "Name:";
     //
     // nameField
     //
     this.nameField.Location = new System.Drawing.Point(77, 67);
     this.nameField.MaxLength = 32767;
     this.nameField.Name = "nameField";
     this.nameField.PasswordChar = '\0';
     this.nameField.ScrollBars = System.Windows.Forms.ScrollBars.None;
     this.nameField.SelectedText = "";
     this.nameField.Size = new System.Drawing.Size(371, 22);
     this.nameField.TabIndex = 0;
     this.nameField.UseSelectable = true;
     //
     // step2Label
     //
     this.step2Label.Location = new System.Drawing.Point(25, 213);
     this.step2Label.Name = "step2Label";
     this.step2Label.Size = new System.Drawing.Size(423, 49);
     this.step2Label.TabIndex = 10;
     this.step2Label.Text = "2. Choose if this is a time-based or a counter-based authenticator. If you don\'t " +
     "know, it\'s likely time-based, so just leave the default choice.";
     //
     // verifyButton
     //
     this.verifyButton.Location = new System.Drawing.Point(122, 43);
     this.verifyButton.Name = "verifyButton";
     this.verifyButton.Size = new System.Drawing.Size(158, 23);
     this.verifyButton.TabIndex = 0;
     this.verifyButton.Text = "Verify Authenticator";
     this.verifyButton.UseSelectable = true;
     this.verifyButton.Click += new System.EventHandler(this.verifyButton_Click);
     //
     // codeProgress
     //
     this.codeProgress.Location = new System.Drawing.Point(124, 433);
     this.codeProgress.Maximum = 30;
     this.codeProgress.Minimum = 1;
     this.codeProgress.Name = "codeProgress";
     this.codeProgress.Size = new System.Drawing.Size(158, 8);
     this.codeProgress.Style = System.Windows.Forms.ProgressBarStyle.Continuous;
     this.codeProgress.TabIndex = 13;
     this.codeProgress.Value = 1;
     this.codeProgress.Visible = false;
     //
     // codeField
     //
     this.codeField.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F);
     this.codeField.Location = new System.Drawing.Point(124, 405);
     this.codeField.Multiline = true;
     this.codeField.Name = "codeField";
     this.codeField.SecretMode = false;
     this.codeField.Size = new System.Drawing.Size(158, 26);
     this.codeField.SpaceOut = 3;
     this.codeField.TabIndex = 5;
     //
     // step4Label
     //
     this.step4Label.AutoSize = true;
     this.step4Label.Location = new System.Drawing.Point(25, 373);
     this.step4Label.Name = "step4Label";
     this.step4Label.Size = new System.Drawing.Size(293, 19);
     this.step4Label.TabIndex = 11;
     this.step4Label.Text = "4. Verify the following code matches your service.";
     //
     // timer
     //
     this.timer.Enabled = true;
     this.timer.Interval = 500;
     this.timer.Tick += new System.EventHandler(this.timer_Tick);
     //
     // step3Label
     //
     this.step3Label.Location = new System.Drawing.Point(23, 12);
     this.step3Label.Name = "step3Label";
     this.step3Label.Size = new System.Drawing.Size(423, 28);
     this.step3Label.TabIndex = 10;
     this.step3Label.Text = "3. Click the Verify button to check the first code.";
     //
     // timeBasedRadio
     //
     this.timeBasedRadio.AutoSize = true;
     this.timeBasedRadio.Checked = true;
     this.timeBasedRadio.Location = new System.Drawing.Point(43, 265);
     this.timeBasedRadio.Name = "timeBasedRadio";
     this.timeBasedRadio.Size = new System.Drawing.Size(86, 15);
     this.timeBasedRadio.TabIndex = 3;
     this.timeBasedRadio.TabStop = true;
     this.timeBasedRadio.Text = "Time-based";
     this.timeBasedRadio.UseSelectable = true;
     this.timeBasedRadio.CheckedChanged += new System.EventHandler(this.timeBasedRadio_CheckedChanged);
     //
     // counterBasedRadio
     //
     this.counterBasedRadio.AutoSize = true;
     this.counterBasedRadio.Location = new System.Drawing.Point(146, 265);
     this.counterBasedRadio.Name = "counterBasedRadio";
     this.counterBasedRadio.Size = new System.Drawing.Size(102, 15);
     this.counterBasedRadio.TabIndex = 4;
     this.counterBasedRadio.Text = "Counter-based";
     this.counterBasedRadio.UseSelectable = true;
     this.counterBasedRadio.CheckedChanged += new System.EventHandler(this.counterBasedRadio_CheckedChanged);
     //
     // timeBasedPanel
     //
     this.timeBasedPanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.timeBasedPanel.Controls.Add(this.step3Label);
     this.timeBasedPanel.Controls.Add(this.verifyButton);
     this.timeBasedPanel.Location = new System.Drawing.Point(2, 286);
     this.timeBasedPanel.Name = "timeBasedPanel";
     this.timeBasedPanel.Size = new System.Drawing.Size(464, 84);
     this.timeBasedPanel.TabIndex = 15;
     //
     // counterBasedPanel
     //
     this.counterBasedPanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.counterBasedPanel.Controls.Add(this.verifyCounterButton);
     this.counterBasedPanel.Controls.Add(this.counterField);
     this.counterBasedPanel.Controls.Add(this.step3CounterLabel);
     this.counterBasedPanel.Location = new System.Drawing.Point(2, 286);
     this.counterBasedPanel.Name = "counterBasedPanel";
     this.counterBasedPanel.Size = new System.Drawing.Size(464, 84);
     this.counterBasedPanel.TabIndex = 16;
     this.counterBasedPanel.Visible = false;
     //
     // verifyCounterButton
     //
     this.verifyCounterButton.Location = new System.Drawing.Point(207, 58);
     this.verifyCounterButton.Name = "verifyCounterButton";
     this.verifyCounterButton.Size = new System.Drawing.Size(158, 23);
     this.verifyCounterButton.TabIndex = 1;
     this.verifyCounterButton.Text = "Verify Authenticator";
     this.verifyCounterButton.UseSelectable = true;
     this.verifyCounterButton.Click += new System.EventHandler(this.verifyButton_Click);
     //
     // counterField
     //
     this.counterField.AllowDrop = true;
     this.counterField.CausesValidation = false;
     this.counterField.Location = new System.Drawing.Point(122, 58);
     this.counterField.MaxLength = 32767;
     this.counterField.Name = "counterField";
     this.counterField.PasswordChar = '\0';
     this.counterField.ScrollBars = System.Windows.Forms.ScrollBars.None;
     this.counterField.SelectedText = "";
     this.counterField.Size = new System.Drawing.Size(74, 20);
     this.counterField.TabIndex = 0;
     this.counterField.UseSelectable = true;
     //
     // step3CounterLabel
     //
     this.step3CounterLabel.Location = new System.Drawing.Point(23, 12);
     this.step3CounterLabel.Name = "step3CounterLabel";
     this.step3CounterLabel.Size = new System.Drawing.Size(423, 43);
     this.step3CounterLabel.TabIndex = 10;
     this.step3CounterLabel.Text = "3. Enter the initial counter value if known. Click the Verify button that will sh" +
     "ow the last code that was used.";
     //
     // secretCodeButton
     //
     this.secretCodeButton.Location = new System.Drawing.Point(360, 171);
     this.secretCodeButton.Name = "secretCodeButton";
     this.secretCodeButton.Size = new System.Drawing.Size(75, 23);
     this.secretCodeButton.TabIndex = 2;
     this.secretCodeButton.Text = "Decode";
     this.secretCodeButton.UseSelectable = true;
     this.secretCodeButton.Click += new System.EventHandler(this.secretCodeButton_Click);
     //
     // AddAuthenticator
     //
     this.AcceptButton = this.okButton;
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.BorderStyle = MetroFramework.Forms.MetroFormBorderStyle.FixedSingle;
     this.CancelButton = this.cancelButton;
     this.ClientSize = new System.Drawing.Size(471, 516);
     this.Controls.Add(this.secretCodeButton);
     this.Controls.Add(this.counterBasedPanel);
     this.Controls.Add(this.timeBasedPanel);
     this.Controls.Add(this.counterBasedRadio);
     this.Controls.Add(this.timeBasedRadio);
     this.Controls.Add(this.codeProgress);
     this.Controls.Add(this.codeField);
     this.Controls.Add(this.step4Label);
     this.Controls.Add(this.step2Label);
     this.Controls.Add(this.cancelButton);
     this.Controls.Add(this.okButton);
     this.Controls.Add(this.secretCodeField);
     this.Controls.Add(this.nameLabel);
     this.Controls.Add(this.nameField);
     this.Controls.Add(this.step1Label);
     this.MaximizeBox = false;
     this.Name = "AddAuthenticator";
     this.Resizable = false;
     this.ShowIcon = false;
     this.Text = "Add Authenticator";
     this.Load += new System.EventHandler(this.AddAuthenticator_Load);
     this.timeBasedPanel.ResumeLayout(false);
     this.counterBasedPanel.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #34
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmDerivacion));
     this.dgvDerivaciones = new MetroFramework.Controls.MetroGrid();
     this.metroLabel2 = new MetroFramework.Controls.MetroLabel();
     this.txtPaciente = new MetroFramework.Controls.MetroTextBox();
     this.metroLabel1 = new MetroFramework.Controls.MetroLabel();
     this.metroLabel3 = new MetroFramework.Controls.MetroLabel();
     this.metroLabel4 = new MetroFramework.Controls.MetroLabel();
     this.metroLabel5 = new MetroFramework.Controls.MetroLabel();
     this.txtHistoria = new MetroFramework.Controls.MetroTextBox();
     this.gbDerivacion = new System.Windows.Forms.GroupBox();
     this.btnCancelar = new MetroFramework.Controls.MetroButton();
     this.btnGuardar = new MetroFramework.Controls.MetroButton();
     this.dtpFecha = new MetroFramework.Controls.MetroDateTime();
     this.metroLabel6 = new MetroFramework.Controls.MetroLabel();
     this.txtCie = new MetroFramework.Controls.MetroTextBox();
     this.metroTextBox1 = new MetroFramework.Controls.MetroTextBox();
     this.txtEspecialidad = new MetroFramework.Controls.MetroTextBox();
     this.txtEESS = new MetroFramework.Controls.MetroTextBox();
     this.txtdcie = new MetroFramework.Controls.MetroTextBox();
     this.metroLabel7 = new MetroFramework.Controls.MetroLabel();
     this.btnNuevo = new MetroFramework.Controls.MetroButton();
     this.btnSalir = new MetroFramework.Controls.MetroButton();
     this.mtFiltro = new MetroFramework.Controls.MetroGrid();
     ((System.ComponentModel.ISupportInitialize)(this.dgvDerivaciones)).BeginInit();
     this.gbDerivacion.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.mtFiltro)).BeginInit();
     this.SuspendLayout();
     //
     // dgvDerivaciones
     //
     this.dgvDerivaciones.AllowUserToResizeRows = false;
     this.dgvDerivaciones.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.dgvDerivaciones.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.dgvDerivaciones.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
     this.dgvDerivaciones.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
     dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219)))));
     dataGridViewCellStyle1.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
     dataGridViewCellStyle1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219)))));
     dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
     dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
     this.dgvDerivaciones.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
     this.dgvDerivaciones.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     dataGridViewCellStyle2.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
     dataGridViewCellStyle2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(136)))), ((int)(((byte)(136)))), ((int)(((byte)(136)))));
     dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219)))));
     dataGridViewCellStyle2.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
     dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
     this.dgvDerivaciones.DefaultCellStyle = dataGridViewCellStyle2;
     this.dgvDerivaciones.EnableHeadersVisualStyles = false;
     this.dgvDerivaciones.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
     this.dgvDerivaciones.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.dgvDerivaciones.Location = new System.Drawing.Point(24, 107);
     this.dgvDerivaciones.Name = "dgvDerivaciones";
     this.dgvDerivaciones.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
     dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219)))));
     dataGridViewCellStyle3.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
     dataGridViewCellStyle3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219)))));
     dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
     dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
     this.dgvDerivaciones.RowHeadersDefaultCellStyle = dataGridViewCellStyle3;
     this.dgvDerivaciones.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
     this.dgvDerivaciones.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
     this.dgvDerivaciones.Size = new System.Drawing.Size(508, 305);
     this.dgvDerivaciones.TabIndex = 2;
     //
     // metroLabel2
     //
     this.metroLabel2.AutoSize = true;
     this.metroLabel2.FontWeight = MetroFramework.MetroLabelWeight.Bold;
     this.metroLabel2.Location = new System.Drawing.Point(24, 70);
     this.metroLabel2.Name = "metroLabel2";
     this.metroLabel2.Size = new System.Drawing.Size(130, 19);
     this.metroLabel2.TabIndex = 0;
     this.metroLabel2.Text = "N° Historia Clínica";
     //
     // txtPaciente
     //
     this.txtPaciente.Lines = new string[0];
     this.txtPaciente.Location = new System.Drawing.Point(159, 71);
     this.txtPaciente.MaxLength = 32767;
     this.txtPaciente.Name = "txtPaciente";
     this.txtPaciente.PasswordChar = '\0';
     this.txtPaciente.ScrollBars = System.Windows.Forms.ScrollBars.None;
     this.txtPaciente.SelectedText = "";
     this.txtPaciente.Size = new System.Drawing.Size(170, 23);
     this.txtPaciente.TabIndex = 3;
     this.txtPaciente.UseSelectable = true;
     //
     // metroLabel1
     //
     this.metroLabel1.AutoSize = true;
     this.metroLabel1.FontWeight = MetroFramework.MetroLabelWeight.Bold;
     this.metroLabel1.Location = new System.Drawing.Point(11, 35);
     this.metroLabel1.Name = "metroLabel1";
     this.metroLabel1.Size = new System.Drawing.Size(82, 19);
     this.metroLabel1.TabIndex = 0;
     this.metroLabel1.Text = "N° Historia";
     //
     // metroLabel3
     //
     this.metroLabel3.AutoSize = true;
     this.metroLabel3.FontWeight = MetroFramework.MetroLabelWeight.Bold;
     this.metroLabel3.Location = new System.Drawing.Point(11, 156);
     this.metroLabel3.Name = "metroLabel3";
     this.metroLabel3.Size = new System.Drawing.Size(92, 19);
     this.metroLabel3.TabIndex = 0;
     this.metroLabel3.Text = "Especialidad";
     //
     // metroLabel4
     //
     this.metroLabel4.AutoSize = true;
     this.metroLabel4.FontWeight = MetroFramework.MetroLabelWeight.Bold;
     this.metroLabel4.Location = new System.Drawing.Point(11, 79);
     this.metroLabel4.Name = "metroLabel4";
     this.metroLabel4.Size = new System.Drawing.Size(88, 19);
     this.metroLabel4.TabIndex = 0;
     this.metroLabel4.Text = "Diagnóstico";
     //
     // metroLabel5
     //
     this.metroLabel5.AutoSize = true;
     this.metroLabel5.FontWeight = MetroFramework.MetroLabelWeight.Bold;
     this.metroLabel5.Location = new System.Drawing.Point(11, 118);
     this.metroLabel5.Name = "metroLabel5";
     this.metroLabel5.Size = new System.Drawing.Size(99, 19);
     this.metroLabel5.TabIndex = 0;
     this.metroLabel5.Text = "Centro Salud ";
     //
     // txtHistoria
     //
     this.txtHistoria.Lines = new string[0];
     this.txtHistoria.Location = new System.Drawing.Point(117, 35);
     this.txtHistoria.MaxLength = 32767;
     this.txtHistoria.Name = "txtHistoria";
     this.txtHistoria.PasswordChar = '\0';
     this.txtHistoria.ScrollBars = System.Windows.Forms.ScrollBars.None;
     this.txtHistoria.SelectedText = "";
     this.txtHistoria.Size = new System.Drawing.Size(118, 23);
     this.txtHistoria.TabIndex = 4;
     this.txtHistoria.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
     this.txtHistoria.UseSelectable = true;
     //
     // gbDerivacion
     //
     this.gbDerivacion.Controls.Add(this.btnCancelar);
     this.gbDerivacion.Controls.Add(this.btnGuardar);
     this.gbDerivacion.Controls.Add(this.dtpFecha);
     this.gbDerivacion.Controls.Add(this.metroLabel6);
     this.gbDerivacion.Controls.Add(this.txtCie);
     this.gbDerivacion.Controls.Add(this.metroTextBox1);
     this.gbDerivacion.Controls.Add(this.txtEspecialidad);
     this.gbDerivacion.Controls.Add(this.txtEESS);
     this.gbDerivacion.Controls.Add(this.txtdcie);
     this.gbDerivacion.Controls.Add(this.txtHistoria);
     this.gbDerivacion.Controls.Add(this.metroLabel1);
     this.gbDerivacion.Controls.Add(this.metroLabel7);
     this.gbDerivacion.Controls.Add(this.metroLabel3);
     this.gbDerivacion.Controls.Add(this.metroLabel5);
     this.gbDerivacion.Controls.Add(this.metroLabel4);
     this.gbDerivacion.Font = new System.Drawing.Font("Lucida Console", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.gbDerivacion.Location = new System.Drawing.Point(538, 54);
     this.gbDerivacion.Name = "gbDerivacion";
     this.gbDerivacion.Size = new System.Drawing.Size(511, 358);
     this.gbDerivacion.TabIndex = 5;
     this.gbDerivacion.TabStop = false;
     this.gbDerivacion.Text = "DERIVACION";
     //
     // btnCancelar
     //
     this.btnCancelar.BackgroundImage = global::SeguroIntegral.Escritorio.Properties.Resources.cancel;
     this.btnCancelar.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.btnCancelar.FontSize = MetroFramework.MetroButtonSize.Medium;
     this.btnCancelar.Location = new System.Drawing.Point(378, 295);
     this.btnCancelar.Name = "btnCancelar";
     this.btnCancelar.Size = new System.Drawing.Size(119, 31);
     this.btnCancelar.TabIndex = 6;
     this.btnCancelar.Text = "&CANCELAR";
     this.btnCancelar.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.btnCancelar.UseSelectable = true;
     //
     // btnGuardar
     //
     this.btnGuardar.BackgroundImage = global::SeguroIntegral.Escritorio.Properties.Resources.save;
     this.btnGuardar.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.btnGuardar.FontSize = MetroFramework.MetroButtonSize.Medium;
     this.btnGuardar.Location = new System.Drawing.Point(11, 295);
     this.btnGuardar.Name = "btnGuardar";
     this.btnGuardar.Size = new System.Drawing.Size(107, 31);
     this.btnGuardar.TabIndex = 6;
     this.btnGuardar.Text = "&GRABAR";
     this.btnGuardar.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.btnGuardar.UseSelectable = true;
     //
     // dtpFecha
     //
     this.dtpFecha.FontWeight = MetroFramework.MetroDateTimeWeight.Bold;
     this.dtpFecha.Format = System.Windows.Forms.DateTimePickerFormat.Short;
     this.dtpFecha.Location = new System.Drawing.Point(312, 29);
     this.dtpFecha.MinimumSize = new System.Drawing.Size(0, 29);
     this.dtpFecha.Name = "dtpFecha";
     this.dtpFecha.Size = new System.Drawing.Size(151, 29);
     this.dtpFecha.TabIndex = 6;
     //
     // metroLabel6
     //
     this.metroLabel6.AutoSize = true;
     this.metroLabel6.FontWeight = MetroFramework.MetroLabelWeight.Bold;
     this.metroLabel6.Location = new System.Drawing.Point(259, 35);
     this.metroLabel6.Name = "metroLabel6";
     this.metroLabel6.Size = new System.Drawing.Size(47, 19);
     this.metroLabel6.TabIndex = 5;
     this.metroLabel6.Text = "Fecha";
     //
     // txtCie
     //
     this.txtCie.Lines = new string[0];
     this.txtCie.Location = new System.Drawing.Point(117, 75);
     this.txtCie.MaxLength = 32767;
     this.txtCie.Name = "txtCie";
     this.txtCie.PasswordChar = '\0';
     this.txtCie.ScrollBars = System.Windows.Forms.ScrollBars.None;
     this.txtCie.SelectedText = "";
     this.txtCie.Size = new System.Drawing.Size(62, 23);
     this.txtCie.TabIndex = 4;
     this.txtCie.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
     this.txtCie.UseSelectable = true;
     this.txtCie.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtCie_KeyDown);
     //
     // metroTextBox1
     //
     this.metroTextBox1.Lines = new string[0];
     this.metroTextBox1.Location = new System.Drawing.Point(117, 190);
     this.metroTextBox1.MaxLength = 32767;
     this.metroTextBox1.Multiline = true;
     this.metroTextBox1.Name = "metroTextBox1";
     this.metroTextBox1.PasswordChar = '\0';
     this.metroTextBox1.ScrollBars = System.Windows.Forms.ScrollBars.None;
     this.metroTextBox1.SelectedText = "";
     this.metroTextBox1.Size = new System.Drawing.Size(380, 84);
     this.metroTextBox1.TabIndex = 4;
     this.metroTextBox1.UseSelectable = true;
     //
     // txtEspecialidad
     //
     this.txtEspecialidad.Lines = new string[0];
     this.txtEspecialidad.Location = new System.Drawing.Point(117, 152);
     this.txtEspecialidad.MaxLength = 32767;
     this.txtEspecialidad.Name = "txtEspecialidad";
     this.txtEspecialidad.PasswordChar = '\0';
     this.txtEspecialidad.ScrollBars = System.Windows.Forms.ScrollBars.None;
     this.txtEspecialidad.SelectedText = "";
     this.txtEspecialidad.Size = new System.Drawing.Size(380, 23);
     this.txtEspecialidad.TabIndex = 4;
     this.txtEspecialidad.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
     this.txtEspecialidad.UseSelectable = true;
     //
     // txtEESS
     //
     this.txtEESS.Lines = new string[0];
     this.txtEESS.Location = new System.Drawing.Point(117, 114);
     this.txtEESS.MaxLength = 32767;
     this.txtEESS.Name = "txtEESS";
     this.txtEESS.PasswordChar = '\0';
     this.txtEESS.ScrollBars = System.Windows.Forms.ScrollBars.None;
     this.txtEESS.SelectedText = "";
     this.txtEESS.Size = new System.Drawing.Size(380, 23);
     this.txtEESS.TabIndex = 4;
     this.txtEESS.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
     this.txtEESS.UseSelectable = true;
     //
     // txtdcie
     //
     this.txtdcie.Lines = new string[0];
     this.txtdcie.Location = new System.Drawing.Point(185, 75);
     this.txtdcie.MaxLength = 32767;
     this.txtdcie.Name = "txtdcie";
     this.txtdcie.PasswordChar = '\0';
     this.txtdcie.ScrollBars = System.Windows.Forms.ScrollBars.None;
     this.txtdcie.SelectedText = "";
     this.txtdcie.Size = new System.Drawing.Size(312, 23);
     this.txtdcie.TabIndex = 4;
     this.txtdcie.UseSelectable = true;
     //
     // metroLabel7
     //
     this.metroLabel7.AutoSize = true;
     this.metroLabel7.FontWeight = MetroFramework.MetroLabelWeight.Bold;
     this.metroLabel7.Location = new System.Drawing.Point(11, 190);
     this.metroLabel7.Name = "metroLabel7";
     this.metroLabel7.Size = new System.Drawing.Size(107, 19);
     this.metroLabel7.TabIndex = 0;
     this.metroLabel7.Text = "Observaciones";
     //
     // btnNuevo
     //
     this.btnNuevo.BackgroundImage = global::SeguroIntegral.Escritorio.Properties.Resources._new;
     this.btnNuevo.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.btnNuevo.FontSize = MetroFramework.MetroButtonSize.Medium;
     this.btnNuevo.Location = new System.Drawing.Point(335, 63);
     this.btnNuevo.Name = "btnNuevo";
     this.btnNuevo.Size = new System.Drawing.Size(86, 31);
     this.btnNuevo.TabIndex = 6;
     this.btnNuevo.Text = "&NUEVO";
     this.btnNuevo.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.btnNuevo.UseSelectable = true;
     this.btnNuevo.Click += new System.EventHandler(this.btnNuevo_Click);
     //
     // btnSalir
     //
     this.btnSalir.BackgroundImage = global::SeguroIntegral.Escritorio.Properties.Resources.close;
     this.btnSalir.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.btnSalir.FontSize = MetroFramework.MetroButtonSize.Medium;
     this.btnSalir.Location = new System.Drawing.Point(443, 63);
     this.btnSalir.Name = "btnSalir";
     this.btnSalir.Size = new System.Drawing.Size(89, 31);
     this.btnSalir.TabIndex = 6;
     this.btnSalir.Text = "&SALIR";
     this.btnSalir.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.btnSalir.UseSelectable = true;
     //
     // mtFiltro
     //
     this.mtFiltro.AllowUserToResizeRows = false;
     this.mtFiltro.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.mtFiltro.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.mtFiltro.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
     this.mtFiltro.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
     dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219)))));
     dataGridViewCellStyle4.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
     dataGridViewCellStyle4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219)))));
     dataGridViewCellStyle4.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
     dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
     this.mtFiltro.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4;
     this.mtFiltro.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     dataGridViewCellStyle5.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
     dataGridViewCellStyle5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(136)))), ((int)(((byte)(136)))), ((int)(((byte)(136)))));
     dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219)))));
     dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
     dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
     this.mtFiltro.DefaultCellStyle = dataGridViewCellStyle5;
     this.mtFiltro.EnableHeadersVisualStyles = false;
     this.mtFiltro.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
     this.mtFiltro.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.mtFiltro.Location = new System.Drawing.Point(538, 446);
     this.mtFiltro.Name = "mtFiltro";
     this.mtFiltro.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
     dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219)))));
     dataGridViewCellStyle6.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
     dataGridViewCellStyle6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     dataGridViewCellStyle6.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219)))));
     dataGridViewCellStyle6.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
     dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
     this.mtFiltro.RowHeadersDefaultCellStyle = dataGridViewCellStyle6;
     this.mtFiltro.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
     this.mtFiltro.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
     this.mtFiltro.Size = new System.Drawing.Size(491, 150);
     this.mtFiltro.TabIndex = 7;
     //
     // frmDerivacion
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this.BackImage = global::SeguroIntegral.Escritorio.Properties.Resources.GitHub_Mark;
     this.BackImagePadding = new System.Windows.Forms.Padding(350, 15, 0, 0);
     this.BackMaxSize = 45;
     this.BorderStyle = MetroFramework.Forms.MetroFormBorderStyle.FixedSingle;
     this.ClientSize = new System.Drawing.Size(1067, 456);
     this.Controls.Add(this.mtFiltro);
     this.Controls.Add(this.btnSalir);
     this.Controls.Add(this.btnNuevo);
     this.Controls.Add(this.txtPaciente);
     this.Controls.Add(this.dgvDerivaciones);
     this.Controls.Add(this.metroLabel2);
     this.Controls.Add(this.gbDerivacion);
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox = false;
     this.Name = "frmDerivacion";
     this.Text = "DERIVACION  PACIENTE EE.SS";
     ((System.ComponentModel.ISupportInitialize)(this.dgvDerivaciones)).EndInit();
     this.gbDerivacion.ResumeLayout(false);
     this.gbDerivacion.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.mtFiltro)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #35
0
        //Called Each Time The NetworkTable Receives Data
        private void NetworkTableNewData(string source, string key, object value, bool isNew)
        {
            string _value = value.ToString();
            if (!isNew)
            {
                MetroFramework.Controls.MetroLabel lbl = (MetroFramework.Controls.MetroLabel)pnlDashboard.Controls.Find(key, false)[0];
                lbl.Text = key + ": " + _value.Substring(0, Math.Min(8, _value.Length));
            }
            else
            {
                MetroFramework.Controls.MetroLabel newLabel = new MetroFramework.Controls.MetroLabel();
                newLabel.AutoSize = true;
                newLabel.Name = key;
                newLabel.Text = key + ": " + _value.Substring(0, Math.Min(8, _value.Length));
                newLabel.Location = new System.Drawing.Point(1, (pnlDashboard.Controls.Count - 2) * 20);

                pnlDashboard.Controls.Add(newLabel);
            }
        }
コード例 #36
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(agrergarcasa));
     this.metroLabel1 = new MetroFramework.Controls.MetroLabel();
     this.metroLink1 = new MetroFramework.Controls.MetroLink();
     this.metroComboBox1 = new MetroFramework.Controls.MetroComboBox();
     this.metroButton1 = new MetroFramework.Controls.MetroButton();
     this.metroStyleManager1 = new MetroFramework.Components.MetroStyleManager(this.components);
     this.bunifuImageButton1 = new Bunifu.Framework.UI.BunifuImageButton();
     ((System.ComponentModel.ISupportInitialize)(this.metroStyleManager1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.bunifuImageButton1)).BeginInit();
     this.SuspendLayout();
     //
     // metroLabel1
     //
     this.metroLabel1.AutoSize = true;
     this.metroLabel1.Location = new System.Drawing.Point(37, 69);
     this.metroLabel1.Name = "metroLabel1";
     this.metroLabel1.Size = new System.Drawing.Size(115, 19);
     this.metroLabel1.TabIndex = 0;
     this.metroLabel1.Text = "Seleccione Lugar: ";
     //
     // metroLink1
     //
     this.metroLink1.Location = new System.Drawing.Point(113, 113);
     this.metroLink1.Name = "metroLink1";
     this.metroLink1.Size = new System.Drawing.Size(224, 23);
     this.metroLink1.TabIndex = 2;
     this.metroLink1.Text = "¿La casa no esta? Registrala AQUI!!";
     this.metroLink1.UseSelectable = true;
     this.metroLink1.Click += new System.EventHandler(this.metroLink1_Click);
     //
     // metroComboBox1
     //
     this.metroComboBox1.FormattingEnabled = true;
     this.metroComboBox1.ItemHeight = 23;
     this.metroComboBox1.Location = new System.Drawing.Point(158, 69);
     this.metroComboBox1.Name = "metroComboBox1";
     this.metroComboBox1.Size = new System.Drawing.Size(121, 29);
     this.metroComboBox1.TabIndex = 3;
     this.metroComboBox1.UseSelectable = true;
     //
     // metroButton1
     //
     this.metroButton1.Location = new System.Drawing.Point(177, 153);
     this.metroButton1.Name = "metroButton1";
     this.metroButton1.Size = new System.Drawing.Size(75, 23);
     this.metroButton1.TabIndex = 4;
     this.metroButton1.Text = "Agregar";
     this.metroButton1.UseSelectable = true;
     this.metroButton1.Click += new System.EventHandler(this.metroButton1_Click);
     //
     // metroStyleManager1
     //
     this.metroStyleManager1.Owner = this;
     this.metroStyleManager1.Style = MetroFramework.MetroColorStyle.Orange;
     this.metroStyleManager1.Theme = MetroFramework.MetroThemeStyle.Dark;
     //
     // bunifuImageButton1
     //
     this.bunifuImageButton1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
     this.bunifuImageButton1.Cursor = System.Windows.Forms.Cursors.Hand;
     this.bunifuImageButton1.Image = ((System.Drawing.Image)(resources.GetObject("bunifuImageButton1.Image")));
     this.bunifuImageButton1.ImageActive = null;
     this.bunifuImageButton1.Location = new System.Drawing.Point(361, 28);
     this.bunifuImageButton1.Name = "bunifuImageButton1";
     this.bunifuImageButton1.Size = new System.Drawing.Size(46, 33);
     this.bunifuImageButton1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
     this.bunifuImageButton1.TabIndex = 41;
     this.bunifuImageButton1.TabStop = false;
     this.bunifuImageButton1.Zoom = 10;
     this.bunifuImageButton1.Click += new System.EventHandler(this.bunifuImageButton1_Click);
     //
     // agrergarcasa
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(414, 199);
     this.Controls.Add(this.bunifuImageButton1);
     this.Controls.Add(this.metroButton1);
     this.Controls.Add(this.metroComboBox1);
     this.Controls.Add(this.metroLink1);
     this.Controls.Add(this.metroLabel1);
     this.Name = "agrergarcasa";
     this.Text = "agrergar casa";
     this.Theme = MetroFramework.MetroThemeStyle.Dark;
     this.Load += new System.EventHandler(this.agrergarcasa_Load);
     ((System.ComponentModel.ISupportInitialize)(this.metroStyleManager1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.bunifuImageButton1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #37
0
        private MetroFramework.Controls.MetroLabel GetNTableVarLabel(string name, string text)
        {
            MetroFramework.Controls.MetroLabel lbl = new MetroFramework.Controls.MetroLabel();
            lbl.AutoSize = true;
            lbl.UseCustomBackColor = true;
            lbl.BackColor = pnlDashboard.BackColor;
            lbl.Name = name;
            lbl.Text = text;

            return lbl;
        }