private void OpenStaffDetailWindow(string mode, string title)
        {
            var win = GetSelectedStaff();
            if (win == null && mode != FormModes.New)
            {
                Message(MessageTypes.Error, "Please Select to "+mode+ " Staff Detail");
                return;
            }

            if (mode == FormModes.New) win = new UsersDetail();

            var view = new ucStaffDetailView(mode, win.UserID);
            view.ParentContainer = this;
            OpenPopUp(view, title, 650,550);
        }
 private async void UserControl_Loaded(object sender, RoutedEventArgs e)
 {
     if (_userID > 0)
     {
         await Task.Run(() =>
         {
             User = UserRepo.FindByID(_userID);
         });
         await Task.Run(() =>
         {
             UserDetail = UserDetailRepo.FindByUserID(_userID);
         });
         await Task.Run(() =>
         {
             ExperienceList = ExperienceRepo.FindByUserID(_userID);
         });
         await Task.Run(() =>
         {
             EducationList = EducationRepo.FindByUserID(_userID);
         });
     }
 }