Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            SelCat f = new SelCat();

            this.Visible = false;
            f.ShowDialog();
            this.Visible = true;
        }
Exemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (listBox1.SelectedItem == null)
     {
         MessageBox.Show("Select an operation");
     }
     if (listBox1.SelectedItem.ToString() == "Category")
     {
         this.Visible = false;
         AddCat f = new AddCat();
         f.ShowDialog();
         this.Visible = true;
     }
     if (listBox1.SelectedItem.ToString() == "Event")
     {
         this.Visible = false;
         SelCat f = new SelCat(10);
         f.ShowDialog();
         this.Visible = true;
     }
 }