public FormProgress(ParamsMergeModel[] fileMerge, string destinyDirectory, HeaderAction headerAction, EndProcessAction processAction)
        {
            InitializeComponent();
            this.SetBaseConfigs();

            richTxt.Clear();
            progBarFile.Value   = 0;
            progBarFile.Maximum = fileMerge.Length;

            _processAction    = processAction;
            _fileMerge        = fileMerge;
            _destinyDirectory = destinyDirectory;
            _headerAction     = headerAction;

            _stopwatch = new Stopwatch();

            _exMerge             = new ExcelMerge();
            _exMerge.OnLog      += new OnLogEventHandler(EventLog);
            _exMerge.OnProgress += new OnProgressChangedEventHandler(EventProgressChanged);
            _exMerge.OnFinished += new OnFinishedEventHandler(EventFinished);
        }
Exemple #2
0
        //
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for ExecelAdapter Constructor
        ///</summary>
        public void ExecelAdapterConstructorTest()
        {
            ExcelMerge target = new ExcelMerge();
            //Assert.Inconclusive("TODO: Implement code to verify target");
        }
        public byte[] MergeExcel(PersonFiles[] files)
        {
            IMerge merge = new ExcelMerge();

            return(merge.Run(new List <PersonFiles>(files)));
        }