Esempio n. 1
0
 public virtual void OnResetItems(ResetItemsEventArgs ea)
 {
     if (ResetItems != null)
         ResetItems(this, ea);
 }
Esempio n. 2
0
 internal void _View_ResetItems(IParamsView sender, ResetItemsEventArgs ea)
 {
     if (sender != null)
         ResetItems(ea.ItemNames);
 }
Esempio n. 3
0
 /// <summary>
 /// Triggers the ResetItems event.
 /// </summary>
 protected virtual void OnResetItems(IParamsView sender, ResetItemsEventArgs ea)
 {
     if (ResetItems != null)
         ResetItems(sender, ea);
 }
Esempio n. 4
0
 void _ParamsView_ResetItems(IParamsView sender, ResetItemsEventArgs ea)
 {
     OnResetItems(sender, ea);
 }
Esempio n. 5
0
        void _ParamsView_ResetItems(IParamsView sender, ResetItemsEventArgs ea)
        {
            Type type = sender.GetType();

            // push the changes to the  bag.
            if (_Bags.ContainsKey(type.FullName))
            {
                IParamBag bag = _Bags[type.FullName];
                bag.Reset(ea.ItemNames);
            }
            else
            {
                MessageBox.Show(string.Format("Bag for {0} could not be retrieved to Reset()", type.Name));
            }

            Log(string.Format("* ParamView Reset():  {0}", sender.GetType().Name));
            foreach (string name in ea.ItemNames)
            {
                Log(string.Format("    {0}", name));
            }
            LogBreak();
        }
Esempio n. 6
0
 public void ResetItems_DummyHandler(IParamsView sender, ResetItemsEventArgs ea)
 {
     ResetItems_TimesCalled++;
 }