Beispiel #1
0
        private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            if (Configure == null)
            {
                return;
            }
            CloneConfigure dialog = new CloneConfigure()
            {
                ParentName = Configure.Name
            };

            if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                Configure conf = new Configure();
                conf.Name       = dialog.NewConfigureName;
                conf.ExamRecord = Configure.ExamRecord;
                conf.PrintSubjectList.AddRange(Configure.PrintSubjectList);
                conf.RankFilterTagList.AddRange(Configure.RankFilterTagList);
                conf.RankFilterTagName = Configure.RankFilterTagName;
                conf.RefenceExamRecord = Configure.RefenceExamRecord;
                conf.SchoolYear        = Configure.SchoolYear;
                conf.Semester          = Configure.Semester;
                conf.SubjectLimit      = Configure.SubjectLimit;
                conf.StudentLimit      = Configure.StudentLimit;
                conf.TagRank1SubjectList.AddRange(Configure.TagRank1SubjectList);
                conf.TagRank1TagList.AddRange(Configure.TagRank1TagList);
                conf.TagRank1TagName = Configure.TagRank1TagName;
                conf.TagRank2SubjectList.AddRange(Configure.TagRank2SubjectList);
                conf.TagRank2TagList.AddRange(Configure.TagRank2TagList);
                conf.TagRank2TagName = Configure.TagRank2TagName;
                conf.Template        = Configure.Template;
                conf.AvgRd           = Configure.AvgRd;
                conf.Encode();
                conf.Save();
                _Configures.Add(conf);
                cboConfigure.Items.Insert(cboConfigure.Items.Count - 1, conf);
                cboConfigure.SelectedIndex = cboConfigure.Items.Count - 2;
            }
        }
 private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     if (Configure == null) return;
     CloneConfigure dialog = new CloneConfigure() { ParentName = Configure.Name };
     if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         Configure conf = new Configure();
         conf.Name = dialog.NewConfigureName;
         conf.ExamRecord = Configure.ExamRecord;
         conf.PrintSubjectList.AddRange(Configure.PrintSubjectList);
         conf.RankFilterTagList.AddRange(Configure.RankFilterTagList);
         conf.RankFilterTagName = Configure.RankFilterTagName;
         conf.RefenceExamRecord = Configure.RefenceExamRecord;
         conf.SchoolYear = Configure.SchoolYear;
         conf.Semester = Configure.Semester;
         conf.SubjectLimit = Configure.SubjectLimit;
         conf.StudentLimit = Configure.StudentLimit;
         conf.TagRank1SubjectList.AddRange(Configure.TagRank1SubjectList);
         conf.TagRank1TagList.AddRange(Configure.TagRank1TagList);
         conf.TagRank1TagName = Configure.TagRank1TagName;
         conf.TagRank2SubjectList.AddRange(Configure.TagRank2SubjectList);
         conf.TagRank2TagList.AddRange(Configure.TagRank2TagList);
         conf.TagRank2TagName = Configure.TagRank2TagName;
         conf.Template = Configure.Template;
         conf.Encode();
         conf.Save();
         _Configures.Add(conf);
         cboConfigure.Items.Insert(cboConfigure.Items.Count - 1, conf);
         cboConfigure.SelectedIndex = cboConfigure.Items.Count - 2;
     }
 }