Exemple #1
0
 public StudentsTabPageVM(ResponseHandler ResponseEvent, PageEnabledHandler PageEnabledEvent, LoadingStateHandler LoadingStateEvent, CompleteStateHanlder CompleteStateEvent)
     : base(ResponseEvent, PageEnabledEvent, LoadingStateEvent, CompleteStateEvent)
 {
     StudentsTablePage = new StudentsTablePage(InvokeResponseEvent, InvokePageEnabledEvent, InvokeLoadingStateEvent, InvokeCompleteStateEvent);
 }
 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 UsersTabPage(ResponseHandler responseEvent, PageEnabledHandler pageEnabledEvent, LoadingStateHandler loadingStateEvent, CompleteStateHanlder completeStateEvent)
 {
     InitializeComponent();
     DataContext = new UsersTabPageVM(responseEvent, pageEnabledEvent, loadingStateEvent, completeStateEvent);
 }
Exemple #4
0
 public UsersTablePage(ResponseHandler ResponseEvent, PageEnabledHandler PageEnabledEvent, LoadingStateHandler LoadingStateEvent, CompleteStateHanlder CompleteStateEvent)
 {
     InitializeComponent();
     DataContext = new UsersTablePageVM(ResponseEvent, PageEnabledEvent, LoadingStateEvent, CompleteStateEvent);
 }
Exemple #5
0
 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 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;
 }
Exemple #7
0
        //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 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"));
        }
Exemple #9
0
 public JournalsSelectorPage(bool onlyOwn, ResponseHandler responseEvent, PageEnabledHandler pageEnabledEvent, LoadingStateHandler loadingStateEvent, CompleteStateHanlder completeStateEvent)
 {
     InitializeComponent();
     DataContext = new JournalsSelectorPageVM(onlyOwn, responseEvent, pageEnabledEvent, loadingStateEvent, completeStateEvent);
 }
Exemple #10
0
        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);
        }
Exemple #11
0
 public JournalTableWrapperPage(Journal journal, ResponseHandler ResponseEvent, PageEnabledHandler PageEnabledEvent, LoadingStateHandler LoadingStateEvent, CompleteStateHanlder CompleteStateEvent)
 {
     InitializeComponent();
     Journal     = journal;
     DataContext = new JournalTableWrapperPageVM(journal, ResponseEvent, PageEnabledEvent, LoadingStateEvent, CompleteStateEvent);
 }
Exemple #12
0
 public LabberVMBase(ResponseHandler ResponseEvent, PageEnabledHandler PageEnabledEvent, LoadingStateHandler LoadingStateEvent, CompleteStateHanlder CompleteStateEvent)
 {
     this.ResponseEvent      = ResponseEvent;
     this.PageEnabledEvent   = PageEnabledEvent;
     this.LoadingStateEvent  = LoadingStateEvent;
     this.CompleteStateEvent = CompleteStateEvent;
 }