コード例 #1
0
        private void buttonSelectThematicPlan_Click(object sender, EventArgs e)
        {
            
            string filename = string.Empty;
                filename = FileWorker.OpenWordFile();
                if (filename != null)
                {
                    thematicPlanProcessor = new ThematicPlanProcessor(filename);

                    thematicPlanProcessor.GetSpeciality();
                    thematicPlanProcessor.GetSpecialization();
                    thematicPlanProcessor.GetDiscipline();
                    thematicPlanProcessor.GetYear();
                    thematicPlanProcessor.GetTableWithString("№");
                    tableProcessor = new TableProcessor(thematicPlanProcessor.Table);
                    thematicPlanProcessor.CloseDocument();
                    thematicPlanProcessor.QuitApplication();

                    this.textBoxCodeSpecialization.Text = thematicPlanProcessor.Specialization.CodeSpecialization;
                    this.textBoxSpecialization.Text = thematicPlanProcessor.Specialization.NameSpecialization;
                    this.textBoxCodeSpecialty.Text = thematicPlanProcessor.Specialty.CodeSpecialty;
                    this.textBoxSpecialty.Text = thematicPlanProcessor.Specialty.NameSpecialty;
                    this.textBoxNameDisc.Text = thematicPlanProcessor.Discipline;
                    this.comboBoxYear.Text = thematicPlanProcessor.Year.ToString();
                }
            
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: PAlAl/ImportMStoDB
        private void button1_Click(object sender, EventArgs e)
        {
            ThematicPlanProcessor thematicPlanProcessor = new ThematicPlanProcessor("C:\\file1.doc");
            thematicPlanProcessor.GetTableWithString("№");
            tableProcessor = new TableProcessor(thematicPlanProcessor.Table);
            thematicPlanProcessor.CloseDocument();
            thematicPlanProcessor.QuitApplication();
            tableProcessor.WriteThemesListToFile();
      

        }