Exemplo n.º 1
0
        public static void Run(clsVehicle prBrandName)

        {
            Console.WriteLine("ssss {0}", prBrandName.VehicleRegNo);
            FrmVehicle lcBrandForm;

            if (string.IsNullOrEmpty(prBrandName.VehicleRegNo) ||

                !_BrandFormList.TryGetValue(prBrandName.VehicleRegNo, out lcBrandForm))

            {
                lcBrandForm = new FrmVehicle();

                if (string.IsNullOrEmpty(prBrandName.VehicleRegNo))
                {
                    lcBrandForm.SetDetails(new clsVehicle());
                }

                else

                {
                    _BrandFormList.Add(prBrandName.VehicleRegNo, lcBrandForm);

                    lcBrandForm.refreshFormFromDB(prBrandName.VehicleRegNo);
                }
            }

            else

            {
                lcBrandForm.Show();

                lcBrandForm.Activate();
            }
        }
Exemplo n.º 2
0
 public void SetDetails(clsVehicle prBrand)
 {
     _Brand = prBrand;
     //txtName.Enabled = string.IsNullOrEmpty(_Artist.Name);
     UpdateForm();
     //updateTitle(_Artist.ArtistList.GalleryName);
     Show();
 }