C# Class WindowsPathEditor.MainWindow

Interaction logic for MainWindow.xaml
Inheritance: System.Windows.Window, INotifyPropertyChanged
显示文件 Open project: rix0rrr/WindowsPathEditor

Public Properties

Property Type Description
CleanUp System.Windows.Input.RoutedCommand
ShieldIconProperty System.Windows.DependencyProperty
SystemPathProperty System.Windows.DependencyProperty
UserPathProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
Add_Click void
Button_Click void
CanDelete void
CanExplore void
CanSave void
Clean_Click void
DirtyPaths void
DoDelete void
DoExplore void
DoSave void
GetSelectedEntry WindowsPathEditor.AnnotatedPathEntry
InvalidateDependentProperties void
ParseCommandLinePath IEnumerable
PathAsCommandLineArgument string
PathListEqual bool
Read void
RecheckPath void
Scan_Click void
SetPaths void
ShowIssues_Checked void
Window_Closed void
Write void
WriteChangesFromCommandLine void

Public Methods

Method Description
MainWindow ( ) : System

Private Methods

Method Description
Add_Click ( object sender, RoutedEventArgs e ) : void
Button_Click ( object sender, RoutedEventArgs e ) : void
CanDelete ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void
CanExplore ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void
CanSave ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void
Clean_Click ( object sender, RoutedEventArgs e ) : void

Remove paths that don't exist or are listed multiple times

DirtyPaths ( ) : void

Mark the paths as dirty and schedule a check operation

(Done like this to prevent duplicate checks scheduled in the same event handler)

DoDelete ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
DoExplore ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
DoSave ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
GetSelectedEntry ( RoutedEventArgs e ) : WindowsPathEditor.AnnotatedPathEntry
InvalidateDependentProperties ( ) : void

Called when the user has changed the path lists, to force WPF to reevaluate properties that depend on the lists

ParseCommandLinePath ( string argument ) : IEnumerable
PathAsCommandLineArgument ( IEnumerable path ) : string
PathListEqual ( IEnumerable original, ObservableCollectionEx edited ) : bool

Compare two path lists

Read ( ) : void
RecheckPath ( ) : void
Scan_Click ( object sender, RoutedEventArgs e ) : void
SetPaths ( IEnumerable systemPath, IEnumerable userPath ) : void
ShowIssues_Checked ( object sender, RoutedEventArgs e ) : void
Window_Closed ( object sender, EventArgs e ) : void
Write ( ) : void
WriteChangesFromCommandLine ( IEnumerable args ) : void

Write the changes passed on the command-line (used for writing with UAC elevation)

Method Details

MainWindow() public method

public MainWindow ( ) : System
return System

Property Details

CleanUp public_oe static_oe property

public static RoutedCommand,System.Windows.Input CleanUp
return System.Windows.Input.RoutedCommand

ShieldIconProperty public_oe static_oe property

public static DependencyProperty,System.Windows ShieldIconProperty
return System.Windows.DependencyProperty

SystemPathProperty public_oe static_oe property

public static DependencyProperty,System.Windows SystemPathProperty
return System.Windows.DependencyProperty

UserPathProperty public_oe static_oe property

public static DependencyProperty,System.Windows UserPathProperty
return System.Windows.DependencyProperty