Example #1
0
        protected override void ViewIsAppearing(object sender, EventArgs e)
        {
            base.ViewIsAppearing(sender, e);

            if (Profile == null && !IsLoadingProfile)
            {
                LoadProfileCommand.Execute(null);
            }
        }
Example #2
0
 private void SetUpCommands()
 {
     ResetASettingCommand            = new ResetASettingCommand(this);
     SaveSettingsToRegistryCommand   = new SaveSettingsToRegistryCommand(this);
     SaveProfileCommand              = new SaveProfileCommand(this);
     LoadProfileCommand              = new LoadProfileCommand(this);
     OpenImagesDirectoryCommand      = new OpenImagesDirectoryCommand(this);
     ToggleSystemRegistryLockCommand = new ToggleSystemRegistryLockCommand(this);
     ResetASettingCommand.OnCanExecuteChanged();
 }