private void Save() { var cleanStartupArguments = StartupArgumentList.Where(item => !string.IsNullOrEmpty(item.Command)).ToList(); _ConfigManager.SaveStartupArgumentList(cleanStartupArguments, GameType); DialogCallback?.Invoke(true); ((ICommand)ControlCommands.Close).Execute(null); }
private void Append() { StartupArgumentList.Add(new StartupArgumentModel() { ID = UtilHelper.GetUniqueID(), Command = "", Enable = true, }); }
private void Remove(string id) { var index = StartupArgumentList.IndexOf(StartupArgumentList.Where(item => item.ID == id).FirstOrDefault()); if (index != -1) { StartupArgumentList.RemoveAt(index); } }