StephaneLenclud@211: using System; StephaneLenclud@211: using System.Collections.Generic; StephaneLenclud@211: using System.ComponentModel; StephaneLenclud@211: using System.Data; StephaneLenclud@211: using System.Drawing; StephaneLenclud@211: using System.Linq; StephaneLenclud@211: using System.Text; StephaneLenclud@211: using System.Threading.Tasks; StephaneLenclud@211: using System.Windows.Forms; StephaneLenclud@211: using SharpLib.Ear; StephaneLenclud@211: StephaneLenclud@211: namespace SharpDisplayManager StephaneLenclud@211: { StephaneLenclud@211: public partial class FormEditAction : Form StephaneLenclud@211: { StephaneLenclud@211: public SharpLib.Ear.Action Action = null; StephaneLenclud@211: StephaneLenclud@211: public FormEditAction() StephaneLenclud@211: { StephaneLenclud@211: InitializeComponent(); StephaneLenclud@211: } StephaneLenclud@211: StephaneLenclud@211: private void FormEditAction_Load(object sender, EventArgs e) StephaneLenclud@211: { StephaneLenclud@211: //Populate registered actions Stephane@212: foreach (string key in ManagerEventAction.Current.ActionTypes.Keys) StephaneLenclud@211: { Stephane@212: Type t = ManagerEventAction.Current.ActionTypes[key]; StephaneLenclud@211: comboBoxActionType.Items.Add(t); StephaneLenclud@211: } StephaneLenclud@211: StephaneLenclud@211: comboBoxActionType.SelectedIndex = 0; StephaneLenclud@211: } StephaneLenclud@211: StephaneLenclud@211: private void buttonOk_Click(object sender, EventArgs e) StephaneLenclud@211: { StephaneLenclud@211: Action = (SharpLib.Ear.Action)Activator.CreateInstance((Type)comboBoxActionType.SelectedItem); StephaneLenclud@211: } StephaneLenclud@211: StephaneLenclud@211: private void FormEditAction_Validating(object sender, CancelEventArgs e) StephaneLenclud@211: { StephaneLenclud@211: StephaneLenclud@211: } StephaneLenclud@211: } StephaneLenclud@211: }