Beispiel #1
0
        public Examples()
        {
            int x = 1;

            // Untermenü, nur Frame
            if (x == 1)
            {
                SubnavigationPage mySubnavigation = new SubnavigationPage("Seitentitel 123");

                Type pageType1 = typeof(KöTaf.WPFApplication.Views.Formletter.pFormletterAdministration);
                mySubnavigation.addSubnavigation("subpage1", pageType1);

                Type pageType2 = typeof(KöTaf.WPFApplication.Views.pWelcomeScreen);
                mySubnavigation.addSubnavigation("subpage2", pageType2);
            }

            // Untermenü mit Tabs und jeweils einem Frame
            // Jeder Frame hat eine Toolbar mit Buttons und SuchBox
            if (x == 2)
            {
                SubnavigationPage mySubnavigation = new SubnavigationPage("Seitentitel 234");
                List<SimpleTabItem> myTabList = new List<SimpleTabItem>();

                KPage p1 = new KöTaf.WPFApplication.Views.Formletter.pFormletterAdministration();
                KPage p2 = new KöTaf.WPFApplication.Views.pWelcomeScreen();

                SimpleTabItem simpleTabItem1 = new SimpleTabItem("tab1", p1);
                SimpleTabItem simpleTabItem2 = new SimpleTabItem("tab2", p2);

                myTabList.Add(simpleTabItem1);
                myTabList.Add(simpleTabItem2);

                simpleTabItem1.toolbar.addButton("Button1", myButtonFunction);
                simpleTabItem1.toolbar.addButton("Button2", myButtonFunction);
                simpleTabItem1.toolbar.addSearchPanel(mySearchFunction);

                simpleTabItem2.toolbar.addButton("Button3", myButtonFunction);
                simpleTabItem2.toolbar.addButton("Button4", myButtonFunction);
                simpleTabItem2.toolbar.addSearchPanel(mySearchFunction);

                mySubnavigation.addSubnavigation("sometabs", myTabList);
            }

            // Einfache Seite mit einem Frame
            if (x == 3)
            {
                KPage pageFormletterAdmin = new KöTaf.WPFApplication.Views.Formletter.pFormletterAdministration();
                SinglePage singlePage = new SinglePage("Formletter Admin", pageFormletterAdmin);
            }

            // Einfache Seite mit Tabs mit jeweils einem Frame
            if (x == 4)
            {
                List<SimpleTabItem> myTabList = new List<SimpleTabItem>();

                KPage p1 = new KöTaf.WPFApplication.Views.Formletter.pFormletterAdministration();
                myTabList.Add(new SimpleTabItem("tab1", p1));

                KPage p2 = new KöTaf.WPFApplication.Views.pWelcomeScreen();
                myTabList.Add(new SimpleTabItem("tab2", p2));

                SinglePage singlePage = new SinglePage(this, "Formletter Admin", myTabList);
            }
        }
Beispiel #2
0
        /// <summary>
        /// Verwaltung
        /// </summary>
        private void pbAdministration_Click(object sender, RoutedEventArgs e)
        {
            if (UserSession.userAccount.IsAdmin)
            {
                SubnavigationPage subNavPage = new SubnavigationPage(IniParser.GetSetting("APPSETTINGS", "administration"));

                Type pageType1 = typeof(KöTaf.WPFApplication.Views.Formletter.pFormletterAdministration);
                subNavPage.addSubnavigation(IniParser.GetSetting("FORMLETTER", "formletterAdmin"), pageType1);

                Type pageType2 = typeof(KöTaf.WPFApplication.Views.Restore);
                subNavPage.addSubnavigation(IniParser.GetSetting("APPSETTINGS", "restore"), pageType2);

                Type pageType3 = typeof(KöTaf.WPFApplication.Views.User.pUserManager);
                subNavPage.addSubnavigation(IniParser.GetSetting("APPSETTINGS", "userAdministration"), pageType3);

                Type pageType4 = typeof(KöTaf.WPFApplication.Views.Accounting.AccountManager.pAccountManager);
                subNavPage.addSubnavigation(IniParser.GetSetting("ACCOUNTING", "accountManagement"), pageType4);
            }
        }
