Example #1
0
        private void buttonAddTeam_Click(object sender, EventArgs e)
        {
            TeamDesigner formAddTeam = new TeamDesigner();

            AddOwnedForm(formAddTeam);
            formAddTeam.ComboBoxBeforeTeam   = comboBoxBeforeTeam;
            formAddTeam.ComboBoxAfterTeam    = comboBoxAfterTeam;
            formAddTeam.ObjectListViewTicket = ObjectListViewTicket;
            formAddTeam.Show();
        }
Example #2
0
        private void buttonEditTeam_Click(object sender, EventArgs e)
        {
            TeamDesigner editTeams = new TeamDesigner();

            editTeams.EditMode             = true;
            editTeams.EditedTeam           = (Team)comboBoxBeforeTeam.SelectedItem;
            editTeams.ComboBoxBeforeTeam   = comboBoxBeforeTeam;
            editTeams.ComboBoxAfterTeam    = comboBoxAfterTeam;
            editTeams.ObjectListViewTicket = ObjectListViewTicket;
            AddOwnedForm(editTeams);
            editTeams.Show();
        }