Ejemplo n.º 1
0
 public void SetDetails(clsBrand prArtist)
 {
     _Brand          = prArtist;
     txtName.Enabled = string.IsNullOrEmpty(_Brand.Name);
     UpdateForm();
     UpdateDisplay();
     frmMain.Instance.GalleryNameChanged += new frmMain.Notify(updateTitle);
     updateTitle(_Brand.ArtistList.GalleryName);
     Show();
 }
Ejemplo n.º 2
0
        public static void Run(clsBrand prBrand)
        {
            frmBrand lcBrandForm;

            if (!_BrandFormList.TryGetValue(prBrand, out lcBrandForm))
            {
                lcBrandForm = new frmBrand();
                _BrandFormList.Add(prBrand, lcBrandForm);
                lcBrandForm.SetDetails(prBrand);
            }
            else
            {
                lcBrandForm.Show();
                lcBrandForm.Activate();
            }
        }