Пример #1
0
        private void LoginCavetube()
        {
            var loginBox  = new LoginBox();
            var viewModel = new LoginBoxViewModel();

            viewModel.OnClose += () => {
                loginBox.Close();
            };
            loginBox.DataContext = viewModel;
            loginBox.ShowDialog();

            base.OnPropertyChanged("LoginStatus");
            this.PostName = this.config.UserId;
        }