public void SaveSettingsAction() { SectionOpacity = 1; ServerSectionCache.SSPath = ""; OnPropertyChanged(nameof(SectionOpacity)); ServerSectionCache.SectionObject = null; Complex.Title = Title; Complex.JarFile = JarFile; Complex.MinRam = MinRam; Complex.MaxRam = MaxRam; Complex.Parameter = Parameter; try { ServerPath = JarFile.Replace(JarFile.Split('\\').LastOrDefault(), ""); } catch { } Complex.StartFolder = ServerPath; CurrentHeight = 100; ChangeDate = DateTime.Now.ToString(); OnPropertyChanged(nameof(Title)); OnPropertyChanged(nameof(ChangeDate)); OnPropertyChanged(nameof(CurrentHeight)); Complex.ChangeDate = ChangeDate; ServerSave.SaveSettingsContainer(); ServerSectionCache.ChangeSection(); }