Пример #1
0
        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();
        }