private async void Bt_move_file_Click(object sender, RoutedEventArgs e) { FolderBrowserDialog dialog = new FolderBrowserDialog(); if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) { FileManager fm = new FileManager(); fm.ProgressUpdatedEvent += Move_ProgressUpdatedEvent;; bool x = await fm.MoveFileAsync( tb_file_to_copy.Text, UltimateFile.ChangeDirectory(dialog.SelectedPath, tb_file_to_copy.Text) ); } }
private void bt_change_directory_Click(object sender, RoutedEventArgs e) { tb_output.Text = $"Change directory of file:\ninput {tb_file_selected.Text}\noutput {UltimateFile.ChangeDirectory(tb_new_directory.Text, tb_file_selected.Text)}"; }