Example #1
0
        //about serialization
        #region

        private void Initialize()
        {
            itemInfo     = null;
            mHistoryPath = new List <List <string> >();
            mFuturePath  = new List <List <string> >();

            this.CommandBindings.Add(new CommandBinding(ApplicationCommands.Properties,
                                                        (sender, e) =>
            {
                Property_Executed();
            }, (sender, e) =>
            {
                e.CanExecute = true;
            }));
            this.CommandBindings.Add(new CommandBinding(ApplicationCommands.Help,
                                                        (sender, e) =>
            {
                (new AboutWindow()).Show();
            }, (sender, e) =>
            {
                e.CanExecute = true;
            }));
        }
Example #2
0
 private FileEntry GetSelectedEntry(ShortFileInfo fileInfo)
 {
     Debug.Assert(fileInfo != null);
     return(mFs.currentDir.FindChild(fileInfo.name));
 }