Actions persistence working.
2 using System.Collections.Generic;
3 using System.ComponentModel;
8 using System.Threading.Tasks;
9 using System.Windows.Forms;
12 namespace SharpDisplayManager
14 public partial class FormEditAction : Form
16 public SharpLib.Ear.Action Action = null;
18 public FormEditAction()
20 InitializeComponent();
23 private void FormEditAction_Load(object sender, EventArgs e)
25 //Populate registered actions
26 foreach (string key in ManagerEventAction.Current.ActionTypes.Keys)
28 Type t = ManagerEventAction.Current.ActionTypes[key];
29 comboBoxActionType.Items.Add(t);
32 comboBoxActionType.SelectedIndex = 0;
35 private void buttonOk_Click(object sender, EventArgs e)
37 Action = (SharpLib.Ear.Action)Activator.CreateInstance((Type)comboBoxActionType.SelectedItem);
40 private void FormEditAction_Validating(object sender, CancelEventArgs e)