Ejemplo n.º 1
0
        /// <summary>
        /// Button zum hinzufügen eines neuen Kunden, laden der jeweiligen Tabseiten und festlegen des ToolbarContents
        ///
        /// Author: Antonios Fesenmeier
        /// </summary>
        /// <param name="Button"></param>
        private void pbNewClient_Click(Button Button)
        {
            /*  var keyValueList = ClientDataGrid.ToKeyValueList();
             * KöTaf.Utils.Printer.CSVExporter csv = new Utils.Printer.CSVExporter(keyValueList);
             * var header = csv.GetHeader();
             * var content = csv.GetData();
             * var csvFull = csv.GetCsv();
             * csv.Write();
             */


            // Adding a new tab with the according page shown under this tab
            KPage         person    = new KöTaf.WPFApplication.Views.Client.pNewClientPerson();
            SimpleTabItem tabPerson = new SimpleTabItem(IniParser.GetSetting("CLIENT", "personalData"), person);

            this._myTabList.Add(tabPerson);

            KPage         partnerChild    = new KöTaf.WPFApplication.Views.Client.pNewClientPartnerChild();
            SimpleTabItem tabPartnerChild = new SimpleTabItem(IniParser.GetSetting("CLIENT", "partnerAndChildren"), partnerChild);

            this._myTabList.Add(tabPartnerChild);

            KPage         revenues    = new KöTaf.WPFApplication.Views.Client.pNewClientRevenues();
            SimpleTabItem tabRevenues = new SimpleTabItem(IniParser.GetSetting("CLIENT", "revenue"), revenues);

            this._myTabList.Add(tabRevenues);

            tabPerson.toolbar.addButton(IniParser.GetSetting("BUTTONS", "cancel"), pbAbort_Click);
            tabPerson.toolbar.addButton(IniParser.GetSetting("BUTTONS", "back"), pbBack_Click);
            tabPerson.toolbar.addButton(IniParser.GetSetting("BUTTONS", "next"), pbNext_Click);
            tabPerson.toolbar.addButton(IniParser.GetSetting("BUTTONS", "save"), pbSave_Click);

            tabPartnerChild.toolbar.addButton(IniParser.GetSetting("BUTTONS", "cancel"), pbAbort_Click);
            tabPartnerChild.toolbar.addButton(IniParser.GetSetting("BUTTONS", "back"), pbBack_Click);
            tabPartnerChild.toolbar.addButton(IniParser.GetSetting("BUTTONS", "next"), pbNext_Click);
            tabPartnerChild.toolbar.addButton(IniParser.GetSetting("BUTTONS", "save"), pbSave_Click);

            tabRevenues.toolbar.addButton(IniParser.GetSetting("BUTTONS", "cancel"), pbAbort_Click);
            tabRevenues.toolbar.addButton(IniParser.GetSetting("BUTTONS", "back"), pbBack_Click);
            tabRevenues.toolbar.addButton(IniParser.GetSetting("BUTTONS", "next"), pbNext_Click);
            tabRevenues.toolbar.addButton(IniParser.GetSetting("BUTTONS", "save"), pbSave_Click);

            SinglePage singlePage = new SinglePage(this, IniParser.GetSetting("CLIENT", "createNewClient"), this._myTabList);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Button zum hinzufügen eines neuen Kunden, laden der jeweiligen Tabseiten und festlegen des ToolbarContents
        /// 
        /// Author: Antonios Fesenmeier
        /// </summary>
        /// <param name="Button"></param>
        private void pbNewClient_Click(Button Button)
        {
            /*  var keyValueList = ClientDataGrid.ToKeyValueList();
              KöTaf.Utils.Printer.CSVExporter csv = new Utils.Printer.CSVExporter(keyValueList);
              var header = csv.GetHeader();
              var content = csv.GetData();
              var csvFull = csv.GetCsv();
              csv.Write();
              */

            // Adding a new tab with the according page shown under this tab
            KPage person = new KöTaf.WPFApplication.Views.Client.pNewClientPerson();
            SimpleTabItem tabPerson = new SimpleTabItem(IniParser.GetSetting("CLIENT", "personalData"), person);
            this._myTabList.Add(tabPerson);

            KPage partnerChild = new KöTaf.WPFApplication.Views.Client.pNewClientPartnerChild();
            SimpleTabItem tabPartnerChild = new SimpleTabItem(IniParser.GetSetting("CLIENT", "partnerAndChildren"), partnerChild);
            this._myTabList.Add(tabPartnerChild);

            KPage revenues = new KöTaf.WPFApplication.Views.Client.pNewClientRevenues();
            SimpleTabItem tabRevenues = new SimpleTabItem(IniParser.GetSetting("CLIENT", "revenue"), revenues);
            this._myTabList.Add(tabRevenues);

            tabPerson.toolbar.addButton(IniParser.GetSetting("BUTTONS", "cancel"), pbAbort_Click);
            tabPerson.toolbar.addButton(IniParser.GetSetting("BUTTONS", "back"), pbBack_Click);
            tabPerson.toolbar.addButton(IniParser.GetSetting("BUTTONS", "next"), pbNext_Click);
            tabPerson.toolbar.addButton(IniParser.GetSetting("BUTTONS", "save"), pbSave_Click);

            tabPartnerChild.toolbar.addButton(IniParser.GetSetting("BUTTONS", "cancel"), pbAbort_Click);
            tabPartnerChild.toolbar.addButton(IniParser.GetSetting("BUTTONS", "back"), pbBack_Click);
            tabPartnerChild.toolbar.addButton(IniParser.GetSetting("BUTTONS", "next"), pbNext_Click);
            tabPartnerChild.toolbar.addButton(IniParser.GetSetting("BUTTONS", "save"), pbSave_Click);

            tabRevenues.toolbar.addButton(IniParser.GetSetting("BUTTONS", "cancel"), pbAbort_Click);
            tabRevenues.toolbar.addButton(IniParser.GetSetting("BUTTONS", "back"), pbBack_Click);
            tabRevenues.toolbar.addButton(IniParser.GetSetting("BUTTONS", "next"), pbNext_Click);
            tabRevenues.toolbar.addButton(IniParser.GetSetting("BUTTONS", "save"), pbSave_Click);

            SinglePage singlePage = new SinglePage(this, IniParser.GetSetting("CLIENT", "createNewClient"), this._myTabList);
        }