public void SetDetails(clsArtist prArtist) { _Artist = prArtist; txtName.Enabled = string.IsNullOrEmpty(_Artist.Name); UpdateForm(); UpdateDisplay(); frmMain.Instance.GalleryNameChanged += new frmMain.Notify(updateTitle); updateTitle(_Artist.ArtistList.GalleryName); Show(); }
public static void Run(clsArtist prArtist) { frmArtist lcArtistForm; if (!_ArtistFormList.TryGetValue(prArtist, out lcArtistForm)) { lcArtistForm = new frmArtist(); _ArtistFormList.Add(prArtist, lcArtistForm); lcArtistForm.SetDetails(prArtist); } else { lcArtistForm.Show(); lcArtistForm.Activate(); } }