Пример #1
0
 /// <summary>
 /// Event handler for the Refresh button
 /// </summary>
 /// <param name="sender">Sender Argument</param>
 /// <param name="e">Event Argument</param>
 private void RefreshButton_Click(object sender, RoutedEventArgs e)
 {
     if (UIUtils.BindDriveList(this.targetDriveComboBox))
     {
         this.processButton.IsEnabled = true;
     }
     else
     {
         this.processButton.IsEnabled = false;
     }
 }
Пример #2
0
        /// <summary>
        /// Handle the window load event
        /// </summary>
        /// <param name="sender">The Sender object</param>
        /// <param name="e">The event args</param>
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            Version version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;

            this.Title += string.Format(" (v{0}.{1}.{2}.{3})", version.Major, version.Minor, version.Build, version.MinorRevision);

            if (UIUtils.BindDriveList(this.targetDriveComboBox))
            {
                this.processButton.IsEnabled = true;
            }
            else
            {
                this.processButton.IsEnabled = false;
            }

            this.LoadSettings();
        }