Example #1
0
        private void Win_SourceInitialized(object sender, EventArgs e)
        {
            UserLogin login = new UserLogin();

            login.WindowStyle           = WindowStyle.None;
            login.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
            if (login.ShowDialog() == false)
            {
                this.Close();
            }
            else
            {
                Connect.SetUser(login.UserId);
                tip.Content = "当前用户:" + Connect.GetUser();
            }
            //tip.Content = "当前用户:1";
            //Connect.SetUser("1");
        }