Esempio n. 1
0
        private void frmSinhMaTuyChon_Load(object sender, EventArgs e)
        {
            btnTaoThuTuc.Enabled = true;
            if (ShowAll == true)
            {
                btnEntity.Enabled   = true;
                btnBaseData.Enabled = true;
                btnData.Enabled     = true;
                btnBusiness.Enabled = true;
            }
            cThongTinCSDL oThongTinCSDL = new cThongTinCSDL();

            grdTable.DataSource = oThongTinCSDL.GetTable();
        }
Esempio n. 2
0
        private void btnTaoMaToanDuAn_Click(object sender, EventArgs e)
        {
            cThongTinCSDL oThongTinCSDL = new cThongTinCSDL();

            arrTables = oThongTinCSDL.GetTableName();
            cTaoDuAn oTaoDuAn = new cTaoDuAn();

            oTaoDuAn.CreateSolution();
            oTaoDuAn.CreateEntityPrj(arrTables);
            oTaoDuAn.CreateDataPrj(arrTables);
            oTaoDuAn.CreateBusinessPrj(arrTables);
            cTaoLopEntity oTaoLopEntity = new cTaoLopEntity();

            oTaoLopEntity.TaoLopEntity();
            cTaoLopData oTaoLopData = new cTaoLopData();

            oTaoLopData.TaoLopBaseData();
            oTaoLopData.TaoLopData();
            cTaoLopBusiness oTaoLopBusiness = new cTaoLopBusiness();

            oTaoLopBusiness.TaoLopBusiness();
            MessageBox.Show("Đã tạo xong đầy đủ solution và các dự án trong thư mục bạn đã chọn!", "TRUONG VIET - GENCODE", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }