Example #1
0
 /// <summary>
 /// 双击开始编辑职工信息
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void DataGridRow_MouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e)
 {
     if (((System.Windows.FrameworkElement)sender).DataContext is Lib.MemberInfoEntity CurMember)
     {
         PageEditMember pageEditMember = new PageEditMember(CurMember);
         AppSet.AppMainWindow.FrameContentPage.Content = pageEditMember;
     }
 }
Example #2
0
        //新增/编辑员工
        private void ListBoxItem_MouseLeftButtonUp_0(object sender, MouseButtonEventArgs e)
        {
            PageEditMember pageEditMember = new PageEditMember(null);

            AppSet.AppMainWindow.FrameContentPage.Content = pageEditMember;
        }