private void button3_Click(object sender, EventArgs e) { this.Close(); var m = new CategoriesLoad(); m.Show(); }
private void Item_Click(object sender, EventArgs e) { ToolStripMenuItem item = sender as ToolStripMenuItem; if (item.Text == "Add Income") { this.Hide(); var m = new IncomeInput(); m.Show(); } else if (item.Text == "Add Expense") { this.Hide(); var m = new CategoriesLoad(); m.Show(); } else if (item.Text == "Log out") { //go to login window } else { //go to profile window } }