Beispiel #1
0
        public static void RemoveBioData(BioData bd)
        {
            // delete the image if it exists
            if (bd.DaoBioData.PhotoID != null)
            {
                Dao.TitleCollectionDao.SetDeleteImage((int)bd.DaoBioData.PhotoID);
            }

            Dao.DBContext.Instance.BioDatas.DeleteOnSubmit(bd.DaoBioData);
            Dao.DBContext.Instance.SubmitChanges();
        }
        public void LoadBioData(BioData bioData)
        {
            _isLoading = true;

            _bioData = bioData;
            biodatasource.DataSource = _bioData;
            _status = BioDataStatus.Normal;

            this.pictureBox1.Image = global::OMLDatabaseEditor.Properties.Resources.people;

            _isLoading = false;
        }
Beispiel #3
0
 public static void AddBioData(BioData bd)
 {
     UpdatesImagesForBioData(bd.DaoBioData);
     Dao.DBContext.Instance.BioDatas.InsertOnSubmit(bd.DaoBioData);
     Dao.DBContext.Instance.SubmitChanges();
 }