Example #1
0
 private void InitializeComponent()
 {
     this.btnOmoguci  = new MetroFramework.Controls.MetroButton();
     this.cbRazduzeno = new MetroFramework.Controls.MetroCheckBox();
     this.SuspendLayout();
     //
     // btnOmoguci
     //
     this.btnOmoguci.Location = new System.Drawing.Point(166, 11);
     this.btnOmoguci.Name     = "btnOmoguci";
     this.btnOmoguci.Size     = new System.Drawing.Size(163, 23);
     this.btnOmoguci.TabIndex = 0;
     this.btnOmoguci.Text     = "Uvrsti stanje iznajmljivanja";
     this.btnOmoguci.Click   += new System.EventHandler(this.btnOmoguci_Click);
     //
     // cbRazduzeno
     //
     this.cbRazduzeno.Location = new System.Drawing.Point(35, 10);
     this.cbRazduzeno.Name     = "cbRazduzeno";
     this.cbRazduzeno.Size     = new System.Drawing.Size(104, 24);
     this.cbRazduzeno.TabIndex = 1;
     this.cbRazduzeno.Text     = "Razduženo";
     this.cbRazduzeno.UseVisualStyleBackColor = true;
     //
     // CheckBoxControl
     //
     this.BackColor = System.Drawing.Color.White;
     this.Controls.Add(this.cbRazduzeno);
     this.Controls.Add(this.btnOmoguci);
     this.Name  = "CheckBoxControl";
     this.Size  = new System.Drawing.Size(500, 45);
     this.Load += new System.EventHandler(this.CheckBoxControl_Load);
     this.ResumeLayout(false);
 }
Example #2
0
 private void InitializeComponent()
 {
     this.chckIniciarWindows = new MetroFramework.Controls.MetroCheckBox();
     this.SuspendLayout();
     //
     // chckIniciarWindows
     //
     this.chckIniciarWindows.AutoSize       = true;
     this.chckIniciarWindows.Location       = new System.Drawing.Point(210, 108);
     this.chckIniciarWindows.Name           = "chckIniciarWindows";
     this.chckIniciarWindows.Size           = new System.Drawing.Size(189, 15);
     this.chckIniciarWindows.Style          = MetroFramework.MetroColorStyle.Blue;
     this.chckIniciarWindows.TabIndex       = 3;
     this.chckIniciarWindows.Text           = "Iniciar Aplicación con Windows";
     this.chckIniciarWindows.UseSelectable  = true;
     this.chckIniciarWindows.UseStyleColors = true;
     //
     // PanelGral
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.Controls.Add(this.chckIniciarWindows);
     this.Name = "PanelGral";
     this.Controls.SetChildIndex(this.btnGuardar, 0);
     this.Controls.SetChildIndex(this.chckIniciarWindows, 0);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Example #3
0
        private void create_new_task(int x, int y, Panel pn)
        {
            Bunifu.Framework.UI.BunifuCards card = new Bunifu.Framework.UI.BunifuCards();
            card.color     = Color.Purple;
            card.BackColor = Color.FromArgb(64, 64, 64);

            Panel layout = new Panel();

            MetroFramework.Controls.MetroCheckBox check = new MetroFramework.Controls.MetroCheckBox();
            check.Style = MetroFramework.MetroColorStyle.Green;
            check.Theme = MetroFramework.MetroThemeStyle.Dark;

            MetroFramework.Controls.MetroTextBox title_task = new MetroFramework.Controls.MetroTextBox();
            title_task.FontSize   = MetroFramework.MetroTextBoxSize.Tall;
            title_task.FontWeight = MetroFramework.MetroTextBoxWeight.Bold;
            title_task.Theme      = MetroFramework.MetroThemeStyle.Dark;
            title_task.Multiline  = true;

            layout.Controls.Add(check);
            check.SetBounds(4, 20, 30, 15);
            layout.Controls.Add(title_task);
            title_task.SetBounds(40, 12, 275, 31);

            card.Controls.Add(layout);
            layout.SetBounds(3, 3, 413, 61);

            pn.Controls.Add(card);
            card.SetBounds(x, y, 421, 67);
        }
Example #4
0
 private void chkBxAutomatic_CheckStateChanged(object sender, EventArgs e)
 {
     MetroFramework.Controls.MetroCheckBox checkBox = (MetroFramework.Controls.MetroCheckBox)sender;
     //Setzt windows TaskSchedule und startet Programm stündlich = neues Hintergrundbild jede Stunde
     if (checkBox.Checked == true)
     {
         using (TaskService ts = new TaskService())
         {
             TaskDefinition td = ts.NewTask();
             td.RegistrationInfo.Description = "Changes Wallpaper automatically";
             var trigger = new TimeTrigger();
             trigger.Repetition.Interval = TimeSpan.FromHours(1);
             td.Triggers.Add(trigger);
             td.Actions.Add(new ExecAction(System.Reflection.Assembly.GetExecutingAssembly().Location));
             ts.RootFolder.RegisterTaskDefinition(@"FreshWall", td);
         }
     }
     else
     {
         using (TaskService ts = new TaskService())
         {
             ts.RootFolder.DeleteTask(@"FreshWall");
         }
     }
 }
Example #5
0
 private void OnRadioButtonClick(object sender, EventArgs e)
 {
     AsManagerCheckBox.Checked   = false;
     AsPlayerCheckBox.Checked    = false;
     AsOrganizerCheckBox.Checked = false;
     MetroFramework.Controls.MetroCheckBox radioButton = (MetroFramework.Controls.MetroCheckBox)sender;
     radioButton.Checked = true;
 }
Example #6
0
 private void deletlayer_MouseDown(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Right)
     {
         metroContextMenu1.Show(MousePosition.X, MousePosition.Y);
     }
     MetroFramework.Controls.MetroCheckBox cb = (MetroFramework.Controls.MetroCheckBox)sender;
     cbnamezc = cb;
 }
