コード例 #1
0
ファイル: Program.cs プロジェクト: sven82/HFCS
        public static void Main(string[] args)
        {
            string   testPath = Utility.TestFilesDirectoryName();
            Report18 r18      = new Report18(testPath + "R18.txt");
            Report79 r79      = new Report79(testPath + "R79.txt");
            Report90 r90      = new Report90(testPath + "R90.txt");

            Converter c = new Converter(r18, r79, r90);

            c.FillADATable();
            c.ToADA(testPath + "outADA.ada");
            c.ToDat(testPath + "outDAT.dat");
        }
コード例 #2
0
        public Converter(Report18 r18, Report79 r79, Report90 r90)
        {
            try
            {
                if (!this.HaveSameBaseDate(new LCHFile[] { r18, r79, r90 }))
                {
                    throw new ArgumentException();
                }

                fReport18 = r18;
                fReport79 = r79;
                fReport90 = r90;
                this.BuildADATable();
            }
            catch (ArgumentException)
            {
                MessageBox.Show("Files don't have same base dates.");
            }
        }