public void cmd_SaveRigs(List <Settings.Rig> rigs) { Settings.Rigs = rigs; this.rigs = rigs; while (rigs.Count != Statuses.Count) { if (rigs.Count > Statuses.Count) { Statuses.Add(RigStatus.offline); } else { Statuses.RemoveAt(Statuses.Count - 1); } } StatusesReset(); Settings.SaveSettings(); }