Example #7
0
        private void load_list(Lista list)
        {
            string[] tasks = list.tasks.Split(';');

            Panel list_pn = (Panel)List_cr_pn.Controls[0];

            list_pn.Controls.Clear();

            MetroFramework.Controls.MetroTextBox title_list = (MetroFramework.Controls.MetroTextBox)List_cr_pn.Controls[3];
            title_list.Text = list.title;

            int y = 3;

            for (int i = 0; i < tasks.Length; i++)
            {
                string text = tasks[i].Split('@')[0];
                if (text == "")
                {
                    break;
                }
                bool is_checked = false;
                if (tasks[i].Split('@')[1] == "True")
                {
                    is_checked = true;
                }

                Bunifu.Framework.UI.BunifuCards card = new Bunifu.Framework.UI.BunifuCards();
                card.color     = Color.Purple;
                card.BackColor = Color.FromArgb(64, 64, 64);

                Panel layout = new Panel();

                MetroFramework.Controls.MetroCheckBox check = new MetroFramework.Controls.MetroCheckBox();
                check.Style   = MetroFramework.MetroColorStyle.Green;
                check.Theme   = MetroFramework.MetroThemeStyle.Dark;
                check.Checked = is_checked;

                MetroFramework.Controls.MetroTextBox title_task = new MetroFramework.Controls.MetroTextBox();
                title_task.FontSize   = MetroFramework.MetroTextBoxSize.Tall;
                title_task.FontWeight = MetroFramework.MetroTextBoxWeight.Bold;
                title_task.Theme      = MetroFramework.MetroThemeStyle.Dark;
                title_task.Multiline  = true;
                title_task.Text       = text;

                layout.Controls.Add(check);
                check.SetBounds(4, 20, 30, 15);
                layout.Controls.Add(title_task);
                title_task.SetBounds(40, 12, 275, 31);

                card.Controls.Add(layout);
                layout.SetBounds(3, 3, 413, 61);

                list_pn.Controls.Add(card);
                card.SetBounds(3, y, 421, 67);
                y += 73;
            }
        }
Example #8
0
 //添加CheckBox的函数//暂时没有用
 public void addusercheckbox(string cbname, string cbtext, int x, int y)
 {
     MetroFramework.Controls.MetroCheckBox c = new MetroFramework.Controls.MetroCheckBox();
     c.Location = new System.Drawing.Point(x, y);
     c.BringToFront();
     c.Name    = cbname;
     c.Text    = cbtext;
     c.Checked = true;
     this.tra_layer_gb.Controls.Add(c);
 }
        public Department_Element(Department department, int position_x, int position_y, Panel panel_dep)
        {
            this.department = department;

            check_dep = new MetroFramework.Controls.MetroCheckBox();

            check_dep.Location = new Point(position_x, position_y);
            check_dep.Name     = department.Name;
            check_dep.Text     = department.Name;
            check_dep.Size     = new Size(130, 15);
            check_dep.Checked  = true;

            panel_dep.Controls.Add(check_dep);
        }
Example #10
0
        private void New_list_btn_Click(object sender, EventArgs e)
        {
            splitContainer1.Panel2.Enabled = true;

            Top_lb.Text         = "Todas as listas";
            Count_notes_lb.Text = List_lists.Controls.Count.ToString() + " listas";

            Holder_panel.Controls.Clear();
            Holder_panel.Controls.Add(List_lists);

            Panel list_pn = (Panel)List_cr_pn.Controls[0];

            list_pn.Controls.Clear();

            MetroFramework.Controls.MetroTextBox title_list = (MetroFramework.Controls.MetroTextBox)List_cr_pn.Controls[3];
            title_list.Text = "";

            Bunifu.Framework.UI.BunifuCards card = new Bunifu.Framework.UI.BunifuCards();
            card.color     = Color.Purple;
            card.BackColor = Color.FromArgb(64, 64, 64);

            Panel layout = new Panel();

            MetroFramework.Controls.MetroCheckBox check = new MetroFramework.Controls.MetroCheckBox();
            check.Style = MetroFramework.MetroColorStyle.Green;
            check.Theme = MetroFramework.MetroThemeStyle.Dark;

            MetroFramework.Controls.MetroTextBox title_task = new MetroFramework.Controls.MetroTextBox();
            title_task.FontSize   = MetroFramework.MetroTextBoxSize.Tall;
            title_task.FontWeight = MetroFramework.MetroTextBoxWeight.Bold;
            title_task.Theme      = MetroFramework.MetroThemeStyle.Dark;
            title_task.Multiline  = true;

            layout.Controls.Add(check);
            check.SetBounds(4, 20, 30, 15);
            layout.Controls.Add(title_task);
            title_task.SetBounds(40, 12, 275, 31);

            card.Controls.Add(layout);
            layout.SetBounds(3, 3, 413, 61);

            list_pn.Controls.Add(card);
            card.SetBounds(3, 3, 421, 67);

            splitContainer1.Panel2.Controls.Clear();
            splitContainer1.Panel2.Controls.Add(List_cr_pn);
        }
