/// <summary> /// Inits the specified app settings file name. /// </summary> /// <param name="appSettings">The app settings.</param> /// <param name="usrSettings">The usr settings.</param> public void Init(DnwSettingsCollection appSettings = null, DnwSettingsCollection usrSettings = null) { AppTabIsVisible = appSettings != null; UsrTabIsVisible = usrSettings != null; if (AppTabIsVisible) { PageApplicationSettings.Init(appSettings); } if (UsrTabIsVisible) { PageUserSettings.Init(usrSettings); } if (!AppTabIsVisible && !UsrTabIsVisible) { MessageBox.Show("You don't have any settings file to modify Check your code!"); RaiseCancelledEvent(); } }
/// <summary> /// Inits the controls from the specified file name. /// </summary> /// <param name="settingsToManage">The settings to manage.</param> public void Init(DnwSettingsCollection settingsToManage) { mSettings = settingsToManage; this.DataContext = this; GenerateControls(); }