Example #1
0
 // Hàm khởi tạo đầu tiên
 void Initialize()
 {
     _project1                  = new Project.fOpen();
     _project1.Tag              = "Open";
     _project1.SelectedProject += frm_SelectedProject;
     lstForm.Add(_project1);
 }
Example #2
0
        // *************************************************************************************
        // *************************************************************************************
        // *************************************************************************************

        #region MenuItem Project ===========================================
        private void tsmenuItemProjectOpen_Click(object sender, EventArgs e)
        {
            if (IsExitsForm("Open"))
            {
                return;
            }
            Project.fOpen frm = new Project.fOpen();
            frm.SelectedProject += frm_SelectedProject;
            frm.Tag              = "Open";
            ShowForm(frm, "Open");
        }
Example #3
0
        private void FMainWindow_CreatedNew(object sender, EventArgs e)
        {
            if (IsExitsForm("Open"))
            {
                ClearFormChildrent();
            }


            // Dùng để Khi tạo xong thì load lại vào form mở project
            lstForm[0].Close();
            lstForm.Clear();

            Project.fOpen _project2 = new Project.fOpen();
            lstForm.Add(_project2);
            _project2.SelectedProject += frm_SelectedProject;
            ShowForm(lstForm[0], "Open");
        }