protected override void pushData() { base.pushData(); ClsAllProperties lcProperty = (ClsAllProperties)_Property; lcProperty.PropertyArea = Convert.ToInt16(txtPropertyArea.Text); lcProperty.RateableValue = Convert.ToDecimal(txtRateableValue.Text); }
protected override void updateForm() { base.updateForm(); ClsAllProperties lcProperty = (ClsAllProperties)_Property; txtPropertyArea.Text = lcProperty.PropertyArea.ToString(); txtRateableValue.Text = lcProperty.RateableValue.ToString(); }
internal async static Task <string> DeletePropertyAsync(ClsAllProperties prProperties) { using (HttpClient lcHttpClient = new HttpClient()) { HttpResponseMessage lcRespMessage = await lcHttpClient.DeleteAsync ($"http://localhost:60064/api/prsystem/DeleteProperty?PropertyId={prProperties.PropertyId}"); return(await lcRespMessage.Content.ReadAsStringAsync()); } throw new NotImplementedException(); }
private async void btnAddProperty_Click(object sender, EventArgs e) { string lcReply = new InputBox(ClsAllProperties.FACTORY_PROMPT).Answer; if (!string.IsNullOrEmpty(lcReply)) // not cancelled? { ClsAllProperties lcProperty = ClsAllProperties.NewProperty(lcReply[0]); lcProperty.RegionName = _Region.RegionName; PropertyForm.DispatchPropertyForm(lcProperty); refreshFormFromDB(_Region.RegionName); MainForm.Instance.UpdateDisplay(); } }
protected override void pushData() { base.pushData(); ClsAllProperties lcProperty = (ClsAllProperties)_Property; lcProperty.PropertyTerm = txtPropertyTerm.Text; lcProperty.LetFee = Convert.ToDecimal(txtLetFee.Text); if (radioFully.Checked == true) { lcProperty.Furnishing = "F"; } else if (radioPartial.Checked == true) { lcProperty.Furnishing = "P"; } else { lcProperty.Furnishing = "N"; } }
protected override void updateForm() { base.updateForm(); ClsAllProperties lcProperty = (ClsAllProperties)_Property; txtPropertyTerm.Text = lcProperty.PropertyTerm.ToString(); txtLetFee.Text = lcProperty.LetFee.ToString(); if (lcProperty.Furnishing == "F") { radioFully.Checked = true; } else if (lcProperty.Furnishing == "P") { radioPartial.Checked = true; } else { radioNone.Checked = true; } }
public void SetDetails(ClsAllProperties prProperty) { _Property = prProperty; updateForm(); ShowDialog(); }
public static void DispatchPropertyForm(ClsAllProperties prProperty) { _PropertiesForm[prProperty.PropertyType].DynamicInvoke(prProperty); }
public static void Run(ClsAllProperties prSale) { Instance.SetDetails(prSale); }
internal async static Task <string> UpdatePropertyAsync(ClsAllProperties prPoperties) { return(await InsertOrUpdateAsync(prPoperties, "http://localhost:60064/api/prsystem/PutProperty", "PUT")); }