public AddSubjectsPageVM(ResponseHandler ResponseEvent, PageEnabledHandler PageEnabledEvent, LoadingStateHandler LoadingStateEvent, CompleteStateHanlder CompleteStateEvent) : base(ResponseEvent, PageEnabledEvent, LoadingStateEvent, CompleteStateEvent) { SubjectsTablePage = new SubjectsTablePage(InvokeResponseEvent, InvokePageEnabledEvent, InvokeLoadingStateEvent, InvokeCompleteStateEvent); Cancel = new MvxCommand(() => { using (db = new DBWorker()) { db?.Disconnect(); } InvokeCompleteStateEvent("cancel"); }); Next = new MvxCommand(() => InvokeCompleteStateEvent("next")); }
public SubjectsTabPageVM(ResponseHandler ResponseEvent, PageEnabledHandler PageEnabledEvent, LoadingStateHandler LoadingStateEvent, CompleteStateHanlder CompleteStateEvent) : base(ResponseEvent, PageEnabledEvent, LoadingStateEvent, CompleteStateEvent) { SubjectsTablePage = new SubjectsTablePage(InvokeResponseEvent, InvokePageEnabledEvent, InvokeLoadingStateEvent, InvokeCompleteStateEvent); }