Пример #1
0
        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 = "******";
        }