Beispiel #3
0
        /// <summary>
        /// Buchhaltung
        /// </summary>
        private void pbBuchhaltung_Click(object sender, RoutedEventArgs e)
        {
            SubnavigationPage accountingSubnav = new SubnavigationPage(pbBuchhaltung.Content.ToString());

            #region QuickBooking
            Type pageType1 = typeof(KöTaf.WPFApplication.Views.Accounting.QuickBooking.pQuickBooking);
            accountingSubnav.addSubnavigation(IniParser.GetSetting("ACCOUNTING", "quickBooking"), pageType1);
            #endregion

            #region Bookings
            Type pageType2 = typeof(KöTaf.WPFApplication.Views.Accounting.Bookings.pBookings);
            accountingSubnav.addSubnavigation(IniParser.GetSetting("ACCOUNTING", "bookings"), pageType2);
            #endregion

            #region Sums
            Type pageType3 = typeof(KöTaf.WPFApplication.Views.Accounting.Sums.pSums);
            accountingSubnav.addSubnavigation(IniParser.GetSetting("ACCOUNTING", "sums"), pageType3);
            #endregion

            #region CashClosure
            Type pageType4 = typeof(pCashClosureManager);
            accountingSubnav.addSubnavigation(IniParser.GetSetting("ACCOUNTING", "cashClosure"), pageType4);
            #endregion
        }
Beispiel #4
0
        public Examples()
        {
            int x = 1;

            // Untermenü, nur Frame
            if (x == 1)
            {
                SubnavigationPage mySubnavigation = new SubnavigationPage("Seitentitel 123");

                Type pageType1 = typeof(KöTaf.WPFApplication.Views.Formletter.pFormletterAdministration);
                mySubnavigation.addSubnavigation("subpage1", pageType1);

                Type pageType2 = typeof(KöTaf.WPFApplication.Views.pWelcomeScreen);
                mySubnavigation.addSubnavigation("subpage2", pageType2);
            }


            // Untermenü mit Tabs und jeweils einem Frame
            // Jeder Frame hat eine Toolbar mit Buttons und SuchBox
            if (x == 2)
            {
                SubnavigationPage    mySubnavigation = new SubnavigationPage("Seitentitel 234");
                List <SimpleTabItem> myTabList       = new List <SimpleTabItem>();

                KPage p1 = new KöTaf.WPFApplication.Views.Formletter.pFormletterAdministration();
                KPage p2 = new KöTaf.WPFApplication.Views.pWelcomeScreen();

                SimpleTabItem simpleTabItem1 = new SimpleTabItem("tab1", p1);
                SimpleTabItem simpleTabItem2 = new SimpleTabItem("tab2", p2);

                myTabList.Add(simpleTabItem1);
                myTabList.Add(simpleTabItem2);

                simpleTabItem1.toolbar.addButton("Button1", myButtonFunction);
                simpleTabItem1.toolbar.addButton("Button2", myButtonFunction);
                simpleTabItem1.toolbar.addSearchPanel(mySearchFunction);

                simpleTabItem2.toolbar.addButton("Button3", myButtonFunction);
                simpleTabItem2.toolbar.addButton("Button4", myButtonFunction);
                simpleTabItem2.toolbar.addSearchPanel(mySearchFunction);

                mySubnavigation.addSubnavigation("sometabs", myTabList);
            }


            // Einfache Seite mit einem Frame
            if (x == 3)
            {
                KPage      pageFormletterAdmin = new KöTaf.WPFApplication.Views.Formletter.pFormletterAdministration();
                SinglePage singlePage          = new SinglePage("Formletter Admin", pageFormletterAdmin);
            }


            // Einfache Seite mit Tabs mit jeweils einem Frame
            if (x == 4)
            {
                List <SimpleTabItem> myTabList = new List <SimpleTabItem>();

                KPage p1 = new KöTaf.WPFApplication.Views.Formletter.pFormletterAdministration();
                myTabList.Add(new SimpleTabItem("tab1", p1));

                KPage p2 = new KöTaf.WPFApplication.Views.pWelcomeScreen();
                myTabList.Add(new SimpleTabItem("tab2", p2));

                SinglePage singlePage = new SinglePage(this, "Formletter Admin", myTabList);
            }
        }