Beispiel #1
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            UcBottomButton bottomButton = new UcBottomButton();

            bottomButton.Name      = "전체";
            bottomButton.btn1.Text = "전체";
            bottomButton.WorkSelected(UserControlList.workSelect);
            fpnlBottom.Controls.Add(bottomButton);
            timer1.Start();
            timer1.Interval = 1000;
            lbl작업자.Text     = loginMember.EmployeeName.ToString();
        }
Beispiel #2
0
        public void SetBottombtnName(object sender, EventArgs e)
        {
            string btnName = (string)sender;

            if (e != null)
            {
                UcBottomButton bottomButton = new UcBottomButton();
                bottomButton.Name      = btnName;
                bottomButton.btn1.Text = btnName;
                bottomButton.WorkSelected(UserControlList.workSelect);
                if (fpnlBottom.Controls.ContainsKey(btnName))
                {
                    MessageBox.Show("이미 추가된 버튼 입니다.");
                    return;
                }

                fpnlBottom.Controls.Add(bottomButton);
            }
            else
            {
                fpnlBottom.Controls.RemoveByKey(btnName);
            }
        }