public LoginWindow()
        {
            App.Current.FChatClient.OnIdentified += (s, e) =>
            {
                Dispatcher.Invoke(() =>
                {
                    new MainWindow().Show();
                    Close();
                });
            };

            var login = new Dialogs.LoginDialog(App.Current.FListClient);

            login.OnLogin += (_, __) =>
            {
                Dispatcher.Invoke(() => {
                    CurrentDialog = new Dialogs.CharacterDialog(App.Current.FChatClient);
                    _Content.GetBindingExpression(ContentControl.ContentProperty).UpdateTarget();
                });
            };

            CurrentDialog = login;

            InitializeComponent();
            DataContext = this;
        }
		public LoginWindow()
		{
            App.Current.FChatClient.OnIdentified += (s, e) =>
            {
                Dispatcher.Invoke(() =>
                {
                    new MainWindow().Show();
                    Close();
                });
            };

			var login = new Dialogs.LoginDialog(App.Current.FListClient);
			login.OnLogin += (_, __) =>
			{
				Dispatcher.Invoke(() => {
					CurrentDialog = new Dialogs.CharacterDialog(App.Current.FChatClient);
					_Content.GetBindingExpression(ContentControl.ContentProperty).UpdateTarget();
				});
			};

			CurrentDialog = login;

			InitializeComponent();
			DataContext = this;
		}