private void btnOK_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(this.txtProjectFile.Text)) { if (!string.IsNullOrEmpty(GlobalService.CurrentPrj_Name)) { GlobalService.Save(); } GlobalService.CurrentPrj_Name = Path.GetFileName(this.txtProjectFile.Text.Trim()); GlobalService.CurrentPrj_Dir = this.txtProjectFile.Text; this.DialogResult = System.Windows.Forms.DialogResult.OK; this.Close(); } }