void worker_initDataCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            memberFamilyDataGrid = (DataGrid)FindName("MemberFamilyDataGrid");
            exprienceDataGrid    = (DataGrid)FindName("ExprienceDataGrid");
            awardsDataGrid       = (DataGrid)FindName("AwardsDataGrid");
            Button choosePhtotoBtn = (Button)FindName("choosePhotoBtn");
            Image  photo           = (Image)FindName("photo");

            basicInfoGrid.DataContext = MemberAllInfoViewModel.getInstance().basic;
            MemberMoreInfo moreinfo = MemberAllInfoViewModel.getInstance().moreInfo;

            moreinfoGrid.DataContext = moreinfo;
            if (!moreinfo.photopath.Equals(""))
            {
                choosePhotoBtn.Visibility = System.Windows.Visibility.Collapsed;
                photo.Visibility          = System.Windows.Visibility.Visible;
            }
            memberFamilyDataGrid.ItemsSource = MemberAllInfoViewModel.getInstance().allMemberFamily;
            exprienceDataGrid.ItemsSource    = MemberAllInfoViewModel.getInstance().allExpriences;
            awardsDataGrid.ItemsSource       = MemberAllInfoViewModel.getInstance().allAwards;
        }
Beispiel #2
0
        private void workerForInitData_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            markTextBox          = (TextBox)FindName("mark");
            memberFamilyDataGrid = (DataGrid)FindName("MemberFamilyDataGrid");
            Button choosePhtotoBtn = (Button)FindName("choosePhotoBtn");
            Image  photo           = (Image)FindName("photo");

            MemberMoreInfo membermoreinfo = MemberAllInfoViewModel.getInstance().moreInfo;

            studentBasicInfoGrid.DataContext = MemberAllInfoViewModel.getInstance().basic;
            studentMoreInfoGrid.DataContext  = membermoreinfo;
            if (!membermoreinfo.photopath.Equals(""))
            {
                choosePhotoBtn.Visibility = System.Windows.Visibility.Collapsed;
                photo.Visibility          = System.Windows.Visibility.Visible;
            }
            memberFamilyDataGrid.ItemsSource = MemberAllInfoViewModel.getInstance().allMemberFamily;
            PhysicMoreinfo physicmoreinfo = MemberAllInfoViewModel.getInstance().physicMoreInfo;

            physicMoreInfoGrid.DataContext = physicmoreinfo;
            markTextBox.DataContext        = physicmoreinfo;
        }
 public void worker_saveMemberAllInfo(object sender, DoWorkEventArgs e)
 {
     MemberAllInfoViewModel.getInstance().saveMemberInfo(false);
 }
 public void worker_initData(object sender, DoWorkEventArgs e)
 {
     MemberAllInfoViewModel.getInstance().initData(false);
 }
 private void dynamicAddExprienceBtn_Click(object sender, RoutedEventArgs e)
 {
     MemberAllInfoViewModel.getInstance().addExprience();
 }
Beispiel #6
0
 private void workerForInitData_DoWork(object sender, DoWorkEventArgs e)
 {
     MemberAllInfoViewModel.getInstance().initData(true);
 }
Beispiel #7
0
 void addMemberFamily(MemberFamily obj)
 {
     MemberAllInfoViewModel.getInstance().addMemberFamily();
 }