internal void _View_ApplyChanges(IParamsView sender, ApplyChangesEventArgs ea) { if (sender != null) ApplyChanges(sender.Values); }
public virtual void OnApplyChanges(ApplyChangesEventArgs ea) { if (ApplyChanges != null) ApplyChanges(this, ea); }
void _ParamsView_ApplyChanges(IParamsView sender, ApplyChangesEventArgs ea) { OnApplyChanges(sender, ea); }
/// <summary> /// Triggers the ApplyChanges event. /// </summary> protected virtual void OnApplyChanges(IParamsView sender, ApplyChangesEventArgs ea) { if (ApplyChanges != null) ApplyChanges(sender, ea); }
void _ParamsView_ApplyChanges(IParamsView sender, ApplyChangesEventArgs ea) { Type type = sender.GetType(); // push the changes to the bag. if (_Bags.ContainsKey(type.FullName)) { IParamBag bag = _Bags[type.FullName]; bag.ApplyChanges(ea.Changes); } else { MessageBox.Show(string.Format("Bag for {0} could not be retrieved to ApplyChanges()", type.Name)); } Log(string.Format("* ParamView Apply(): {0}", sender.GetType().Name)); foreach (KeyValuePair<string, object> kvp in ea.Changes) { Log(string.Format(" {0}: {1}", kvp.Key, (kvp.Value ?? "null"))); } LogBreak(); }
public void ApplyChanges_DummyHandler(IParamsView sender, ApplyChangesEventArgs ea) { ApplyChanges_TimesCalled++; }
internal void _View_ApplyChanges(IOptionsView sender, ApplyChangesEventArgs ea) { if (sender != null) ApplyChanges(sender.Items); }