Example #1
0
 private void LoaderTriggered(LoaderEvent obj)
 {
     if (obj.ViewState == ViewState.Show)
     {
         OnShowView();
     }
     else
     {
         OnHideView();
     }
 }
Example #2
0
 public FilerController(IForm form, ILoader loader, ISaver saver)
 {
     Form   = form;
     Saver  = saver;
     Loader = loader;
     // Load Event
     LoadControlEvent = new LoaderEvent(Load_Control);
     Form.LoadEvent  += LoadControlEvent;
     // Save Event
     SaveControlEvent = new SaverEvent(Save_Control);
     Form.SaveEvent  += SaveControlEvent;
 }