예제 #1
0
        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();
            }
        }