コード例 #1
0
        internal void transferExcelData(int j, int k, int i, Excel.Cell cell, Form1 formObject, int writeCell)
        {
            Form1 form1 = formObject;

            if (j > 0 && k != 0 && writeCell == 1)
            {
                if (k == 1 && cell != null)
                {
                    form1.name = cell.Text;
                    LocationSet(form1, i);
                }



                if (form1.name != null && form1.location != null && k == 1)
                {
                    fileExists = TestIfDoneText(form1.location);
                }

                if (cell != null && fileExists == false && form1.location != null)
                {
                    Matrix_Writer.writeCell(cell.Text, form1);
                }
                else if (k > 1 && form1.location != null && fileExists == false)
                {
                    Matrix_Writer.writeCell(" ", form1);
                }
            }
        }
コード例 #2
0
 internal int testIfDoneExcel(int j, int k, Excel.Cell cell, int writeCell)
 {
     if (j > 0 && k == 0 && cell == null)
     {
         writeCell = 1;
     }
     return(writeCell);
 }