public static FormatXamlAttributesOptions LoadFrom(DecoupledStorage storage) { FormatXamlAttributesOptions options = new FormatXamlAttributesOptions(); options.Load(storage); return(options); }
private void OptBreakLineUpAttributes_PreparePage(object sender, OptionsPageStorageEventArgs ea) { using (DecoupledStorage storage = ea.Storage) { this.UpdateControls(FormatXamlAttributesOptions.LoadFrom(storage)); } }
////public static void Show() ////{ //// CodeRush.Command.Execute("Options", FullPath); ////} private void UpdateControls(FormatXamlAttributesOptions options) { this.chkDontSort.Checked = !options.Sort; this.chkSortAlphabet.Checked = options.Sort; this.chkKeepFirstAttr.Checked = options.KeepFirstAttribute; }
public static FormatXamlAttributesOptions LoadFrom(DecoupledStorage storage) { FormatXamlAttributesOptions options = new FormatXamlAttributesOptions(); options.Load(storage); return options; }