コード例 #1
0
 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();
 }
コード例 #2
0
 //Brand insert
 internal async static Task <string> InsertBrandAsync(clsBrand prBrand)
 {
     return(await InsertOrUpdateAsync(prBrand, "http://localhost:12292/api/ComputerSales/InsertArtist", "POST"));
 }