コード例 #1
0
        private void Login_Load(object sender, EventArgs e)
        {
            try
            {
                delegatecreatedll createdll = new delegatecreatedll(CreateWebserviceDll);
                iasyncresult = createdll.BeginInvoke(null, null);

                if (!Directory.Exists(Application.StartupPath + @"\Database"))
                {
                    Directory.CreateDirectory(Application.StartupPath + @"\Database");
                }
                if (File.Exists(Application.StartupPath + @"\Database\dbtemp.mdb"))
                {
                    File.Delete(Application.StartupPath + @"\Database\dbtemp.mdb");
                }
                FrmBLL.CreateAccessDb CDB = new FrmBLL.CreateAccessDb();
                CDB._CreateMDB();
                CDB._CreateWoSnrule();
                CDB.CreateBomData();
                CDB.CreateKpDetalt();
                CDB.CreateSmtSoftKpnumber();
                CDB.CreateTargetPlan();
                CDB.CreatetProduct();
                CDB.CreatetWorkOrderInfo();
                CDB.CreatetLineInfo();
                CDB.CreatetCraftInfo();
                CDB.CreatetStationRec();
                CDB.CreatetErrorCode();
                CDB.CreatetReasonCode();
                CDB.CreatetRepair();
                CDB.CloseDB();
            }
            catch (Exception ex)
            {
                MessageBoxEx.Show(ex.Message);
            }
        }
コード例 #2
0
        private void Login_Load(object sender, EventArgs e)
        {
            delegatecreatedll createdll = new delegatecreatedll(CreateWebserviceDll);

            iasyncresult = createdll.BeginInvoke(null, null);
        }