Example #11
0
 private void catchTheControls()
 {
     buttonOk           = (MetroFramework.Controls.MetroTile)requestWindow.Controls.Find("mTileOk", true).First();
     textBoxName        = (MetroFramework.Controls.MetroTextBox)requestWindow.Controls.Find("mTxtBxReqName", true).First();
     textBoxArea        = (MetroFramework.Controls.MetroTextBox)requestWindow.Controls.Find("mTxtBxReqArea", true).First();;
     textBoxAmount      = (MetroFramework.Controls.MetroTextBox)requestWindow.Controls.Find("mTxtBxAmount", true).First();;
     textBoxStartDate   = (MetroFramework.Controls.MetroTextBox)requestWindow.Controls.Find("mTxtBxStartDate", true).First();;
     textBoxEndDate     = (MetroFramework.Controls.MetroTextBox)requestWindow.Controls.Find("mTxtBxEndDate", true).First();;
     comboBoxProducts   = (MetroFramework.Controls.MetroComboBox)requestWindow.Controls.Find("mCbBxProducts", true).First();;
     comboBoxStrippings = (MetroFramework.Controls.MetroComboBox)requestWindow.Controls.Find("mCbBxStrippings", true).First();;
     textBoxPlacing     = (MetroFramework.Controls.MetroTextBox)requestWindow.Controls.Find("mTxtBxPlaceCode", true).First();
     textBoxSubcontr    = (MetroFramework.Controls.MetroTextBox)requestWindow.Controls.Find("mTxtBxBeszall", true).First();
     labelPlacing       = (MetroFramework.Controls.MetroLabel)requestWindow.Controls.Find("mLabelPlacing", true).First();
     infoLabel          = (MetroFramework.Controls.MetroLabel)requestWindow.Controls.Find("mLblInfoTitle", true).First();
     labelOfProduct     = (MetroFramework.Controls.MetroLabel)requestWindow.Controls.Find("mLabelOfProductCmb", true).First();
     checkBoxNewdProd   = (MetroFramework.Controls.MetroCheckBox)requestWindow.Controls.Find("mChckBxModifyDiffProd", true).First();
 }
Example #12
0
 //位置变换函数
 public void lacationchange(int layerindex, MetroFramework.Controls.MetroCheckBox cb)
 {
     if (layerindex == 0)
     {
         cb.Location = new System.Drawing.Point(9, 111);
         tra_addlayer_bt.Location = new System.Drawing.Point(9, 153);
     }
     if (layerindex == 1)
     {
         cb.Location = new System.Drawing.Point(9, 153);
         tra_addlayer_bt.Location = new System.Drawing.Point(9, 191);
     }
     if (layerindex == 2)
     {
         cb.Location = new System.Drawing.Point(9, 191);
         tra_addlayer_bt.Location = new System.Drawing.Point(9, 229);
     }
 }
Example #13
0
 private void CheckBoxSelected(object sender, EventArgs e)
 {
     foreach (Control control in pCheckBox.Controls)
     {
         if (control is MetroFramework.Controls.MetroCheckBox)
         {
             if (control == sender)
             {
                 MetroFramework.Controls.MetroCheckBox temp1 = (MetroFramework.Controls.MetroCheckBox)sender;
                 foreach (Control controls in pCheckBox.Controls)
                 {
                     if (controls is MetroFramework.Controls.MetroCheckBox && controls != sender)
                     {
                         temp1         = (MetroFramework.Controls.MetroCheckBox)controls;
                         temp1.Checked = false;
                     }
                 }
             }
             break;
         }
     }
 }
Example #14
0
 private void catchTheControls()
 {
     buttonOk              = (MetroFramework.Controls.MetroTile)parentOrdWin.Controls.Find("mTileOk", true).First();
     labelInfoBar          = parentOrdWin.Controls.Find("mLblInfoTitle", true).First();
     textBoxStartDate      = (MetroFramework.Controls.MetroTextBox)parentOrdWin.Controls.Find("mTxtBxOrderStart", true).First();
     textBoxFinalDate      = (MetroFramework.Controls.MetroTextBox)parentOrdWin.Controls.Find("mTxtBxOrderFinal", true).First();
     textBoxUserOrder      = (MetroFramework.Controls.MetroTextBox)parentOrdWin.Controls.Find("mTxtBxUserStart", true).First();
     textBoxUserModif      = (MetroFramework.Controls.MetroTextBox)parentOrdWin.Controls.Find("mTxtBxModifUser", true).First();
     labelFinalDate        = parentOrdWin.Controls.Find("mLblFinalDate", true).First();
     labelModifierArea     = parentOrdWin.Controls.Find("mLblModifierArea", true).First();
     textBoxOrdAmount      = (MetroFramework.Controls.MetroTextBox)parentOrdWin.Controls.Find("mTxtBxAmount", true).First();
     textBoxOrdArrivAmount = (MetroFramework.Controls.MetroTextBox)parentOrdWin.Controls.Find("mTxtBxAmountArriv", true).First();
     labelArrivedAmount    = parentOrdWin.Controls.Find("mLblAmountArriv", true).First();
     textBoxOrdPlace       = (MetroFramework.Controls.MetroTextBox)parentOrdWin.Controls.Find("mTxtBxPlacing", true).First();
     labelPlacing          = parentOrdWin.Controls.Find("mLblPlacing", true).First();
     textBoxSubcontr       = (MetroFramework.Controls.MetroTextBox)parentOrdWin.Controls.Find("mTxtBxSubcontr", true).First();
     textBoxProdcode       = (MetroFramework.Controls.MetroTextBox)parentOrdWin.Controls.Find("mTxtBxProdCode", true).First();
     labelProductInfo      = parentOrdWin.Controls.Find("mLblProductInfo", true).First();
     comboBoxOrdProd       = (MetroFramework.Controls.MetroComboBox)parentOrdWin.Controls.Find("mCmbxProduct", true).First();
     comboBoxOrdStrip      = (MetroFramework.Controls.MetroComboBox)parentOrdWin.Controls.Find("mCmbxStripping", true).First();
     checkBoxNewProd       = (MetroFramework.Controls.MetroCheckBox)parentOrdWin.Controls.Find("mChckBoxNewProdAdj", true).First();
 }
