private void StartExampleProject() { //Open project Project.CurrentProject.Open("BAS", "SYSTEM", "/XXXXXX"); MDBSetup setUp = MDBSetup.CreateMDBSetup("/CTBATEST"); MDB.CurrentMDB.Open(setUp); }
private void treeProject_DoubleClick(object sender, EventArgs e) { if (treeProject.SelectedNode.Level == 1) { Project curproject = Project.CurrentProject; if (DialogResult.Yes == MessageBox.Show("선택한 프로젝트의 MDB로 전환하시겠습니까??", "Project전환기능", MessageBoxButtons.YesNo)) { splashScreenManager1.ShowWaitForm(); try { project = treeProject.SelectedNode.Parent.Name; string mdbname = treeProject.SelectedNode.Name.Split(' ')[0]; curproject.Open(project, txtID.Text, txtPW.Text); if (curproject.IsLoggedIn()) { MDB mdb = Project.OpenMDB(MDBSetup.CreateMDBSetup(mdbname)); } else { MessageBox.Show("해당계정으로 로그인할수 없습니다."); } //Title Bar 변경. WindowManager.Instance.MainForm.Text = string.Format("[Project-{0}, MDB-{1}]AM Outfitting ", project, mdbname); splashScreenManager1.CloseWaitForm(); MessageBox.Show("프로젝트/MDB변경이 완료되었습니다."); }catch (Exception ee) { splashScreenManager1.CloseWaitForm(); MessageBox.Show("해당 프로젝트의 MDB설정 오류로 인해서 MDB를 변경할수없습니다."); } //curproject.Open("2531VR", "SYSTEM", "XXXXXX"); //MDB mdb = Project.OpenMDB(MDBSetup.CreateMDBSetup("/HULL")); } else { } } }