public void SetDetails(clsBrand prBrand) { _Brand = prBrand; txtName.Enabled = string.IsNullOrEmpty(_Brand.Name); //making the textfield un editable UpdateForm(); //calling method UpdateDisplay(); //calling method frmMain.Instance.ComputerNameChanged += new frmMain.Notify(updateTitle); Show(); }
//Brand insert internal async static Task <string> InsertBrandAsync(clsBrand prBrand) { return(await InsertOrUpdateAsync(prBrand, "http://localhost:12292/api/ComputerSales/InsertArtist", "POST")); }