Exemple #1
0
        private void UserControl8_Load(object sender, EventArgs e)
        {
            button1.Visible = false;
            _obj            = this;

            ShowItems uc = new ShowItems();

            uc.Dock = DockStyle.Fill;
            panel1.Controls.Add(uc);
        }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            button1.Visible = false;
            button2.Visible = true;
            button3.Visible = true;
            _obj            = this;

            if (UserControl8.Instance.panel1.Controls.ContainsKey("AddItems"))
            {
                panel1.Controls["AddItems"].SendToBack();
            }
            else
            {
                panel1.Controls["GenerateReport"].SendToBack();
            }
            ShowItems uc = new ShowItems();

            uc.Dock = DockStyle.Fill;
            panel1.Controls.Add(uc);
            panel1.Controls["ShowItems"].BringToFront();
        }