protected override void ViewIsAppearing(object sender, EventArgs e) { base.ViewIsAppearing(sender, e); if (Profile == null && !IsLoadingProfile) { LoadProfileCommand.Execute(null); } }
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(); }