Esempio n. 1
0
        private void tsmiSetting_Click(object sender, EventArgs e)
        {
            TreeNode selectNode = tvSectionEdit.SelectedNode;

            if (selectNode != null && selectNode.Level == 1)
            {
                FormSettingSectionTrack newForm = new FormSettingSectionTrack(this.filePathOper, tvSectionEdit.SelectedNode.Name);
                newForm.ShowDialog();
                makeNewSVG();
            }
        }
Esempio n. 2
0
 private void tsmiTrackSetting_Click(object sender, EventArgs e)
 {
     if (sIDcurrentTrack.StartsWith("idTrack"))
     {
         FormSettingSectionTrack newForm = new FormSettingSectionTrack(this.filePathTemple, sIDcurrentTrack);
         if (newForm.ShowDialog() == DialogResult.OK)
         {
             userFunctionPointer.DynamicInvoke(1);
         }
     }
 }
Esempio n. 3
0
 private void tsmiTrackSet_Click(object sender, EventArgs e)
 {
     if (wellPanelMain.sIDcurrentTrack.StartsWith("idTrack"))
     {
         FormSettingSectionTrack newForm = new FormSettingSectionTrack(this.filePathOper, wellPanelMain.sIDcurrentTrack);
         if (newForm.ShowDialog() == DialogResult.OK)
         {
             makeNewSVG();
         }
     }
 }
Esempio n. 4
0
        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);
        }