Example #1
0
 private void lnConfig_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     if (new ConfigForm().ShowDialog() == DialogResult.OK)
     {
         Perference = new ReportPreference(); //重新 New 一次就會重新讀取設定。
     }
 }
Example #2
0
        public ConfigForm()
        {
            InitializeComponent();

            config = new ReportPreference();

            DisplayConfiguration();
        }
Example #3
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            Utilities.SetSemesterDefaultItems(cboSchoolYear, cboSemester); //顯示學年度學期選項。

            Semester = new SemesterSelector(cboSchoolYear, cboSemester);
            Semester.SemesterChanged += new EventHandler(Semester_SemesterChanged);

            Options = new UserOptions();

            MasterWorker.DoWork             += new DoWorkEventHandler(MasterWorker_DoWork);
            MasterWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(MasterWorker_RunWorkerCompleted);

            //報表設定。
            Perference = new ReportPreference();

            FillCurrentSemesterData();
        }