Exemplo n.º 1
0
        private void btnAddMember_Click(object sender, EventArgs e)
        {
            FrmAddMember frm = new FrmAddMember();

            frm.TopLevel   = false;
            frm.AutoScroll = true;
            this.Controls.Add(frm);
            frm.FormBorderStyle = FormBorderStyle.None;
            frm.Show();
            this.txtName.Clear();
            this.txtPassword.Clear();
        }
Exemplo n.º 2
0
        //會員資料
        private void btnMember_Click(object sender, EventArgs e)
        {
            memberBLL = new MemberBLL(); // refresh

            //恩旗
            memberDetail = memberBLL.GetMember(UserStatic.UserID);

            //this.Controls.Clear();
            FrmAddMember frm = new FrmAddMember();

            frm.TopLevel   = false;
            frm.isUpdate   = true;
            frm.detail     = memberDetail;
            frm.AutoScroll = true;
            this.splitContainer2.Panel2.Controls.Add(frm);
            frm.FormBorderStyle = FormBorderStyle.None;
            frm.Dock            = DockStyle.Fill;
            frm.Show();
        }
 public FrmAddWorkoutPreferences(FrmAddMember frmAddMember)
 {
     this.frmAddMember = frmAddMember;
     InitializeComponent();
 }