private void cf_FormButtonClick(object sender, ColorFormAction e) { this.m_SimlationDisProperty = this.m_TempSimlationDisProperty; this.ChangeNodeMsg(e.CurrentSet); this.m_CurrentSetProperty = e.CurrentSet; this.DT = e.CurrentSet.DType; this.FT = e.CurrentSet.FType; this.isfirst = false; this.m_TempSimlationDisProperty.Correct(e.CurrentSet); this.m_SimGroupManager.SimlationDisProperty = this.m_SimlationDisProperty; ProjectSingleton.CurrentProject.NeedPromptSave = true; }
private bool OnFormButtonClick(object sender, ColorFormAction e) { int lineIndex = 0; if (!this.IsCurrentSetPropertyLegal(e.CurrentSet, ref lineIndex)) { MessageBox.Show(GISGlobalResourceEx.GIS_COLORBASE_HEIGHT_RULER_TIP + lineIndex.ToString() + "!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand); return false; } Cursor cursor = this.Cursor; this.Cursor = Cursors.WaitCursor; EventHandler<ColorFormAction> formButtonClick = this.FormButtonClick; if (formButtonClick != null) { formButtonClick(sender, e); } this.Cursor = cursor; return true; }