public LabberVMBase(ResponseHandler ResponseEvent, PageEnabledHandler PageEnabledEvent, LoadingStateHandler LoadingStateEvent, CompleteStateHanlder CompleteStateEvent) { this.ResponseEvent = ResponseEvent; this.PageEnabledEvent = PageEnabledEvent; this.LoadingStateEvent = LoadingStateEvent; this.CompleteStateEvent = CompleteStateEvent; }
//private bool _allowDirectNavigation = false; //private NavigatingCancelEventArgs _navArgs = null; //private Duration _duration = new Duration(TimeSpan.FromSeconds(0.25)); public WorkspacePage(ResponseHandler ResponseEvent, PageEnabledHandler PageEnabledEvent, LoadingStateHandler LoadingStateEvent, CompleteStateHanlder CompleteStateEvent) { InitializeComponent(); DataContext = new WorkspacePageVM(ResponseEvent, PageEnabledEvent, LoadingStateEvent, CompleteStateEvent); //NavigationCommands.BrowseBack.InputGestures.Clear(); //NavigationCommands.BrowseForward.InputGestures.Clear(); }
public AddStudentsPageVM(ResponseHandler ResponseEvent, PageEnabledHandler PageEnabledEvent, LoadingStateHandler LoadingStateEvent, CompleteStateHanlder CompleteStateEvent) : base(ResponseEvent, PageEnabledEvent, LoadingStateEvent, CompleteStateEvent) { StudentsTablePage = new StudentsTablePage(InvokeResponseEvent, InvokePageEnabledEvent, InvokeLoadingStateEvent, InvokeCompleteStateEvent); Next = new MvxCommand(NextBody); Cancel = new MvxCommand(CancelBody); }
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 StudentsTabPageVM(ResponseHandler ResponseEvent, PageEnabledHandler PageEnabledEvent, LoadingStateHandler LoadingStateEvent, CompleteStateHanlder CompleteStateEvent) : base(ResponseEvent, PageEnabledEvent, LoadingStateEvent, CompleteStateEvent) { StudentsTablePage = new StudentsTablePage(InvokeResponseEvent, InvokePageEnabledEvent, InvokeLoadingStateEvent, InvokeCompleteStateEvent); }
public UsersTabPage(ResponseHandler responseEvent, PageEnabledHandler pageEnabledEvent, LoadingStateHandler loadingStateEvent, CompleteStateHanlder completeStateEvent) { InitializeComponent(); DataContext = new UsersTabPageVM(responseEvent, pageEnabledEvent, loadingStateEvent, completeStateEvent); }
public DebtsTabPage(ResponseHandler ResponseEvent, PageEnabledHandler PageEnabledEvent, LoadingStateHandler LoadingStateEvent, CompleteStateHanlder CompleteStateEvent) { InitializeComponent(); DataContext = new DebtsTabPageVM(ResponseEvent, PageEnabledEvent, LoadingStateEvent, CompleteStateEvent); (DataContext as DebtsTabPageVM).UpdateTable += DebtsTabPage_UpdateTable; }
public JournalsTabPageVM(ResponseHandler ResponseEvent, PageEnabledHandler PageEnabledEvent, LoadingStateHandler LoadingStateEvent, CompleteStateHanlder CompleteStateEvent) : base(ResponseEvent, PageEnabledEvent, LoadingStateEvent, CompleteStateEvent) { JournalsSelector = new JournalsSelectorPage(false, InvokeResponseEvent, InvokePageEnabledEvent, InvokeLoadingStateEvent, InvokeCompleteStateEvent); (JournalsSelector.DataContext as JournalsSelectorPageVM).SelectedJournal += JournalsTabPageVM_SelectedJournal; }
public UsersTablePage(ResponseHandler ResponseEvent, PageEnabledHandler PageEnabledEvent, LoadingStateHandler LoadingStateEvent, CompleteStateHanlder CompleteStateEvent) { InitializeComponent(); DataContext = new UsersTablePageVM(ResponseEvent, PageEnabledEvent, LoadingStateEvent, CompleteStateEvent); }
public JournalTablePage(Journal journal, ResponseHandler responseEvent, PageEnabledHandler pageEnabledEvent, LoadingStateHandler loadingStateEvent, CompleteStateHanlder completeStateEvent) { InitializeComponent(); DataContext = new JournalTablePageVM(journal, responseEvent, pageEnabledEvent, loadingStateEvent, completeStateEvent); (DataContext as JournalTablePageVM).UpdateTable += JournalTablePage_UpdateHeaders; }
public JournalsSelectorPage(bool onlyOwn, ResponseHandler responseEvent, PageEnabledHandler pageEnabledEvent, LoadingStateHandler loadingStateEvent, CompleteStateHanlder completeStateEvent) { InitializeComponent(); DataContext = new JournalsSelectorPageVM(onlyOwn, responseEvent, pageEnabledEvent, loadingStateEvent, completeStateEvent); }
public JournalTableWrapperPage(Journal journal, ResponseHandler ResponseEvent, PageEnabledHandler PageEnabledEvent, LoadingStateHandler LoadingStateEvent, CompleteStateHanlder CompleteStateEvent) { InitializeComponent(); Journal = journal; DataContext = new JournalTableWrapperPageVM(journal, ResponseEvent, PageEnabledEvent, LoadingStateEvent, CompleteStateEvent); }