コード例 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
            userView user = new userView();

            user.ShowDialog();
        }
コード例 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
            //chargeCost.Text = Owner.ToString();
            userView user = new userView();

            user.ShowDialog();
        }
コード例 #3
0
ファイル: Eve.cs プロジェクト: jinhu94/NeoEvePlus
        private void button1_Click(object sender, EventArgs e)
        {
            string userName = textBox1.Text;
            string passWord = textBox2.Text;

            //if(comboBox1.SelectedItem!= null)
            //{ }
            //    string accountType = comboBox1.SelectedItem.ToString();

            if (userName == "roger" && passWord == "roger" && comboBox1.SelectedItem != null)
            {
                string accountType = comboBox1.SelectedItem.ToString();

                this.Hide();
                //if(accountType == "Tenant Driver")
                //{
                //    userView user = new userView();
                //    user.ShowDialog();
                //}

                switch (accountType)
                {
                case "Tenant Driver":

                    defDriverContract driverContract = new defDriverContract();
                    //userView user = new userView();
                    driverContract.ShowDialog();
                    break;

                case "Private Charger Opeartor":
                    userView user1 = new userView();
                    user1.ShowDialog();
                    break;

                case "Local Energy ProviderTenant Driver":
                    userView user2 = new userView();
                    user2.ShowDialog();
                    break;

                case "EV Fleet":
                    userView user3 = new userView();
                    user3.ShowDialog();
                    break;
                }

                this.Close();
            }
        }