Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
        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();
            }
        }