protected void OnChange(MessageEventArgs e) { if (Change != null) Change(this, e); }
void Model_Change(object sender, MessageEventArgs e) { Tools.Message msg = e.Message; Update(msg); }
/// <summary> /// Création d'un message /// </summary> /// <param name="change"> /// Type de message /// </param> /// <param name="infos"> /// Arguments du message /// </param> private void CreateMessage(ChangeType change, string[] infos) { Stl.Tme.Components.Tools.Message msg = new Stl.Tme.Components.Tools.Message(this, change, infos); MessageEventArgs args = new MessageEventArgs(msg); Controller.Receive(msg); }
private void Model_Change(object sender, MessageEventArgs e) { Update(e.Message); }