Example #1
0
        /// <summary>
        /// Edit product button click
        /// </summary>
        private async Task ActionEditClickAsync(int locationId)
        {
            Spinner.InitSpinner();
            Location location = await AppServices.LocationService.GetByIdAsync(locationId);

            Spinner.StopSpinner();

            LocationForm locationForm = new LocationForm(this);

            locationForm.ShowLocationForm(location);
        }
Example #2
0
        /// <summary>
        /// Create location button click
        /// </summary>
        private void btnCreate_Click(object sender, EventArgs e)
        {
            LocationForm locationForm = new LocationForm(this);

            locationForm.ShowLocationForm();
        }