Exemple #1
0
        }//调整连续列列宽

        public ProgressBar(FileInfo[] WdataFile2, string ResourePath2, string Scols2, int a)
        {
            setCallBack  = new setTextValueCallBack(SetValue);
            setCallBack2 = new setTextValueCallBack2(ChangeProgress);
            switch (a)
            {
            case 2:
                ExcelWay = new setExcelWay(DeleteCol);
                break;

            case 3:
                ExcelWay = new setExcelWay(DeleteRow);
                break;

            case 4:
                ExcelWay = new setExcelWay(DeleteFormula);
                break;

            case 5:
                ExcelWay = new setExcelWay(ChangeType);
                break;

            default:
                break;
            }
            width       = a;
            Scols       = Scols2;
            ResourePath = ResourePath2;
            WdataFile   = WdataFile2;
            InitializeComponent();
            timer1.Enabled = true;
        }//删除单列//删除单行
Exemple #2
0
        }//连续空缺天数重载

        public ProgressBar(FileInfo[] WdataFile2, string ResourePath2, string ExportPath2, double a)
        {
            InitializeComponent();
            setCallBack  = new setTextValueCallBack(SetValue);
            setCallBack2 = new setTextValueCallBack2(ChangeProgress);
            switch (a)
            {
            case 0.1:
                ExcelWay = new setExcelWay(SingleRow);
                break;

            case 0.2:
                ExcelWay = new setExcelWay(INPUT);
                break;

            case 0.3:
                ExcelWay = new setExcelWay(OUTPUT);
                break;

            default:
                break;
            }
            ExportPath     = ExportPath2;
            ResourePath    = ResourePath2;
            WdataFile      = WdataFile2;
            ExcelProcess2  = new ExcelProcess();
            timer1.Enabled = true;
        }//非连续空缺天数重载
Exemple #3
0
        }//删除单列//删除单行

        public ProgressBar(FileInfo[] WdataFile2, string ResourePath2, string Scols2, int width2, string a)
        {
            setCallBack = new setTextValueCallBack(SetValue);
            ExcelWay    = new setExcelWay(AdjustColumn);
            width       = width2;
            Scols       = Scols2;
            ResourePath = ResourePath2;
            WdataFile   = WdataFile2;
            InitializeComponent();
            timer1.Enabled = true;
        }//调整单列列宽
Exemple #4
0
        }//另存重载

        public ProgressBar(FileInfo[] WdataFile2, string ResourePath2, string Days2, string ExportPath2, string a)
        {
            Days         = Days2;
            setCallBack  = new setTextValueCallBack(SetValue);
            setCallBack2 = new setTextValueCallBack2(ChangeProgress);
            ExcelWay     = new setExcelWay(SuccessionRow);
            ExportPath   = ExportPath2;
            ResourePath  = ResourePath2;
            WdataFile    = WdataFile2;
            InitializeComponent();
            timer1.Enabled = true;
        }//连续空缺天数重载
Exemple #5
0
 public ProgressBar(FileInfo[] WdataFile2, string ResourePath2, string SaveType2, string ExportPath2)
 {
     SaveType     = SaveType2;
     setCallBack  = new setTextValueCallBack(SetValue);
     setCallBack2 = new setTextValueCallBack2(ChangeProgress);
     ExcelWay     = new setExcelWay(SaveAs2);
     ExportPath   = ExportPath2;
     ResourePath  = ResourePath2;
     WdataFile    = WdataFile2;
     InitializeComponent();
     timer1.Enabled = true;
 }//另存重载
Exemple #6
0
        }//调整单列列宽

        public ProgressBar(FileInfo[] WdataFile2, string ResourePath2, string Row2, string Column2, string Data2, int c)
        {
            setCallBack  = new setTextValueCallBack(SetValue);
            setCallBack2 = new setTextValueCallBack2(ChangeProgress);
            ExcelWay     = new setExcelWay(AddData);
            Row          = Row2;
            Column       = Column2;
            Data         = Data2;
            ResourePath  = ResourePath2;
            WdataFile    = WdataFile2;
            InitializeComponent();
            timer1.Enabled = true;
        }//添加数据
Exemple #7
0
        }//非连续空缺天数重载

        public ProgressBar(FileInfo[] WdataFile2, string ResourePath2, string Mcols2, string Gcols2, int a)
        {
            setCallBack  = new setTextValueCallBack(SetValue);
            setCallBack2 = new setTextValueCallBack2(ChangeProgress);
            switch (a)
            {
            case 1:
                ExcelWay = new setExcelWay(MoveCols);
                break;

            case 2:
                ExcelWay = new setExcelWay(DeleteCols);
                break;

            case 3:
                ExcelWay = new setExcelWay(DeleteRows);
                break;

            case 4:
                ExcelWay = new setExcelWay(AddFormula);
                break;

            case 5:
                ExcelWay = new setExcelWay(DeleteFormulas);
                break;

            case 6:
                ExcelWay = new setExcelWay(ZSSunlight);
                break;

            case 8:
                ExcelWay = new setExcelWay(WeatherTool);
                break;

            default:
                break;
            }
            LatPath     = Gcols2;
            Column      = Mcols2;
            Formula     = Gcols2;
            width       = a;
            Mcols       = Mcols2;
            Gcols       = Gcols2;
            param       = Gcols2;
            ResourePath = ResourePath2;
            ExportPath  = Mcols2;
            WdataFile   = WdataFile2;
            InitializeComponent();
            timer1.Enabled = true;
        }//移动列的重载/删除多列/删除多行