示例#1
0
        private static void SetupWindows()
        {
            WindowNavigationService wns = new WindowNavigationService();

            wns.Add(ViewServices.WindowNames.PaymentWindow, new Views.PaymentWindow());
            wns.Add(ViewServices.WindowNames.BookSearchWindow, new Views.SearchBooksView());
            wns.Add(ViewServices.WindowNames.TransactionWindow, new Views.TransactionWindow());
            SimpleIoc.Default.Register <IWindowNavigationService>(() => wns);
        }
        private static void SetupWindows()
        {
            WindowNavigationService wns = new WindowNavigationService();

            wns.Add(WindowNames.MainWindow, new MainWindow());
            SimpleIoc.Default.Register <IWindowNavigationService>(() => wns);
        }