void item1_MouseUp(object sender, MouseButtonEventArgs e)
        {
            contentsGrid.Children.Clear();
            SelectUserInfoControl selectUserInfoControl = new SelectUserInfoControl();

            selectUserInfoControl.InitMyInfo(selectUser);
            contentsGrid.Children.Add(selectUserInfoControl);
        }
示例#2
0
        private void selectInfoChange_MouseDown(object sender, MouseButtonEventArgs e)
        {
            titleName.Content = "信息";
            contentsGrid.Children.Clear();
            SelectUserInfoControl selectUserInfoControl = new SelectUserInfoControl();

            selectUserInfoControl.InitMyInfo(selectUser);
            contentsGrid.Children.Add(selectUserInfoControl);
        }
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            listBox1.SelectedIndex = 0;
            contentsGrid.Children.Clear();
            SelectUserInfoControl selectUserInfoControl = new SelectUserInfoControl();

            selectUserInfoControl.InitMyInfo(selectUser);
            contentsGrid.Children.Add(selectUserInfoControl);
        }
 void item1_MouseUp(object sender, MouseButtonEventArgs e)
 {
     try
     {
         contentsGrid.Children.Clear();
         SelectUserInfoControl selectUserInfoControl = new SelectUserInfoControl();
         selectUserInfoControl.InitMyInfo(selectUser);
         contentsGrid.Children.Add(selectUserInfoControl);
     }
     catch (Exception ex)
     {
         string strError = ex.ToString();
         ErrorCollection.GetInstance().SetErrorInfo(strError);
     }
 }