private void click_btn_back(object sender, EventArgs e) { this.Hide(); Tourist t = new Tourist(); t.ShowDialog(); this.Close(); }
private void click_btn_login(object sender, EventArgs e) { KeyValuePair <string, string> kvp = (KeyValuePair <string, string>)cb_userType.SelectedItem; string key = kvp.Key.ToString(); if (key == "Tourist") { this.Hide(); Tourist t = new Tourist(); t.ShowDialog(); this.Close(); } else if (key == "Restaurent Manager") { this.Hide(); Restaurent r = new Restaurent(); r.ShowDialog(); this.Close(); } else if (key == "Spot Manager") { this.Hide(); Spot s = new Spot(); s.ShowDialog(); this.Close(); } else if (key == "Tourist Guide") { this.Hide(); Guide g = new Guide(); g.ShowDialog(); this.Close(); } }