Esempio n. 1
0
 private void block_2_MouseDown(object sender, MouseButtonEventArgs e)
 {
     if (UserLogIn.UserName == "")
     {
         MessageBox.Show("请先登录系统。若为新用户,请先注册。");
     }
     else
     {
         if (e.LeftButton == MouseButtonState.Pressed)
         {
             if (DocumentEditor_Object == null)
             {
                 DocumentEditor doc = new DocumentEditor();
                 DocumentEditor_Object = doc;
                 doc.Show();
             }
             else
             {
                 DocumentEditor_Object.Activate();
             }
         }
     }
 }