Example #15
0
        void mAsyncWorkerWaitProcess_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            try
            {
                int i = 0;

                foreach (DataRow item in dtBancos.Rows)
                {
                    i++;
                    chk          = new MetroFramework.Controls.MetroCheckBox();
                    chk.AutoSize = true;
                    chk.Location = new System.Drawing.Point(10, (((i + 1) * 20)) - 30);
                    chk.Name     = "chk" + item[0].ToString();
                    chk.Size     = new System.Drawing.Size(113, 15);
                    chk.TabIndex = 2 + i;
                    chk.Text     = item[0].ToString();
                    chk.UseVisualStyleBackColor = true;
                    chk.Style = MetroFramework.MetroColorStyle.Orange;
                    mPnlDataBase.Controls.Add(chk);
                }
                _progresso.Close();
            }
            catch (Exception ex) { MetroMessageBox.Show(this, ex.Message); }
        }
        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;
        }
Example #17
0
        private void ShowValidBooking()
        {
            //Restoring checked value after selecting different date
            for (int i = 0; i < Div; i++)
            {
                VarCb[i].Checked = false;
                VarCb[i].Enabled = false;
            }

            //Restoring slot details
            this.metroLabel9.Text       = " ";
            this.pnlSlotDetails.Visible = false;

            //Generating current Date
            string dtpDate = dtpBookDoc.Value.ToString("yyyy-MM-dd");

            //Collecting only date part of Time col from table
            string sql = "select BookId, Time, RegTime, Paid, Valid from DocBook where (DocId = '" + this.GetId + "' and CONVERT(date, Time) = CONVERT(date, '" + dtpDate + "'));";

            sql += "select Time, BlockDay from DocBlock where(DocId = '" + this.GetId + "' and CONVERT(date, Time) = CONVERT(date, '" + dtpDate + "')); ";

            try
            {
                this.Ds = DataAccess.GetDataSet(sql);
            }
            catch
            {
                MessageBox.Show("Error: Something went wrong!");
            }

            //Comparing checkbox value with table 0 time by linear search
            for (int i = 0; i < this.Ds.Tables[0].Rows.Count; i++)
            {
                //Setting book validity false if exceeds 30 mins
                DateTime regTime = Convert.ToDateTime(this.Ds.Tables[0].Rows[i]["RegTime"].ToString());
                string   paid    = this.Ds.Tables[0].Rows[i]["Paid"].ToString();
                this.SetBookId = this.Ds.Tables[0].Rows[i]["BookId"].ToString();

                if (regTime.AddMinutes(30) > DateTime.Now && paid == "False")
                {
                    SetBookInvalid();
                    SkipRadioChk = true;
                }

                TimeSpan bdHM = Convert.ToDateTime(this.Ds.Tables[0].Rows[i]["Time"].ToString()).TimeOfDay;
                for (int j = 0; j < VarCb.Length; j++)
                {
                    //If checkbox and table time is equal then checked set to true
                    if (VarCb[j].Text == bdHM.ToString() && this.Ds.Tables[0].Rows[i]["Valid"].ToString() == "True" && !SkipRadioChk)
                    {
                        VarCb[j].Checked = true;
                        VarCb[j].Enabled = true;

                        //Booked slot click event
                        VarCb[j].Click += new EventHandler(VarCb_Click);
                        void VarCb_Click(object send, EventArgs ev)
                        {
                            MetroFramework.Controls.MetroCheckBox VarCb = send as MetroFramework.Controls.MetroCheckBox;
                            VarCb.Checked = true;

                            //Show booked patient details
                            this.pnlSlotDetails.Visible = true;
                            this.metroLabel9.Text       = "Patient Details: ";

                            string   PatDtlTime = dtpDate + " " + VarCb.Text;
                            DateTime PatDtl     = DateTime.ParseExact(PatDtlTime, "yyyy-MM-dd HH:mm:ss", null);

                            string query = "select p.Name, p.Age, p.BloodGroup, p.Address, p.Phone, bd.PatId from DocBook bd, Patient p where (CONVERT(DATE, bd.Time) = CONVERT(DATE,'" + PatDtl + "') and bd.PatId = p.Id);";

                            try
                            {
                                this.Dt              = DataAccess.GetDataTable(query);
                                this.lblIdPat.Text   = this.Dt.Rows[0]["PatId"].ToString();
                                this.lblName.Text    = this.Dt.Rows[0]["Name"].ToString();
                                this.lblAge.Text     = this.Dt.Rows[0]["Age"].ToString();
                                this.lblBloodG.Text  = this.Dt.Rows[0]["BloodGroup"].ToString();
                                this.lblPhone.Text   = this.Dt.Rows[0]["Phone"].ToString();
                                this.lblAddress.Text = this.Dt.Rows[0]["Address"].ToString();

                                VarCb.Checked = true;
                            }
                            catch
                            {
                                MessageBox.Show("Error: Something went wrong!");
                            }
                        }
                    }
                }
            }

            //Comparing checkbox value with table 1 time by linear search
            for (int i = 0; i < this.Ds.Tables[1].Rows.Count; i++)
            {
                TimeSpan adHM     = Convert.ToDateTime(this.Ds.Tables[1].Rows[i]["Time"].ToString()).TimeOfDay; //For checking each checkbox
                string   blockDay = this.Ds.Tables[1].Rows[i]["BlockDay"].ToString();                           //For checking if whole day is blocked

                //Whole day block
                if (blockDay == "True")
                {
                    for (int j = 0; j < VarCb.Length; j++)
                    {
                        VarCb[j].Checked = true;
                        VarCb[j].Enabled = true;

                        //Booked slot click event
                        VarCb[j].Click += new EventHandler(VarCb_Click);
                        void VarCb_Click(object send, EventArgs ev)
                        {
                            MetroFramework.Controls.MetroCheckBox VarCb = send as MetroFramework.Controls.MetroCheckBox;
                            VarCb.Checked = true;

                            this.metroLabel9.Text       = "All Slots are blocked for chosen day!";
                            this.pnlSlotDetails.Visible = false;

                            VarCb.Checked = true;
                        }
                    }
                }

                //Specific slot block
                else
                {
                    for (int j = 0; j < VarCb.Length; j++)
                    {
                        //If checkbox and table time is equal then checked set to true
                        if (VarCb[j].Text == adHM.ToString())
                        {
                            VarCb[j].Checked = true;
                            VarCb[j].Enabled = true;

                            //Booked slot click event
                            VarCb[j].Click += new EventHandler(VarCb_Click);
                            void VarCb_Click(object send, EventArgs ev)
                            {
                                MetroFramework.Controls.MetroCheckBox VarCb = send as MetroFramework.Controls.MetroCheckBox;
                                VarCb.Checked = true;

                                this.metroLabel9.Text       = "Slot Blocked!";
                                this.pnlSlotDetails.Visible = false;

                                VarCb.Checked = true;
                            }
                        }
                    }
                }
            }
        }
