private void teBio_TextChanged(object sender, EventArgs e) { if (BioDataChanged != null && !_isLoading) { Status = BioDataStatus.UnsavedChanges; BioDataChanged(this, e); } }
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; }
private void miSelectImage_Click(object sender, EventArgs e) { if (openCoverFile.ShowDialog() == DialogResult.OK) { _bioData.ImagePath = openCoverFile.FileName; biodatasource.ResetCurrentItem(); Status = BioDataStatus.UnsavedChanges; BioDataChanged(this, e); } }