コード例 #1
0
ファイル: fMain.cs プロジェクト: DangCongVinh/PTPM
        private void barbtnHome_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Account LoginAccount = this.LoginAccount;
            var     f            = new fQuanLyKaiOKen(LoginAccount);

            if (ExistForm(f) == true)
            {
                return;
            }
            f.MdiParent = this;
            f.Show();
        }
コード例 #2
0
ファイル: fMain.cs プロジェクト: DangCongVinh/PTPM
        public fMain(Account acc)
        {
            InitializeComponent();
            DateTime now = DateTime.Now;

            lblTime.Text = now.ToString();

            this.LoginAccount = acc;

            Account LoginAccount = this.LoginAccount;
            var     f            = new fQuanLyKaiOKen(LoginAccount);

            if (ExistForm(f) == true)
            {
                return;
            }
            f.MdiParent = this;
            f.Show();
        }