Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:AiForms.Renderers.SettingsModel"/> class.
 /// </summary>
 /// <param name="settingsRoot">Settings root.</param>
 public SettingsModel(SettingsRoot settingsRoot)
 {
     _root            = settingsRoot;
     _visibleSections = _root.Where(x => x.IsVisible);
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:AiForms.Renderers.SettingsView"/> class.
 /// </summary>
 public SettingsView()
 {
     VerticalOptions = HorizontalOptions = LayoutOptions.FillAndExpand;
     Root            = new SettingsRoot();
     Model           = new SettingsModel(Root);
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:AiForms.Renderers.SettingsModel"/> class.
 /// </summary>
 /// <param name="settingsRoot">Settings root.</param>
 public SettingsModel(SettingsRoot settingsRoot)
 {
     _root = settingsRoot;
 }