Example #1
0
        private void button_selectDirection_Click(object sender, EventArgs e)
        {
            string path             = string.Empty;
            FolderBrowserDialog fbd = new System.Windows.Forms.FolderBrowserDialog();

            if (fbd.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            else
            {
                path = fbd.SelectedPath;
            }

            button_selectDirection.Enabled = false;

            DirectionExcelNoneMerge useManger = new DirectionExcelNoneMerge(new System.IO.DirectoryInfo(path), this);

            useManger.UnMerge();

            MessageBox.Show("完成");

            button_selectDirection.Enabled = true;

            label_state.Text = "无";
        }
Example #2
0
        static void Main(string[] args)
        {
            string inputDir = Console.ReadLine();

            System.IO.DirectoryInfo useDir = new System.IO.DirectoryInfo(inputDir);

            DirectionExcelNoneMerge useManger = new DirectionExcelNoneMerge(useDir, new ConsoleUseNotice());

            useManger.UnMerge();

            Console.Read();
        }