/// <summary> /// OnClick of the Back Button /// Call the <see cref="mWController"/> to display the Start GUI /// If <see cref="isEditing"/> was set, clear all input fields /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void backBtn_Click(object sender, EventArgs e) { mWController.ChangeGui(MWController.MWGUIType.Start); if (isEditing) { clear(); } }
/// <summary> /// The <see cref="StartCommand"/> s execution Action. The <see cref="PluginActivated"/> /// event is raised and the <see cref="IsActive"/> Property is set to true. /// </summary> /// <param name="parameter">unused</param> private void StartCommandExecute(object parameter) { this.IsActive = true; // create the new PlugInUI and add it to the forms host mWController.ChangeGui(MWController.MWGUIType.DeviceDescription); PluginActivated?.Invoke(this, EventArgs.Empty); }
private void createDeviceBtn_Click(object sender, EventArgs e) { mWController.ChangeGui(MWController.MWGUIType.CreateDevice); }