private void OnGUI() { GUILayout.Label(Key); GUILayout.Label(ID.ToString()); if (GUILayout.Button("MethodA")) { MethodA(); } if (GUILayout.Button("MethodB")) { MethodB(Key); } if (GUILayout.Button("MethodC")) { MethodC(Key, ID); } if (GUILayout.Button("Event")) { EventA.Invoke(); } if (GUILayout.Button("Release")) { MVVMEngine.Instance.Dispose(); } }
void signal(char c) { switch (c) { case '0': break; case '1': Debug.Log("got called?"); Event1.Invoke(); break; case '2': Event2.Invoke(); break; case '3': Event3.Invoke(); break; case '4': Event4.Invoke(); break; case '5': Event5.Invoke(); break; case '6': Event6.Invoke(); break; case '7': Event7.Invoke(); break; case '8': Event8.Invoke(); break; case '9': Event9.Invoke(); break; case 'a': EventA.Invoke(); break; case 'b': EventB.Invoke(); break; case 'c': EventC.Invoke(); break; case 'd': EventD.Invoke(); break; case 'e': EventE.Invoke(); break; case 'f': EventF.Invoke(); break; case 'g': EventG.Invoke(); break; case 'h': EventH.Invoke(); break; case 'i': EventI.Invoke(); break; case 'j': EventJ.Invoke(); break; case 'k': EventK.Invoke(); break; } }
private void ClearCompilerWarnings() { EventA.Invoke(this, new EventArgs()); }
public bool SomeWcfOperation(int value) { EventA?.Invoke(this, new CustomEventArgs(value)); return(true); }