/// <summary>
 /// 向导窗口的回调
 /// </summary>
 /// <param name="task"></param>
 void TaskCallback(ExcelToWordTask task)
 {
     if (task == null)
     {
         return;
     }
     Task.Add(task);
     listBox.Items.Add(task.TaskName);
 }
        //任务Task
        public void TaskCallbcak(ExcelToWordTask task)
        {
            task.Listener    = InfoCallback;
            task.Callback    = FinishCallback;
            TaskOutDirectory = task.TargetPath;

            dialog       = new TaskDialog( );
            dialog.Title = task.TaskName;
            dialog.Show( );
            task.Start( );
        }
Exemple #3
0
        public GuideWindow()
        {
            InitializeComponent( );

            //设置标题
            Title = titles[0];

            Task = new ExcelToWordTask( );

            Excel = new ExcelFile( );

            wd = new WordFile( );
        }