private void pbEdit_Click(object sender, RoutedEventArgs e)
        {
            //Setzt den Rücksprungwert für das Paging
            pagingStartValue = _DataGridPaging.getStartOfDataGridItems();

            Sponsor sponsor = this.dGSponsorView.SelectedItem as Sponsor;

            if (sponsor != null)
            {
                KPage pageEditSponsor = new KöTaf.WPFApplication.Views.pEditSponsor(sponsor, pagingStartValue);

                SinglePage singlePage = new SinglePage("Sponsor bearbeiten", pageEditSponsor);
            }
            else
            {
                MessageBoxEnhanced.Error("Es ist ein Fehler beim Laden des aktuellen Sponsors aufgetreten");
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Button zum Bearbeiten eines Teammitgliedes
        /// /// Author: Georg Schmid
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void pbEdit_Click(object sender, RoutedEventArgs e)
        {
            //Setzt den Rücksprungwert für das Paging
            pagingStartValue = _DataGridPaging.getStartOfDataGridItems();

            Team team = dGTeamView.SelectedItem as Team;

            if (team != null)
            {
                //_PageTools.ChangePage(new pEditTeamMember(team));
                KPage pageEditTeamMember = new KöTaf.WPFApplication.Views.pEditTeamMember(team, pagingStartValue);

                SinglePage singlePage = new SinglePage(IniParser.GetSetting("TEAM", "editSponsor"), pageEditTeamMember);
            }
            else
            {
                MessageBoxEnhanced.Error(IniParser.GetSetting("ERRORMSG", "loadTeamMember"));
            }
        }
Esempio n. 3
0
        /// <summary>
        /// Generiert die Untertabs und deren ToolbarContent zum Editieren eines Kunden
        ///
        /// Author: Antonios Fesenmeier, Georg Schmid
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void EditPersonButton_Click(object sender, RoutedEventArgs e)
        {
            //Setzt den Rücksprungwert für das Paging
            pagingStartValue = _DataGridPaging.getStartOfDataGridItems();

            Person currentPerson = ClientDataGrid.SelectedItem as Person;

            // Tabs hinzufügen
            KPage         person    = new KöTaf.WPFApplication.Views.Client.pEditClientPerson(currentPerson);
            SimpleTabItem tabPerson = new SimpleTabItem(IniParser.GetSetting("CLIENT", "personalData"), person);

            this._myTabListEdit.Add(tabPerson);

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

            this._myTabListEdit.Add(tabPartnerChild);

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

            this._myTabListEdit.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"), pbNextEdit_Click);
            tabPerson.toolbar.addButton(IniParser.GetSetting("BUTTONS", "save"), pbSaveEdit_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"), pbNextEdit_Click);
            tabPartnerChild.toolbar.addButton(IniParser.GetSetting("BUTTONS", "save"), pbSaveEdit_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"), pbNextEdit_Click);
            tabRevenues.toolbar.addButton(IniParser.GetSetting("BUTTONS", "save"), pbSaveEdit_Click);

            SinglePage singlePage = new SinglePage(this, IniParser.GetSetting("CLIENT", "editClient"), this._myTabListEdit);
        }