예제 #1
0
        public BiblioVM()
        {
            displayRoot.RegisterWindowType <ReaderChangeVM, ReaderChange>();

            FillReaders();

            if (Readers == null || Readers.Count == 0)
            {
                db.Readers.AddRange(Reader.FillReaders());
                db.SaveChanges();
                FillReaders();
            }
        }
예제 #2
0
 public App()
 {
     DisplayRootRegistry.RegisterWindowType <CollectionsDataViewModel, MainWindow>();
     DisplayRootRegistry.RegisterWindowType <AuthViewModel, AuthDialogWindow>();
 }
예제 #3
0
파일: App.xaml.cs 프로젝트: Yoba91/EService
 public App()
 {
     displayRootRegistry.RegisterWindowType <MainViewModel, MainWindow>();
     displayRootRegistry.RegisterWindowType <AddServiceLogViewModel, AddWindowServiceLog>();
 }
예제 #4
0
        //#1
        //MainWindowViewModel mainWindowViewModel;

        public App()
        {
            displayRootRegistry.RegisterWindowType <DialogImageEditViewModel, DialogImageEditWindow>();
        }
예제 #5
0
 public App()
 {
     displayRootRegistry.RegisterWindowType <DataMainViewModel, MainWindow>();
     displayRootRegistry.RegisterWindowType <DataUpdaterViewModel, UpdaterWindow>();
 }
예제 #6
0
파일: App.xaml.cs 프로젝트: inickzac/Csharp
        public App()
        {
            Initialization initialization = new Initialization();

            displayRootRegistry.RegisterWindowType <MainWindowViewModel, View.MainWindow>();
            displayRootRegistry.RegisterWindowType <DialogWindowViewModel, DialogWindow>();
            displayRootRegistry.RegisterWindowType <Organization, AddElements>();
            displayRootRegistry.RegisterWindowType <DocumentType, AddElements>();
            displayRootRegistry.RegisterWindowType <IssuingAuthority, AddElements>();
            displayRootRegistry.RegisterWindowType <Employee, View.AddAmployee>();
            displayRootRegistry.RegisterWindowType <Department, AddElements>();
            displayRootRegistry.RegisterWindowType <ShootingPermission, View.AddSP>();
            displayRootRegistry.RegisterWindowType <StationFacility, AddElements>();
            displayRootRegistry.RegisterWindowType <TemporarPass, View.AddTemporaryPas>();
            displayRootRegistry.RegisterWindowType <SinglePass, View.AddSinglePass>();
            displayRootRegistry.RegisterWindowType <Visitor, VisiterWindow>();
            displayRootRegistry.RegisterWindowType <DocumentPrint, View.ShootingPermissionDocument>();
        }
예제 #7
0
 public App()
 {
     // displayRootRegistry.RegisterWindowType<MainWindowVM, Views.MainWindowView>();
     displayRootRegistry.RegisterWindowType <AddVisitorVM, AddVisitorWindow>();
     displayRootRegistry.RegisterWindowType <DocumentType, OneValueV>();
     displayRootRegistry.RegisterWindowType <IssuingAuthority, OneValueV>();
     displayRootRegistry.RegisterWindowType <OneValueExtendedVM <DocumentType>, OneValueExtendedV>();
     displayRootRegistry.RegisterWindowType <OneValueExtendedVM <IssuingAuthority>, OneValueExtendedV>();
     displayRootRegistry.RegisterWindowType <DialogVM, DialogWindowV>();
     displayRootRegistry.RegisterWindowType <SinglePass, SinglePassView>();
     displayRootRegistry.RegisterWindowType <Employee, EmployeeV>();
     displayRootRegistry.RegisterWindowType <Department, OneValueV>();
     displayRootRegistry.RegisterWindowType <OneValueExtendedVM <Department>, OneValueExtendedV>();
     displayRootRegistry.RegisterWindowType <OneValueExtendedVM <Employee>, OneValueExtendedV>();
     displayRootRegistry.RegisterWindowType <TemporaryPass, TemporaryPassV>();
     displayRootRegistry.RegisterWindowType <ShootingPermission, ShootingPermisionV>();
     displayRootRegistry.RegisterWindowType <Access, AccessV>();
     displayRootRegistry.RegisterWindowType <StationFacility, OneValueV>();
     displayRootRegistry.RegisterWindowType <OneValueExtendedVM <StationFacility>, OneValueExtendedV>();
 }
 public App()
 {
     displayRootRegistry.RegisterWindowType <MainViewModel, MainWindow>();
     displayRootRegistry.RegisterWindowType <DataViewModel, DataWindow>();
     displayRootRegistry.RegisterWindowType <MessageViewModel, MessageWindow>();
 }
예제 #9
0
파일: App.xaml.cs 프로젝트: DLineAm/Task
 public App()
 {
     displayRoot.RegisterWindowType <BiblioVM, MainWindow>();
 }