Example #18
0
        private void create_panel_list()
        {
            List_cr_pn.Size       = new Size(467, 472);
            List_cr_pn.AutoScroll = true;

            Panel list_pn = new Panel();

            list_pn.AutoScroll  = true;
            list_pn.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;

            Bunifu.Framework.UI.BunifuCards card = new Bunifu.Framework.UI.BunifuCards();
            card.color     = Color.Purple;
            card.BackColor = Color.FromArgb(64, 64, 64);

            Panel layout = new Panel();

            MetroFramework.Controls.MetroCheckBox check = new MetroFramework.Controls.MetroCheckBox();
            check.Style = MetroFramework.MetroColorStyle.Green;
            check.Theme = MetroFramework.MetroThemeStyle.Dark;

            MetroFramework.Controls.MetroTextBox title_task = new MetroFramework.Controls.MetroTextBox();
            title_task.FontSize   = MetroFramework.MetroTextBoxSize.Tall;
            title_task.FontWeight = MetroFramework.MetroTextBoxWeight.Bold;
            title_task.Theme      = MetroFramework.MetroThemeStyle.Dark;
            title_task.Multiline  = true;

            layout.Controls.Add(check);
            check.SetBounds(4, 20, 30, 15);
            layout.Controls.Add(title_task);
            title_task.SetBounds(40, 12, 275, 31);

            card.Controls.Add(layout);
            layout.SetBounds(3, 3, 413, 61);

            list_pn.Controls.Add(card);
            card.SetBounds(3, 3, 421, 67);

            List_cr_pn.Controls.Add(list_pn);
            list_pn.SetBounds(4, 4, 460, 357);

            MetroFramework.Controls.MetroTile add_task = new MetroFramework.Controls.MetroTile();
            add_task.Text      = "+ Adicionar Nova Tarefa";
            add_task.TextAlign = ContentAlignment.MiddleCenter;
            add_task.Click    += this.New_task_btn_click;

            MetroFramework.Controls.MetroTile save_list = new MetroFramework.Controls.MetroTile();
            save_list.Text      = "Salvar";
            save_list.TextAlign = ContentAlignment.MiddleCenter;
            save_list.Style     = MetroFramework.MetroColorStyle.Green;
            save_list.Click    += this.Save_list_btn_click;

            MetroFramework.Controls.MetroTextBox title_list = new MetroFramework.Controls.MetroTextBox();
            title_list.Theme      = MetroFramework.MetroThemeStyle.Dark;
            title_list.FontSize   = MetroFramework.MetroTextBoxSize.Tall;
            title_list.Multiline  = true;
            title_list.FontWeight = MetroFramework.MetroTextBoxWeight.Bold;

            List_cr_pn.Controls.Add(add_task);
            add_task.SetBounds(3, 367, 170, 46);
            List_cr_pn.Controls.Add(save_list);
            save_list.SetBounds(181, 423, 170, 46);
            List_cr_pn.Controls.Add(title_list);
            title_list.SetBounds(6, 423, 169, 35);
        }
