Esempio n. 1
0
        //添加
        private void ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Account     accout = new Account();
            FormAccount frm    = new FormAccount(accout);

            if (frm.ShowDialog(this) == DialogResult.OK)
            {
                FormMain.C_Info_AddAccount(accout);
            }
        }
Esempio n. 2
0
        //修改
        private void ToolStripMenuItem2_Click(object sender, EventArgs e)
        {
            Account accout = contextMenuStrip1.Tag as Account;

            if (accout.Id == FormMain.user.Id)
            {
                MessageBox.Show(this, "请到用户信息修改您的资料!");
                return;
            }
            Account     accout1 = new Account(accout);
            FormAccount frm     = new FormAccount(accout1);

            if (frm.ShowDialog(this) == DialogResult.OK)
            {
                FormMain.C_Info_ModifyAccount(accout1);
            }
        }
Esempio n. 3
0
 //�޸�
 private void ToolStripMenuItem2_Click(object sender, EventArgs e)
 {
     Account accout = contextMenuStrip1.Tag as Account;
     if(accout.Id == FormMain.user.Id)
     {
         MessageBox.Show(this, "�뵽�û���Ϣ�޸���������!");
         return;
     }
     Account accout1 = new Account(accout);
     FormAccount frm = new FormAccount(accout1);
     if(frm.ShowDialog(this) == DialogResult.OK)
         FormMain.C_Info_ModifyAccount(accout1);
 }
Esempio n. 4
0
 //���
 private void ToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     Account accout = new Account();
     FormAccount frm = new FormAccount(accout);
     if(frm.ShowDialog(this) == DialogResult.OK)
         FormMain.C_Info_AddAccount(accout);
 }