Esempio n. 1
0
        /// <summary>
        /// 打开个人详情
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void AccountItemDetail_Click(object sender, RoutedEventArgs e)
        {
            //获取UserId并打开
            string UserId = ((System.Windows.Controls.Button)sender).Tag == null ? ("") : (((System.Windows.Controls.Button)sender).Tag.ToString());

            Messenger.Default.Send(UserId, UserDetailNotifications.ShowUserDetial);
            UserDetailView.GetWindow().Show();
        }
Esempio n. 2
0
 /// <summary>
 /// 获取单个用户详情窗口
 /// </summary>
 /// <returns></returns>
 internal static Window GetWindow()
 {
     if (thiswindow != null)
     {
         thiswindow.Close();
     }
     thiswindow = new UserDetailView();
     return(thiswindow);
 }