public EntityStatsMain(MainWindow parent)
 {
     InitializeComponent();
     _parent = parent;
     CloseWindow.Source = BasicTeraData.Instance.ImageDatabase.Close.Source;
     _header = new EnduranceDebuffHeader();
 }
 public void Initialize(MainWindow mainWindow)
 {
     _mainWindow = mainWindow;
     DpsWebsiteExport.IsChecked = BasicTeraData.Instance.WindowData.SiteExport;
     AutoExcelExport.IsChecked = BasicTeraData.Instance.WindowData.Excel;
     ExcelCMADPSSpinner.Value = BasicTeraData.Instance.WindowData.ExcelCMADPSSeconds;
     CountOnlyBoss.IsChecked = BasicTeraData.Instance.WindowData.OnlyBoss;
     BossByHpBar.IsChecked = BasicTeraData.Instance.WindowData.DetectBosses;
     PartyOnly.IsChecked = BasicTeraData.Instance.WindowData.PartyOnly;
     InvisibleWhenNoStats.IsChecked = BasicTeraData.Instance.WindowData.InvisibleUi;
     ShowAlways.IsChecked = BasicTeraData.Instance.WindowData.AlwaysVisible;
     StayTopMost.IsChecked = BasicTeraData.Instance.WindowData.Topmost;
     NumberPlayersSpinner.Value = BasicTeraData.Instance.WindowData.NumberOfPlayersDisplayed;
     LFDelaySpinner.Value = BasicTeraData.Instance.WindowData.LFDelay;
     RemoveTeraAltEnterHotkey.IsChecked = BasicTeraData.Instance.WindowData.RemoveTeraAltEnterHotkey;
     ChatEnabled.IsChecked = BasicTeraData.Instance.WindowData.EnableChat;
     CopyInspect.IsChecked = BasicTeraData.Instance.WindowData.CopyInspect;
     FormatPasteString.IsChecked = BasicTeraData.Instance.WindowData.FormatPasteString;
     SayColorSelecter.SelectedColor = BasicTeraData.Instance.WindowData.SayColor;
     GroupColorSelecter.SelectedColor = BasicTeraData.Instance.WindowData.GroupColor;
     AllianceColorSelecter.SelectedColor = BasicTeraData.Instance.WindowData.AllianceColor;
     AreaColorSelecter.SelectedColor = BasicTeraData.Instance.WindowData.AreaColor;
     WhisperColorSelecter.SelectedColor = BasicTeraData.Instance.WindowData.WhisperColor;
     GuildColorSelecter.SelectedColor = BasicTeraData.Instance.WindowData.GuildColor;
     EmotesColorSelecter.SelectedColor = BasicTeraData.Instance.WindowData.SayColor;
     TradingColorSelecter.SelectedColor = BasicTeraData.Instance.WindowData.TradingColor;
     PrivateChannelColorSelecter.SelectedColor = BasicTeraData.Instance.WindowData.PrivateChannelColor;
     GeneralColorSelecter.SelectedColor = BasicTeraData.Instance.WindowData.GeneralColor;
     RaidColorSelecter.SelectedColor = BasicTeraData.Instance.WindowData.RaidColor;
     PartyEvent.IsChecked = BasicTeraData.Instance.WindowData.DisablePartyEvent;
     DiscordLoginTextBox.Text = BasicTeraData.Instance.WindowData.DiscordLogin;
     DiscordPasswordTextBox.Password = BasicTeraData.Instance.WindowData.DiscordPassword;
     ShowAfkIventsIngame.IsChecked = BasicTeraData.Instance.WindowData.ShowAfkEventsIngame;
     ChatSettingsVisible(BasicTeraData.Instance.WindowData.EnableChat);
 }