Beispiel #1
0
 public Withdraw(string usernamefrommf2, int accountfrommf2, MainFrame2 form2)
 {
     InitializeComponent();
     acwithdraw.Username  = usernamefrommf2;
     acwithdraw.Accid     = accountfrommf2;
     this.button1.Click  += new EventHandler(button_Click);
     this.button2.Click  += new EventHandler(button_Click);
     this.button3.Click  += new EventHandler(button_Click);
     this.button4.Click  += new EventHandler(button_Click);
     this.button5.Click  += new EventHandler(button_Click);
     this.button6.Click  += new EventHandler(button_Click);
     this.button7.Click  += new EventHandler(button_Click);
     this.button8.Click  += new EventHandler(button_Click);
     this.button9.Click  += new EventHandler(button_Click);
     this.button10.Click += new EventHandler(button_Click);
     this.button11.Click += new EventHandler(button_Click);
     _mainform2           = form2;
 }
Beispiel #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            DialogResult r1 = MessageBox.Show("是否选择账号" + selectedaccount + "进行业务办理操作", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (r1.ToString() == "Yes")
            {
                Account accountfrommf1 = new Account();
                accountfrommf1.Accid    = selectedaccount;
                accountfrommf1.Username = this.u1.Username;
                MainFrame2 m2 = new MainFrame2(accountfrommf1, this);
                this.Hide();
                m2.Show();
            }
            else
            {
                return;
            }
            this.Visible = false;
        }