private void tsmiTrackLogSet_Click(object sender, EventArgs e) { if (sIDcurrentTrack.StartsWith("idLog")) { FormSettingSectionLog setLogCurve = new FormSettingSectionLog(filePathTemple, sIDcurrentTrack); if (setLogCurve.ShowDialog() == DialogResult.OK) { userFunctionPointer.DynamicInvoke(1); } } }
void logCurveSet() { if (sIDcurrentItem.StartsWith("idLog")) { FormSettingSectionLog setLogCurve = new FormSettingSectionLog(filePathTemple, sIDcurrentItem); if (setLogCurve.ShowDialog() == DialogResult.OK) { userFunctionPointer.DynamicInvoke(1); } } }
void logCurveSet() { if (this.wellPanelMain.sIDcurrentItem.StartsWith("idLog")) { FormSettingSectionLog setLogCurve = new FormSettingSectionLog(filePathOper, wellPanelMain.sIDcurrentItem); if (setLogCurve.ShowDialog() == DialogResult.OK) { makeNewSVG(); } } }
public static DialogResult setNodeProperty(TreeNode selectNode, string filePathOper) { DialogResult result = DialogResult.OK; string selectNodeID = selectNode.Name; XmlNode selectXmlNode = cXmlBase.selectNodeByID(filePathOper, selectNode.Name); if (selectNode.Level == 0) //页面设置 { FormSettingShowState wellShowSetting = new FormSettingShowState(filePathOper); result = wellShowSetting.ShowDialog(); } if (selectNode.Level == 1) //道内设置 { FormSettingSectionTrack newForm = new FormSettingSectionTrack(filePathOper, selectNode.Name); result = newForm.ShowDialog(); } if (selectNode.Level == 2) //道内属性设置 { if (selectNode.Parent.Tag.ToString() == TypeTrack.曲线道.ToString()) { FormSettingSectionLog setLogCurve = new FormSettingSectionLog(filePathOper, selectNodeID); result = setLogCurve.ShowDialog(); } if (cProjectManager.ltStrTrackTypeIntervalProperty.IndexOf(selectNode.Parent.Tag.ToString()) >= 0) { FormSettingSectionDataItemView setJSJL = new FormSettingSectionDataItemView(filePathOper, selectNodeID, selectNode.Parent.Tag.ToString()); result = setJSJL.ShowDialog(); } if (selectNode.Parent.Tag.ToString() == TypeTrack.分层.ToString()) { FormSettingSectionLayer setLayer = new FormSettingSectionLayer(filePathOper, selectNode.Parent.Name, selectNodeID); result = setLayer.ShowDialog(); } if (selectNode.Parent.Tag.ToString() == TypeTrack.文本道.ToString()) { FormSettingSectionText setText = new FormSettingSectionText(filePathOper, selectNodeID); result = setText.ShowDialog(); } } return(result); }