private void SomethingEventHandler()     //function that calls the new form and hides this one
    {
        //Give the construction this (the instance of the form) in parameter
        ControllerForm newControllerForm = new ControllerForm(this);

        newControllerForm.Show();
        this.Hide();
    }
Ejemplo n.º 2
0
        public static void Inject()
        {
            AppDomain.CurrentDomain.UnhandledException += OnUnhandledException;
            var inspectorWinow = new ControllerForm {
                Owner = Application.OpenForms[0]
            };

            inspectorWinow.Show();
        }
Ejemplo n.º 3
0
        private void rtbOneLineGCode_KeyDown(object sender, KeyEventArgs e)
        {
            switch (e.KeyValue)
            {
            case (int)Keys.F12:
            {
                this.rtbOneLineGCode.Text += (string)ControllerForm.ShowModalForm_ReturnValue(new AppendGCode_ToolForm());
                break;
            }

            case (int)Keys.Enter:
            {
                this.service.SendMessage(this.rtbOneLineGCode.Text);
                break;
            }
            }
        }
Ejemplo n.º 4
0
 private void rbeConfigureGRBL_Click(object sender, EventArgs e)
 {
     ControllerForm.ShowModalForm(new ConfigureGrbl());
 }
Ejemplo n.º 5
0
 private void rbeScheduler_Click(object sender, EventArgs e)
 {
     ControllerForm.ShowModalForm(new Scheduler_ToolForm());
 }
Ejemplo n.º 6
0
 private void rbeSystemSettings_Click(object sender, EventArgs e)
 {
     ControllerForm.ShowModalForm(new SystemSettingsForm());
 }
Ejemplo n.º 7
0
 private void rbeFindAndReplace_Click(object sender, EventArgs e)
 {
     ControllerForm.ShowModalForm(new FindAndReplace());
 }
Ejemplo n.º 8
0
 private void rbeFindButton_Click(object sender, EventArgs e)
 {
     ControllerForm.ShowModalForm(new Find());
 }
Ejemplo n.º 9
0
 private void rbeComPorts_Click(object sender, EventArgs e)
 {
     ControllerForm.ShowModalForm(new ComConnectionsForm(this.service));
 }
Ejemplo n.º 10
0
 private void InitializeDataBase()
 {
     contollerID = new ControllerForm();
 }