コード例 #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>();
 }
コード例 #8
0
 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>();
 }