1.1 --- a/Server/FormMain.cs Fri Jul 29 14:33:47 2016 +0200
1.2 +++ b/Server/FormMain.cs Fri Jul 29 14:46:30 2016 +0200
1.3 @@ -2863,7 +2863,7 @@
1.4 SharpLib.Ear.Action a = CurrentAction();
1.5 if (a != null)
1.6 {
1.7 - Console.WriteLine("Action test run");
1.8 + Console.WriteLine("Action testing:");
1.9 a.Execute();
1.10 }
1.11 iTreeViewEvents.Focus();
1.12 @@ -2930,6 +2930,21 @@
1.13
1.14
1.15 /// <summary>
1.16 + ///
1.17 + /// </summary>
1.18 + /// <param name="sender"></param>
1.19 + /// <param name="e"></param>
1.20 + private void buttonEventTest_Click(object sender, EventArgs e)
1.21 + {
1.22 + Event earEvent = CurrentEvent();
1.23 + if (earEvent != null)
1.24 + {
1.25 + Console.WriteLine("Event testing:");
1.26 + earEvent.Trigger();
1.27 + }
1.28 + }
1.29 +
1.30 + /// <summary>
1.31 /// Manages events and actions buttons according to selected item in event tree.
1.32 /// </summary>
1.33 /// <param name="sender"></param>
1.34 @@ -2937,7 +2952,9 @@
1.35 private void iTreeViewEvents_AfterSelect(object sender, TreeViewEventArgs e)
1.36 {
1.37 //Enable buttons according to selected item
1.38 - buttonActionAdd.Enabled = CurrentEvent() != null;
1.39 + buttonActionAdd.Enabled =
1.40 + buttonEventTest.Enabled =
1.41 + CurrentEvent() != null;
1.42
1.43 SharpLib.Ear.Action currentAction = CurrentAction();
1.44 //If an action is selected enable the following buttons