Exemplo n.º 1
0
        private void buttonSaveToExel_Click(object sender, EventArgs e)
        {
            if (this.e == null || b == null || a == null)
            {
                throw new Exception("Сначала должны быть сгенерированы уравнения!");
            }

            string[] singleCodesString = this.e.Select(val => val.ToString()).ToArray();
            string[] bString           = b.Select(val => val.ToString()).ToArray();
            string[] binaryString      = MathProcessor.TransposeBitMatrix(a)
                                         .Select(val => val.ToString()).ToArray();
            ExcelTools excel = new ExcelTools(progressBar);

            excel.GenerateDocument(singleCodesString, bString, binaryString);
            excel.Dispose();
            progressBar.Value = 0;
        }
 public void Dispose()
 {
     excelTools.Dispose();
 }