Ejemplo n.º 1
0
        private void MenuItemNewAbapDoc_Click(object sender, EventArgs e)
        {
            //var abapDoc = CreateAbapDoc();
            //if (dockPanel.DocumentStyle == DocumentStyle.SystemMdi)
            //{
            //    abapDoc.MdiParent = this;
            //    abapDoc.Show();
            //}
            //else
            //    abapDoc.Show(dockPanel);

            m_FormCodeEditor = new FormCodeEditor();
            m_FormCodeEditor.Show(dockPanel);
        }
Ejemplo n.º 2
0
        private void buttonEditCode_Click(object sender, EventArgs e)
        {
            if (Section.CustomCodeEvent == null)
            {
                Section.CustomCodeEvent           = new TrainProgramEvent(TrainProgramEvent.EventType.User_Triggerd);
                Section.CustomCodeEvent.CodeToRun = @"
Hub trainInSection = Hub[%CurrentTrainIndex%];
trainInSection.SetMotorSpeed(trainInSection.TrainMotorPort, 70);
				"                ;
            }

            FormCodeEditor codeForm = new FormCodeEditor(Section.CustomCodeEvent, Project, false);

            codeForm.ShowDialog();
        }