private void btn_Run_Click(object sender, EventArgs e) { try { tb_Output.Clear(); MyTask.CopyFiles(tb_InputFolder.Text, tb_OutputFolder.Text); tb_Output.Text = "Complete"; } catch (Exception ex) { tb_Output.Text = ex.ToString(); } }
public void OnTimer(object sender, ElapsedEventArgs args) { // TODO: Insert monitoring activities here. MyTask.CopyFiles(_inputFolder, _outputFolder); }