Example #1
0
        private void menuMemberInfo_Click(object sender, EventArgs e)
        {
            //等会儿改成单例
            FormMemberInfo formMemberInfo = FormMemberInfo.Create();

            formMemberInfo.Show();
        }
Example #2
0
        private void VipMenu_Click(object sender, EventArgs e)
        {
            //FormMemberInfo info = FormMemberInfo.Create();
            //info.Show();
            //info.Focus();

            TabPage tabPage = new TabPage();

            tabPage.Text = "Vip管理";
            tabPage.Name = "page2";

            if (!IsInto(tabPage.Name))
            {
                FormMemberInfo page = new FormMemberInfo();
                //注册关闭事件
                page.close          += Close;
                page.Name            = "formpage";
                page.TopLevel        = false;
                page.FormBorderStyle = FormBorderStyle.None;
                tabPage.Controls.Add(page);
                page.Show();
                tabControl1.TabPages.Add(tabPage);
            }
            //选中该选项卡
            this.tabControl1.SelectedTab = tabControl1.TabPages["page2"];
        }
Example #3
0
 public static FormMemberInfo Create()
 {
     if (_formMemberInfo == null)
     {
         _formMemberInfo = new FormMemberInfo();
     }
     return(_formMemberInfo);
 }
Example #4
0
        private void menuMemberInfo_Click(object sender, EventArgs e)
        {
            FormMemberInfo formMemberInfo = new FormMemberInfo();

            formMemberInfo.Show();
        }
Example #5
0
 private void FormMemberInfo_FormClosing(object sender, FormClosingEventArgs e)
 {
     _formMemberInfo = null;
 }