private void Dispose(bool disposing) { if (!this.disposed) { if (tmp_EditForm != null) { tmp_EditForm.Dispose(); tmp_EditForm = null; } if (tmp_ConnKeys != null) { tmp_ConnKeys.Dispose(); tmp_ConnKeys = null; } } disposed = true; }
public System.Windows.Forms.DialogResult ShowEditForm() { System.Windows.Forms.DialogResult oRET = System.Windows.Forms.DialogResult.Cancel; try { this.EditForm.Initialize(); oRET = this.EditForm.ShowDialog(); if (oRET == System.Windows.Forms.DialogResult.OK) { this.ItemChanged(this); } } catch (Exception ex) { } finally { this.EditForm.Dispose(); tmp_EditForm = null; } return(oRET); }