C# Class SevenUpdate.Sdk.Pages.UpdateShortcuts

Interaction logic for UpdateShortcuts.xaml.
Datei anzeigen Open project: robertbaker/SevenUpdate

Public Methods

Method Description
ChangeDescription ( object sender, RoutedEventArgs e ) : void

Fires the OnPropertyChanged Event with the collection changes.

ChangeName ( object sender, RoutedEventArgs e ) : void

Fires the OnPropertyChanged Event with the collection changes.

ClearError ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Clears the UI of errors.

ConvertPath ( object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void

Converts a path to system variables.

DeleteShortcut ( object sender, System.Windows.Input.KeyEventArgs e ) : void

Deletes the selected UpdateShortcut from the collection.

ImportShortcut ( object sender, RoutedEventArgs e ) : void

Opens a dialog to browse for the shortcut to import.

LoadLocaleStrings ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void

Load the LocaleString's into the UI.

LocateIcon ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void

Opens a dialog to browse for the shortcut icon.

LocateShortcutLocation ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void

Opens a dialog to browse for the shortcut location.

LocateShortcutTarget ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void

Opens a dialog to browse for the shortcut target.

MoveOn ( object sender, RoutedEventArgs e ) : void

Navigates to the next page if no errors exist.

NavigateToMainPage ( object sender, RoutedEventArgs e ) : void

Navigates to the main page.

RemoveAllShortcuts ( object sender, RoutedEventArgs e ) : void

Removes all Shortcuts from the collection.

RemoveShortcut ( object sender, RoutedEventArgs e ) : void

Removes the selected Shortcuts from the collection.

SetSelectedShortcut ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void

Sets the selected shortcut.

UpdateShortcuts ( ) : System

Initializes a new instance of the UpdateShortcuts class.

UpdateUI ( object sender, CompositionChangedEventArgs e ) : void

Updates the UI based on whether Aero Glass is enabled.

ValidateDirectoryPath ( object sender, System.Windows.Controls.TextChangedEventArgs e ) : void

Validates the input to make sure it's a valid directory.

ValidateFileName ( object sender, System.Windows.Controls.TextChangedEventArgs e ) : void

Validates the input to make sure it's a valid file.

Private Methods

Method Description
HasErrors ( ) : bool

Determines whether this instance has errors.

Method Details

ChangeDescription() public method

Fires the OnPropertyChanged Event with the collection changes.
public ChangeDescription ( object sender, RoutedEventArgs e ) : void
sender object The object that called the event.
e System.Windows.RoutedEventArgs The event data.
return void

ChangeName() public method

Fires the OnPropertyChanged Event with the collection changes.
public ChangeName ( object sender, RoutedEventArgs e ) : void
sender object The object that called the event.
e System.Windows.RoutedEventArgs The event data.
return void

ClearError() public method

Clears the UI of errors.
public ClearError ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void
sender object The object that called the event.
e System.Windows.DependencyPropertyChangedEventArgs The DependencyPropertyChangedEventArgs instance containing the event data.
return void

ConvertPath() public method

Converts a path to system variables.
public ConvertPath ( object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
sender object The object that called the event.
e System.Windows.Input.KeyboardFocusChangedEventArgs The System.Windows.Input.KeyboardFocusChangedEventArgs instance containing the event data.
return void

DeleteShortcut() public method

Deletes the selected UpdateShortcut from the collection.
public DeleteShortcut ( object sender, System.Windows.Input.KeyEventArgs e ) : void
sender object The object that called the event.
e System.Windows.Input.KeyEventArgs The System.Windows.Input.KeyEventArgs instance containing the event data.
return void

ImportShortcut() public method

Opens a dialog to browse for the shortcut to import.
public ImportShortcut ( object sender, RoutedEventArgs e ) : void
sender object The object that called the event.
e System.Windows.RoutedEventArgs The System.Windows.RoutedEventArgs instance containing the event data.
return void

LoadLocaleStrings() public method

Load the LocaleString's into the UI.
public LoadLocaleStrings ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void
sender object The object that called the event.
e System.Windows.Controls.SelectionChangedEventArgs The System.Windows.Controls.SelectionChangedEventArgs instance containing the event data.
return void

LocateIcon() public method

Opens a dialog to browse for the shortcut icon.
public LocateIcon ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object The object that called the event.
e System.Windows.Input.MouseButtonEventArgs The System.Windows.Input.MouseButtonEventArgs instance containing the event data.
return void

LocateShortcutLocation() public method

Opens a dialog to browse for the shortcut location.
public LocateShortcutLocation ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object The object that called the event.
e System.Windows.Input.MouseButtonEventArgs The System.Windows.Input.MouseButtonEventArgs instance containing the event data.
return void

LocateShortcutTarget() public method

Opens a dialog to browse for the shortcut target.
public LocateShortcutTarget ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object The object that called the event.
e System.Windows.Input.MouseButtonEventArgs The System.Windows.Input.MouseButtonEventArgs instance containing the event data.
return void

MoveOn() public method

Navigates to the next page if no errors exist.
public MoveOn ( object sender, RoutedEventArgs e ) : void
sender object The object that called the event.
e System.Windows.RoutedEventArgs The System.Windows.RoutedEventArgs instance containing the event data.
return void

NavigateToMainPage() public method

Navigates to the main page.
public NavigateToMainPage ( object sender, RoutedEventArgs e ) : void
sender object The object that called the event.
e System.Windows.RoutedEventArgs The System.Windows.RoutedEventArgs instance containing the event data.
return void

RemoveAllShortcuts() public method

Removes all Shortcuts from the collection.
public RemoveAllShortcuts ( object sender, RoutedEventArgs e ) : void
sender object The object that called the event.
e System.Windows.RoutedEventArgs The System.Windows.RoutedEventArgs instance containing the event data.
return void

RemoveShortcut() public method

Removes the selected Shortcuts from the collection.
public RemoveShortcut ( object sender, RoutedEventArgs e ) : void
sender object The object that called the event.
e System.Windows.RoutedEventArgs The System.Windows.RoutedEventArgs instance containing the event data.
return void

SetSelectedShortcut() public method

Sets the selected shortcut.
public SetSelectedShortcut ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void
sender object The object that called the event.
e System.Windows.Controls.SelectionChangedEventArgs The System.Windows.Controls.SelectionChangedEventArgs instance containing the event data.
return void

UpdateShortcuts() public method

Initializes a new instance of the UpdateShortcuts class.
public UpdateShortcuts ( ) : System
return System

UpdateUI() public method

Updates the UI based on whether Aero Glass is enabled.
public UpdateUI ( object sender, CompositionChangedEventArgs e ) : void
sender object The object that called the event.
e SevenSoftware.Windows.CompositionChangedEventArgs The CompositionChangedEventArgs instance containing the event data.
return void

ValidateDirectoryPath() public method

Validates the input to make sure it's a valid directory.
public ValidateDirectoryPath ( object sender, System.Windows.Controls.TextChangedEventArgs e ) : void
sender object The object that called the event.
e System.Windows.Controls.TextChangedEventArgs The TextChangedEventArgs instance containing the event data.
return void

ValidateFileName() public method

Validates the input to make sure it's a valid file.
public ValidateFileName ( object sender, System.Windows.Controls.TextChangedEventArgs e ) : void
sender object The object that called the event.
e System.Windows.Controls.TextChangedEventArgs The TextChangedEventArgs instance containing the event data.
return void