public ClButtonAdvanced(bool?JustIcon = null) { _JustIcon = JustIcon; InitializeComponent(); PART_ListViewLanguages = new ClListViewLanguages(false); PART_ContextMenu.Items.Add(PART_ListViewLanguages); bool EnableIntegrationButtonJustIcon; if (_JustIcon == null) { EnableIntegrationButtonJustIcon = PluginDatabase.PluginSettings.EnableIntegrationButtonJustIcon; } else { EnableIntegrationButtonJustIcon = (bool)_JustIcon; } this.DataContext = new { EnableIntegrationButtonJustIcon = EnableIntegrationButtonJustIcon }; #if DEBUG logger.Debug($"CheckLocalizations [Ignored] - DataContext: {JsonConvert.SerializeObject(DataContext)}"); #endif PluginDatabase.PropertyChanged += OnPropertyChanged; }
public ClDescriptionIntegration(bool withContener) { InitializeComponent(); _withContener = withContener; PART_ListViewLanguages = new ClListViewLanguages(true); PART_ClList.Children.Add(PART_ListViewLanguages); PluginDatabase.PropertyChanged += OnPropertyChanged; }