Example #19
0
        private void ShowDynamicRB()
        {
            //Setting start time and close time
            string sql = "select StartTime, CloseTime, SlotMin from Doctor where Id = '" + this.GetId + "';";

            try
            {
                this.Dt = DataAccess.GetDataTable(sql);

                this.StartTime = this.Dt.Rows[0]["StartTime"].ToString();
                this.CloseTime = this.Dt.Rows[0]["CloseTime"].ToString();
                this.SlotMin   = Int16.Parse(this.Dt.Rows[0]["SlotMin"].ToString());
            }
            catch
            {
                MessageBox.Show("Error: Something went wrong!");
            }

            //Calculating the differance between times
            TimeSpan sTime  = Convert.ToDateTime(this.StartTime).TimeOfDay;
            TimeSpan cTime  = Convert.ToDateTime(this.CloseTime).TimeOfDay;
            TimeSpan sub    = cTime > sTime ? cTime - sTime : cTime - sTime + TimeSpan.FromDays(1);
            int      subMin = (int)sub.TotalMinutes;

            //Creating time slots each consisting 15 mins
            this.Div = subMin / SlotMin;

            //Creating array of Div amounts radio button dynamically
            VarCb = new MetroFramework.Controls.MetroCheckBox[Div];
            for (int i = 0; i < Div; i++)
            {
                VarCb[i] = new MetroFramework.Controls.MetroCheckBox();

                int rowN   = 12;    //Number of slots in each row
                int topMg  = 300;   //Top margin
                int height = 370;

                if (i < rowN)
                {
                    VarCb[i].Top += topMg;
                    VarCb[i].Left = 50 + (i + 1) * 80;
                    this.Height   = height;
                }
                else if (i >= rowN && i < rowN * 2)
                {
                    VarCb[i].Top += topMg + 30;
                    VarCb[i].Left = 50 + (i - rowN + 1) * 80;
                    this.Height   = height + 30;
                }
                else if (i >= rowN * 2 && i < rowN * 3)
                {
                    VarCb[i].Top += topMg + 60;
                    VarCb[i].Left = 50 + (i - rowN * 2 + 1) * 80;
                    this.Height   = height + 60;
                }
                else if (i >= rowN * 3 && i < rowN * 4)
                {
                    VarCb[i].Top += topMg + 90;
                    VarCb[i].Left = 50 + (i - rowN * 3 + 1) * 80;
                    this.Height   = height + 90;
                }
                else if (i >= rowN * 4 && i < rowN * 5)
                {
                    VarCb[i].Top += topMg + 120;
                    VarCb[i].Left = 50 + (i - rowN * 4 + 1) * 80;
                    this.Height   = height + 120;
                }

                VarCb[i].Enabled = false;
                VarCb[i].Checked = false;
                VarCb[i].Width   = 70;                                                                      //Setting neccesary width
                VarCb[i].Text    = sTime.Hours.ToString("d2") + ":" + sTime.Minutes.ToString("d2") + ":00"; //Setting radio button text
                sTime            = sTime.Add(TimeSpan.FromMinutes(SlotMin));                                //Adding slotMin amounts of time to radio button text
                this.Controls.Add(VarCb[i]);                                                                //Adding the radio button to form
            }
        }
 /// <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.MetroCheckBox chbBusy;
     this.panel2          = new System.Windows.Forms.Panel();
     this.pnlSeperator    = new System.Windows.Forms.Panel();
     this.lblID           = new System.Windows.Forms.Label();
     this.lblCID          = new System.Windows.Forms.Label();
     this.lblDate         = new System.Windows.Forms.Label();
     this.lblTime         = new System.Windows.Forms.Label();
     this.panel1          = new System.Windows.Forms.Panel();
     this.btnDashboard    = new System.Windows.Forms.Button();
     this.panel4          = new System.Windows.Forms.Panel();
     this.imgLogo         = new System.Windows.Forms.PictureBox();
     this.tmrTime         = new System.Windows.Forms.Timer(this.components);
     this.dgvStaff        = new System.Windows.Forms.DataGridView();
     this.btnViewAllStaff = new System.Windows.Forms.Button();
     this.btnViewIDStaff  = new System.Windows.Forms.Button();
     this.cmbStaffAll     = new MetroFramework.Controls.MetroComboBox();
     this.button1         = new System.Windows.Forms.Button();
     this.chbAvailable    = new MetroFramework.Controls.MetroCheckBox();
     this.pnlCheckB       = new System.Windows.Forms.Panel();
     chbBusy = new MetroFramework.Controls.MetroCheckBox();
     this.panel2.SuspendLayout();
     this.panel1.SuspendLayout();
     this.panel4.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.imgLogo)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dgvStaff)).BeginInit();
     this.pnlCheckB.SuspendLayout();
     this.SuspendLayout();
     //
     // chbBusy
     //
     chbBusy.AutoSize      = true;
     chbBusy.ForeColor     = System.Drawing.SystemColors.AppWorkspace;
     chbBusy.Location      = new System.Drawing.Point(38, 18);
     chbBusy.Name          = "chbBusy";
     chbBusy.Size          = new System.Drawing.Size(48, 15);
     chbBusy.TabIndex      = 16;
     chbBusy.Text          = "Busy";
     chbBusy.UseSelectable = true;
     //
     // panel2
     //
     this.panel2.Controls.Add(this.pnlSeperator);
     this.panel2.Controls.Add(this.lblID);
     this.panel2.Controls.Add(this.lblCID);
     this.panel2.Controls.Add(this.lblDate);
     this.panel2.Controls.Add(this.lblTime);
     this.panel2.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel2.Location = new System.Drawing.Point(159, 0);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(767, 81);
     this.panel2.TabIndex = 4;
     //
     // pnlSeperator
     //
     this.pnlSeperator.BackColor = System.Drawing.Color.White;
     this.pnlSeperator.Location  = new System.Drawing.Point(152, 12);
     this.pnlSeperator.Name      = "pnlSeperator";
     this.pnlSeperator.Size      = new System.Drawing.Size(10, 22);
     this.pnlSeperator.TabIndex  = 13;
     //
     // lblID
     //
     this.lblID.AutoSize  = true;
     this.lblID.Cursor    = System.Windows.Forms.Cursors.Hand;
     this.lblID.Font      = new System.Drawing.Font("Century Gothic", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
     this.lblID.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
     this.lblID.Location  = new System.Drawing.Point(168, 12);
     this.lblID.Name      = "lblID";
     this.lblID.Size      = new System.Drawing.Size(67, 21);
     this.lblID.TabIndex  = 15;
     this.lblID.Text      = "JA0221";
     //
     // lblCID
     //
     this.lblCID.AutoSize  = true;
     this.lblCID.Font      = new System.Drawing.Font("Century Gothic", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
     this.lblCID.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
     this.lblCID.Location  = new System.Drawing.Point(8, 12);
     this.lblCID.Name      = "lblCID";
     this.lblCID.Size      = new System.Drawing.Size(67, 21);
     this.lblCID.TabIndex  = 14;
     this.lblCID.Text      = "Staff ID";
     //
     // lblDate
     //
     this.lblDate.AutoSize  = true;
     this.lblDate.Font      = new System.Drawing.Font("Century Gothic", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
     this.lblDate.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
     this.lblDate.Location  = new System.Drawing.Point(635, 9);
     this.lblDate.Name      = "lblDate";
     this.lblDate.Size      = new System.Drawing.Size(120, 24);
     this.lblDate.TabIndex  = 6;
     this.lblDate.Text      = "2021-04-17";
     //
     // lblTime
     //
     this.lblTime.AutoSize  = true;
     this.lblTime.Font      = new System.Drawing.Font("Century Gothic", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
     this.lblTime.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
     this.lblTime.Location  = new System.Drawing.Point(635, 44);
     this.lblTime.Name      = "lblTime";
     this.lblTime.Size      = new System.Drawing.Size(63, 24);
     this.lblTime.TabIndex  = 5;
     this.lblTime.Text      = "14:23";
     //
     // panel1
     //
     this.panel1.Controls.Add(this.btnDashboard);
     this.panel1.Controls.Add(this.panel4);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Left;
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(159, 512);
     this.panel1.TabIndex = 3;
     //
     // btnDashboard
     //
     this.btnDashboard.Cursor = System.Windows.Forms.Cursors.Hand;
     this.btnDashboard.FlatAppearance.BorderSize         = 0;
     this.btnDashboard.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(28)))), ((int)(((byte)(51)))));
     this.btnDashboard.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(50)))), ((int)(((byte)(55)))));
     this.btnDashboard.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.btnDashboard.Font                    = new System.Drawing.Font("Century Gothic", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
     this.btnDashboard.ForeColor               = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
     this.btnDashboard.Image                   = global::InstaIssue.Properties.Resources.Home;
     this.btnDashboard.Location                = new System.Drawing.Point(0, 115);
     this.btnDashboard.Name                    = "btnDashboard";
     this.btnDashboard.Size                    = new System.Drawing.Size(155, 82);
     this.btnDashboard.TabIndex                = 11;
     this.btnDashboard.Text                    = "Dashboard";
     this.btnDashboard.TextImageRelation       = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.btnDashboard.UseVisualStyleBackColor = true;
     this.btnDashboard.Click                  += new System.EventHandler(this.btnDashboard_Click);
     //
     // panel4
     //
     this.panel4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
     this.panel4.Controls.Add(this.imgLogo);
     this.panel4.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel4.Location = new System.Drawing.Point(0, 0);
     this.panel4.Name     = "panel4";
     this.panel4.Size     = new System.Drawing.Size(159, 81);
     this.panel4.TabIndex = 0;
     //
     // imgLogo
     //
     this.imgLogo.Cursor   = System.Windows.Forms.Cursors.Arrow;
     this.imgLogo.Image    = global::InstaIssue.Properties.Resources.LogoGreen;
     this.imgLogo.Location = new System.Drawing.Point(40, 1);
     this.imgLogo.Name     = "imgLogo";
     this.imgLogo.Size     = new System.Drawing.Size(78, 78);
     this.imgLogo.TabIndex = 1;
     this.imgLogo.TabStop  = false;
     //
     // tmrTime
     //
     this.tmrTime.Interval = 1000;
     this.tmrTime.Tick    += new System.EventHandler(this.tmrTime_Tick);
     //
     // dgvStaff
     //
     this.dgvStaff.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dgvStaff.Location           = new System.Drawing.Point(311, 98);
     this.dgvStaff.Name               = "dgvStaff";
     this.dgvStaff.RowTemplate.Height = 25;
     this.dgvStaff.Size               = new System.Drawing.Size(603, 402);
     this.dgvStaff.TabIndex           = 5;
     //
     // btnViewAllStaff
     //
     this.btnViewAllStaff.Cursor = System.Windows.Forms.Cursors.Hand;
     this.btnViewAllStaff.FlatAppearance.BorderSize         = 0;
     this.btnViewAllStaff.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(28)))), ((int)(((byte)(51)))));
     this.btnViewAllStaff.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(50)))), ((int)(((byte)(55)))));
     this.btnViewAllStaff.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.btnViewAllStaff.Font                    = new System.Drawing.Font("Century Gothic", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
     this.btnViewAllStaff.ForeColor               = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
     this.btnViewAllStaff.Image                   = global::InstaIssue.Properties.Resources.StaffS;
     this.btnViewAllStaff.Location                = new System.Drawing.Point(165, 98);
     this.btnViewAllStaff.Name                    = "btnViewAllStaff";
     this.btnViewAllStaff.Size                    = new System.Drawing.Size(140, 71);
     this.btnViewAllStaff.TabIndex                = 12;
     this.btnViewAllStaff.Text                    = "View All Staff";
     this.btnViewAllStaff.TextImageRelation       = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.btnViewAllStaff.UseVisualStyleBackColor = true;
     this.btnViewAllStaff.Click                  += new System.EventHandler(this.btnViewAllStaff_Click);
     //
     // btnViewIDStaff
     //
     this.btnViewIDStaff.Cursor = System.Windows.Forms.Cursors.Hand;
     this.btnViewIDStaff.FlatAppearance.BorderSize         = 0;
     this.btnViewIDStaff.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(28)))), ((int)(((byte)(51)))));
     this.btnViewIDStaff.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(50)))), ((int)(((byte)(55)))));
     this.btnViewIDStaff.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.btnViewIDStaff.Font                    = new System.Drawing.Font("Century Gothic", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
     this.btnViewIDStaff.ForeColor               = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
     this.btnViewIDStaff.Image                   = global::InstaIssue.Properties.Resources.StaffS;
     this.btnViewIDStaff.Location                = new System.Drawing.Point(165, 240);
     this.btnViewIDStaff.Name                    = "btnViewIDStaff";
     this.btnViewIDStaff.Size                    = new System.Drawing.Size(140, 71);
     this.btnViewIDStaff.TabIndex                = 13;
     this.btnViewIDStaff.Text                    = "View Staff By ID";
     this.btnViewIDStaff.TextImageRelation       = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.btnViewIDStaff.UseVisualStyleBackColor = true;
     this.btnViewIDStaff.Click                  += new System.EventHandler(this.btnViewIDStaff_Click);
     //
     // cmbStaffAll
     //
     this.cmbStaffAll.FormattingEnabled = true;
     this.cmbStaffAll.ItemHeight        = 23;
     this.cmbStaffAll.Location          = new System.Drawing.Point(167, 205);
     this.cmbStaffAll.Name          = "cmbStaffAll";
     this.cmbStaffAll.Size          = new System.Drawing.Size(138, 29);
     this.cmbStaffAll.TabIndex      = 14;
     this.cmbStaffAll.UseSelectable = true;
     //
     // button1
     //
     this.button1.Cursor = System.Windows.Forms.Cursors.Hand;
     this.button1.FlatAppearance.BorderSize         = 0;
     this.button1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(28)))), ((int)(((byte)(51)))));
     this.button1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(50)))), ((int)(((byte)(55)))));
     this.button1.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.button1.Font                    = new System.Drawing.Font("Century Gothic", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
     this.button1.ForeColor               = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
     this.button1.Image                   = global::InstaIssue.Properties.Resources.StaffS;
     this.button1.Location                = new System.Drawing.Point(165, 410);
     this.button1.Name                    = "button1";
     this.button1.Size                    = new System.Drawing.Size(140, 81);
     this.button1.TabIndex                = 15;
     this.button1.Text                    = "View Staff By Status";
     this.button1.TextImageRelation       = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click                  += new System.EventHandler(this.button1_Click);
     //
     // chbAvailable
     //
     this.chbAvailable.AutoSize      = true;
     this.chbAvailable.Location      = new System.Drawing.Point(38, 39);
     this.chbAvailable.Name          = "chbAvailable";
     this.chbAvailable.Size          = new System.Drawing.Size(71, 15);
     this.chbAvailable.TabIndex      = 17;
     this.chbAvailable.Text          = "Available";
     this.chbAvailable.UseSelectable = true;
     //
     // pnlCheckB
     //
     this.pnlCheckB.Controls.Add(this.chbAvailable);
     this.pnlCheckB.Controls.Add(chbBusy);
     this.pnlCheckB.Location = new System.Drawing.Point(165, 336);
     this.pnlCheckB.Name     = "pnlCheckB";
     this.pnlCheckB.Size     = new System.Drawing.Size(143, 68);
     this.pnlCheckB.TabIndex = 12;
     //
     // StaffViewForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor           = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(44)))), ((int)(((byte)(51)))));
     this.ClientSize          = new System.Drawing.Size(926, 512);
     this.Controls.Add(this.pnlCheckB);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.cmbStaffAll);
     this.Controls.Add(this.btnViewIDStaff);
     this.Controls.Add(this.btnViewAllStaff);
     this.Controls.Add(this.dgvStaff);
     this.Controls.Add(this.panel2);
     this.Controls.Add(this.panel1);
     this.Name          = "StaffViewForm";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "View Staff";
     this.FormClosed   += new System.Windows.Forms.FormClosedEventHandler(this.StaffViewForm_FormClosed);
     this.Load         += new System.EventHandler(this.StaffViewForm_Load);
     this.panel2.ResumeLayout(false);
     this.panel2.PerformLayout();
     this.panel1.ResumeLayout(false);
     this.panel4.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.imgLogo)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dgvStaff)).EndInit();
     this.pnlCheckB.ResumeLayout(false);
     this.pnlCheckB.PerformLayout();
     this.ResumeLayout(false);
 }