Example #1
0
 public LabberVMBase(ResponseHandler ResponseEvent, PageEnabledHandler PageEnabledEvent, LoadingStateHandler LoadingStateEvent, CompleteStateHanlder CompleteStateEvent)
 {
     this.ResponseEvent      = ResponseEvent;
     this.PageEnabledEvent   = PageEnabledEvent;
     this.LoadingStateEvent  = LoadingStateEvent;
     this.CompleteStateEvent = CompleteStateEvent;
 }
Example #2
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();
        }
Example #3
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);
        }
        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"));
        }
Example #5
0
 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;
 }
Example #8
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;
 }
Example #9
0
 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;
 }
Example #11
0
 public JournalsSelectorPage(bool onlyOwn, ResponseHandler responseEvent, PageEnabledHandler pageEnabledEvent, LoadingStateHandler loadingStateEvent, CompleteStateHanlder completeStateEvent)
 {
     InitializeComponent();
     DataContext = new JournalsSelectorPageVM(onlyOwn, responseEvent, pageEnabledEvent, loadingStateEvent, completeStateEvent);
 }
Example #12
0
 public JournalTableWrapperPage(Journal journal, ResponseHandler ResponseEvent, PageEnabledHandler PageEnabledEvent, LoadingStateHandler LoadingStateEvent, CompleteStateHanlder CompleteStateEvent)
 {
     InitializeComponent();
     Journal     = journal;
     DataContext = new JournalTableWrapperPageVM(journal, ResponseEvent, PageEnabledEvent, LoadingStateEvent, CompleteStateEvent);
 }