Пример #1
0
        protected override void pushData()
        {
            base.pushData();
            ClsAllProperties lcProperty = (ClsAllProperties)_Property;

            lcProperty.PropertyArea  = Convert.ToInt16(txtPropertyArea.Text);
            lcProperty.RateableValue = Convert.ToDecimal(txtRateableValue.Text);
        }
Пример #2
0
        protected override void updateForm()
        {
            base.updateForm();
            ClsAllProperties lcProperty = (ClsAllProperties)_Property;

            txtPropertyArea.Text  = lcProperty.PropertyArea.ToString();
            txtRateableValue.Text = lcProperty.RateableValue.ToString();
        }
Пример #3
0
        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();
        }
Пример #4
0
        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();
            }
        }
Пример #5
0
        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";
            }
        }
Пример #6
0
        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;
            }
        }
Пример #7
0
 public void SetDetails(ClsAllProperties prProperty)
 {
     _Property = prProperty;
     updateForm();
     ShowDialog();
 }
Пример #8
0
 public static void DispatchPropertyForm(ClsAllProperties prProperty)
 {
     _PropertiesForm[prProperty.PropertyType].DynamicInvoke(prProperty);
 }
Пример #9
0
 public static void Run(ClsAllProperties prSale)
 {
     Instance.SetDetails(prSale);
 }
Пример #10
0
 internal async static Task <string> UpdatePropertyAsync(ClsAllProperties prPoperties)
 {
     return(await InsertOrUpdateAsync(prPoperties, "http://localhost:60064/api/prsystem/PutProperty", "PUT"));
 }