private void LoaderTriggered(LoaderEvent obj) { if (obj.ViewState == ViewState.Show) { OnShowView(); } else { OnHideView(); } }
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; }