Example #1
0
        private void Main_Load(object sender, EventArgs e)
        {
            login l = new login();

            l.ShowDialog();
            if (Program.a != "")
            {
                toolStrip1.Visible = true;
                menuStrip1.Visible = true;

                db.fill_branch(br_find);
                br_find1 = br_find.ComboBox;
                DateTime d1 = DateTime.Today;
                mon_find.Text  = d1.Month.ToString();
                year_find.Text = d1.Year.ToString();
                ToolStripControlHost tshost1 = new ToolStripControlHost(mon_find);
                ToolStripControlHost tshost2 = new ToolStripControlHost(year_find);
                toolStrip1.Items.Add(tshost1);
                toolStrip1.Items.Add(toolStripSeparator3);
                toolStrip1.Items.Add(toolStripSeparator4);
                toolStrip1.Items.Add(toolStripLabel2);
                toolStrip1.Items.Add(tshost2);
            }
        }
Example #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            login l = new login();

            l.ShowDialog();
        }