Repository: files-community/Files
File: src/Files.App/Data/Models/SelectedItemsPropertiesViewModel.cs (C#)

Code before:
			get => runAsAdminEditedValue;
			set
			{
				RunAsAdminEnabled = true;
				SetProperty(ref runAsAdminEditedValue, value);
			}
		}

		private bool runAsAdminEnabled;
		public bool RunAsAdminEnabled
		{
			get => runAsAdminEnabled;
			set => SetProperty(ref runAsAdminEnabled, value);
		}

		private static readonly IReadOnlyDictionary<SHOW_WINDOW_CMD, string> showWindowCommandTypes = new Dictionary<SHOW_WINDOW_CMD, string>
		{
			{ SHOW_WINDOW_CMD.SW_NORMAL, Strings.NormalWindow.GetLocalizedResource() },
			{ SHOW_WINDOW_CMD.SW_SHOWMINNOACTIVE, Strings.Minimized.GetLocalizedResource() },
			{ SHOW_WINDOW_CMD.SW_MAXIMIZE, Strings.Maximized.GetLocalizedResource() }
		}.AsReadOnly();
		public IReadOnlyDictionary<SHOW_WINDOW_CMD, string> ShowWindowCommandTypes { get => showWindowCommandTypes; }

		public string SelectedShowWindowCommand
		{
			get => ShowWindowCommandTypes.GetValueOrDefault(ShowWindowCommandEditedValue)!;
			set => ShowWindowCommandEditedValue = ShowWindowCommandTypes.First(e => e.Value == value).Key;
		}

		private SHOW_WINDOW_CMD showWindowCommand;
		public SHOW_WINDOW_CMD ShowWindowCommand
		{
			get => showWindowCommand;
			set
			{
				if (SetProperty(ref showWindowCommand, value))
					ShowWindowCommandEditedValue = value;
			}
		}

		private SHOW_WINDOW_CMD showWindowCommandEditedValue;
		public SHOW_WINDOW_CMD ShowWindowCommandEditedValue
		{
			get => showWindowCommandEditedValue;
			set
			{
				if (SetProperty(ref showWindowCommandEditedValue, value))
					OnPropertyChanged(nameof(SelectedShowWindowCommand));
			}
		}


Review comment (suggestion):
```suggestion

		public IReadOnlyDictionary<SHOW_WINDOW_CMD, string> ShowWindowCommandTypes { get => showWindowCommandTypes; }
```

Code after:
			get => runAsAdminEditedValue;
			set
			{
				RunAsAdminEnabled = true;
				SetProperty(ref runAsAdminEditedValue, value);
			}
		}

		private bool runAsAdminEnabled;
		public bool RunAsAdminEnabled
		{
			get => runAsAdminEnabled;
			set => SetProperty(ref runAsAdminEnabled, value);
		}

		private static readonly IReadOnlyDictionary<SHOW_WINDOW_CMD, string> showWindowCommandTypes = new Dictionary<SHOW_WINDOW_CMD, string>
		{
			{ SHOW_WINDOW_CMD.SW_NORMAL, Strings.NormalWindow.GetLocalizedResource() },
			{ SHOW_WINDOW_CMD.SW_SHOWMINNOACTIVE, Strings.Minimized.GetLocalizedResource() },
			{ SHOW_WINDOW_CMD.SW_MAXIMIZE, Strings.Maximized.GetLocalizedResource() }
		}.AsReadOnly();

		/// <summary>
		/// The available show window command types.
		/// </summary>
		public IReadOnlyDictionary<SHOW_WINDOW_CMD, string> ShowWindowCommandTypes { get => showWindowCommandTypes; }

		/// <summary>
		/// The localized string of the currently selected ShowWindowCommand.
		/// This value can be used for display in the UI.
		/// </summary>
		public string SelectedShowWindowCommand
		{
			get => ShowWindowCommandTypes.GetValueOrDefault(ShowWindowCommandEditedValue)!;
			set => ShowWindowCommandEditedValue = ShowWindowCommandTypes.First(e => e.Value == value).Key;
		}

		private SHOW_WINDOW_CMD showWindowCommand;
		/// <summary>
		/// The current <see cref="SHOW_WINDOW_CMD"/> property of the item.
		/// </summary>
		public SHOW_WINDOW_CMD ShowWindowCommand
		{
			get => showWindowCommand;
			set
			{
				if (SetProperty(ref showWindowCommand, value))
					ShowWindowCommandEditedValue = value;
			}
		}