Пример #1
0
 internal void _View_ApplyChanges(IParamsView sender, ApplyChangesEventArgs ea)
 {
     if (sender != null)
         ApplyChanges(sender.Values);
 }
Пример #2
0
 public virtual void OnApplyChanges(ApplyChangesEventArgs ea)
 {
     if (ApplyChanges != null)
         ApplyChanges(this, ea);
 }
Пример #3
0
 void _ParamsView_ApplyChanges(IParamsView sender, ApplyChangesEventArgs ea)
 {
     OnApplyChanges(sender, ea);
 }
Пример #4
0
 /// <summary>
 /// Triggers the ApplyChanges event.
 /// </summary>
 protected virtual void OnApplyChanges(IParamsView sender, ApplyChangesEventArgs ea)
 {
     if (ApplyChanges != null)
         ApplyChanges(sender, ea);
 }
Пример #5
0
        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();
        }
Пример #6
0
 public void ApplyChanges_DummyHandler(IParamsView sender, ApplyChangesEventArgs ea)
 {
     ApplyChanges_TimesCalled++;
 }
Пример #7
0
 internal void _View_ApplyChanges(IOptionsView sender, ApplyChangesEventArgs ea)
 {
     if (sender != null)
         ApplyChanges(sender.Items);
 }