public Chat(string user) { InitializeComponent(); ChatHost = ClientInstances.Instance.ChatHost; GameHost = ClientInstances.Instance.GameHost; User = user; title.Text = User; howToChat.Text = TopMenu.GetHelpForChat(); about.Text = TopMenu.GetAbout(); titleHours.DataContext = ClientInstances.Instance.Time; titleMinutes.DataContext = ClientInstances.Instance.Time; titleSecond.DataContext = ClientInstances.Instance.Time; Timer = new DispatcherTimer { Interval = TimeSpan.FromHours(1) }; Timer.Start(); Timer.Tick += Timer_Tick; GetDayTime(); Show(); }