public DocumentManagerPP()
 {
     InitializeComponent();
     documentManagerViewModel = new DocumentManagerViewModel();
     documentManagerViewModel.GroupID =2;
     this.DataContext = documentManagerViewModel;
 }
        public DocumentManager()
        {
            InitializeComponent();
            //App app = Application.Current as App;
            documentManagerViewModel = new DocumentManagerViewModel();
            documentManagerViewModel.GroupID = 0;
            this.DataContext = documentManagerViewModel;

                //app.DocumentManagerViewModel;
        }
示例#3
0
        public App()
        {
            LogonViewModel = new LogonViewModel();
            MainPageViewModel = new MainPageViewModel();
            LogonUserViewModel = new LogonUserViewModel();
            UserManagerViewModel = new UserManagerViewModel();
            FileTypeManagerViewModel = new FileTypeManagerViewModel();
            TaxPayerTypeManagerViewModel = new TaxPayerTypeManagerViewModel();
            TaxPayerManagerViewModel = new TaxPayerManagerViewModel();
            DocumentManagerViewModel = new DocumentManagerViewModel();

            this.Startup += this.Application_Startup;
            this.UnhandledException += this.Application_UnhandledException;
            this.CheckAndDownloadUpdateCompleted +=new CheckAndDownloadUpdateCompletedEventHandler(App_CheckAndDownloadUpdateCompleted);
            InitializeComponent();
            WebContext webContext = new WebContext();
            webContext.Authentication = new FormsAuthentication();
            this.ApplicationLifetimeObjects.Add(webContext);
        }