/// <summary> /// Saves the options to persistent storage. /// </summary> public void OnSave() { Properties.Settings.Default.SelectedFontSize = SelectedFontSize; Properties.Settings.Default.SelectedFont = SelectedFont; Properties.Settings.Default.AlignmentFontSize = AlignmentFontSize; Properties.Settings.Default.AlignmentFontFamily = AlignmentFontFamily; Properties.Settings.Default.MinGroupingRange = MinGroupingRange; Properties.Settings.Default.ShowRowNumbers = ShowRowNumbers; Properties.Settings.Default.ShowTaxonomyGroupLevel = ShowTaxonomyGroupLevel; Properties.Settings.Default.SortByTaxonomy = SortByTaxonomy; Properties.Settings.Default.OpenWithGrouping = OpenWithGrouping; Properties.Settings.Default.ReferenceSequenceColors.Clear(); Properties.Settings.Default.ReferenceSequenceColors.AddRange(ReferenceSequenceColors.ToArray()); Properties.Settings.Default.SelectionColor = SelectionColor; Properties.Settings.Default.SelectionTextColor = SelectionTextColor; Properties.Settings.Default.SeparatorColor = SeparatorColor; Properties.Settings.Default.BackgroundColor = BackgroundColor; Properties.Settings.Default.SelectionBorderColor = SelectionBorderColor; Properties.Settings.Default.FocusedColor = FocusedColor; Properties.Settings.Default.FocusedBorderColor = FocusedBorderColor; Properties.Settings.Default.ForegroundTextColor = ForegroundTextColor; Properties.Settings.Default.LineNumberTextColor = LineNumberTextColor; Properties.Settings.Default.FocusRectColor = FocusRectColor; Properties.Settings.Default.FocusedBorderColor = FocusRectBorderColor; Properties.Settings.Default.GroupHeaderBackgroundColor = GroupHeaderBackgroundColor; Properties.Settings.Default.GroupHeaderTextColor = GroupHeaderTextColor; Properties.Settings.Default.NucleotideColors.Clear(); Properties.Settings.Default.NucleotideColors.AddRange(NucleotideColors.Select(nc => string.Format("{0}{1}", nc.Symbol, nc.Color)).ToArray()); Properties.Settings.Default.Save(); }
private void OnRemoveReferenceSeqColor(string color) { ReferenceSequenceColors.Remove(color); }
private void OnAddReferenceSeqColor(string color) { ReferenceSequenceColors.Add(color); }