public LogDirectoryOptions()
 {
     InitializeComponent();
     ///here we will load current log file details on rich text box
     CurrentLocation.AppendText(location);
     LoadLogFileDetails();
 }
Example #2
0
        /// <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);
            }
        }
Example #3
0
 public InitiateBackup()
 {
     InitializeComponent();
     CurrentLocation.AppendText(backupPath);
 }