public LogDirectoryOptions() { InitializeComponent(); ///here we will load current log file details on rich text box CurrentLocation.AppendText(location); LoadLogFileDetails(); }
/// <summary> /// This function will allow admin to change the location of the backup file /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ChangeLocation_Click(object sender, RoutedEventArgs e) { var dlg = new FolderBrowserDialog(); dlg.Description = "Select Location"; dlg.ShowNewFolderButton = true; if (dlg.ShowDialog() == DialogResult.OK) { tempLocation = dlg.SelectedPath; CurrentLocation.Document.Blocks.Clear(); CurrentLocation.AppendText(backupPath); } }
public InitiateBackup() { InitializeComponent(); CurrentLocation.AppendText(backupPath); }