private void ChooseBtn_Click(object sender, EventArgs e)
        {
            SkillChallengeSelectForm skillChallengeSelectForm = new SkillChallengeSelectForm();

            if (skillChallengeSelectForm.ShowDialog() == DialogResult.OK)
            {
                this.fChallenge.Name       = skillChallengeSelectForm.SkillChallenge.Name;
                this.fChallenge.Complexity = skillChallengeSelectForm.SkillChallenge.Complexity;
                this.fChallenge.Success    = skillChallengeSelectForm.SkillChallenge.Success;
                this.fChallenge.Failure    = skillChallengeSelectForm.SkillChallenge.Failure;
                this.fChallenge.Skills.Clear();
                foreach (SkillChallengeData skill in skillChallengeSelectForm.SkillChallenge.Skills)
                {
                    this.fChallenge.Skills.Add(skill.Copy());
                }
                this.fChallenge.Level = this.fPartyLevel;
                this.update_view();
            }
        }
Пример #2
0
        private void ChooseBtn_Click(object sender, EventArgs e)
        {
            SkillChallengeSelectForm dlg = new SkillChallengeSelectForm();

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                fChallenge.Name       = dlg.SkillChallenge.Name;
                fChallenge.Complexity = dlg.SkillChallenge.Complexity;
                fChallenge.Success    = dlg.SkillChallenge.Success;
                fChallenge.Failure    = dlg.SkillChallenge.Failure;

                fChallenge.Skills.Clear();
                foreach (SkillChallengeData scd in dlg.SkillChallenge.Skills)
                {
                    fChallenge.Skills.Add(scd.Copy());
                }

                fChallenge.Level = fPartyLevel;

                update_view();
            }
        }