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(); }
public PrivateChat(string user, string opponent) { InitializeComponent(); ChatHost = ClientInstances.Instance.Chat.ChatHost; GameHost = ClientInstances.Instance.Chat.GameHost; User = user; Opponent = opponent; howToChat.Text = TopMenu.GetHelpForPrChat(); about.Text = TopMenu.GetAbout(); topTitle.Text += Opponent; title.Text += User; titleHours.DataContext = ClientInstances.Instance.Time; titleMinutes.DataContext = ClientInstances.Instance.Time; titleSecond.DataContext = ClientInstances.Instance.Time; Show(); }
public Login() { ChatHost = ClientInstances.Instance.ChatHost; InitializeComponent(); //Set help and about text howToLogin.Text = TopMenu.GetHelpForLogin(); about.Text = TopMenu.GetAbout(); titleHours.DataContext = ClientInstances.Instance.Time; titleMinutes.DataContext = ClientInstances.Instance.Time; titleSecond.DataContext = ClientInstances.Instance.Time; Timer = new DispatcherTimer { Interval = TimeSpan.FromSeconds(15) }; Timer.Tick += Timer_Tick; Show(); userName.Text = "afek"; password.Password = "******"; }
public Registration() { ChatHost = ClientInstances.Instance.Chat.ChatHost; InitializeComponent(); //Set help and about text howToLogin.Text = TopMenu.GetHelpForRegistration(); about.Text = TopMenu.GetAbout(); titleHours.DataContext = ClientInstances.Instance.Time; titleMinutes.DataContext = ClientInstances.Instance.Time; titleSecond.DataContext = ClientInstances.Instance.Time; Timer = new DispatcherTimer { Interval = TimeSpan.FromSeconds(30) }; Timer.Tick += Timer_Tick; Show(); }
private void SetTopMenu() { _window.about.Text = TopMenu.GetAbout(); _window.howToPlay.Text = TopMenu.GetHelpForGame(); }