Example #1
0
        private void Btn_Evaluate_Click(object sender, EventArgs e)
        {
            var userSelected = dgv1.GetSelectedItem <PlaceDto>();

            if (userSelected != null)
            {
                var formEdit = Config.IoC.GetForm <FrmReviewEdit>();
                formEdit.PlaceId = userSelected.Id;
                formEdit.LogId   = LogId;
                OpenFormsHelpers.OpenFormDialog(formEdit);
            }
        }
Example #2
0
        private async void BtnEdit_Click(object sender, EventArgs e)
        {
            var placeSelected = dgv1.GetSelectedItem <PlaceDto>();

            if (placeSelected != null)
            {
                var formEdit = Config.IoC.GetForm <FrmPlaceEdit>();
                formEdit.PlaceId = placeSelected.Id;
                OpenFormsHelpers.OpenFormDialog(formEdit);
            }
            await FillPlacesAsync();
        }
Example #3
0
        private async void BtnEdit_Click(object sender, EventArgs e)
        {
            var userSelected = DgvUsers.GetSelectedItem <UserDto>();

            if (userSelected != null)
            {
                var formEdit = Config.IoC.GetForm <FrmUserEdit>();
                formEdit.UserId = userSelected.Id;
                OpenFormsHelpers.OpenFormDialog(formEdit);
            }

            await FillUsersAsync();
        }
Example #4
0
        private void BtnOpen_Click(object sender, EventArgs e)
        {
            var reviewSelected = dataGridView1.GetSelectedItem <ReviewDto>();

            if (reviewSelected != null)
            {
                var formEdit = Config.IoC.GetForm <FrmReviewEdit>();
                formEdit.PlaceId  = reviewSelected.PlaceId;
                formEdit.ReviewId = reviewSelected.Id;
                formEdit.List     = true;
                OpenFormsHelpers.OpenFormDialog(formEdit);
            }
        }
Example #5
0
        private async void Btn_Edit_Click(object sender, System.EventArgs e)
        {
            var countrySelected = dgvCountries.GetSelectedItem <CountryDto>();

            if (countrySelected != null)
            {
                var formEdit = Config.IoC.GetForm <FrmCountriesEdit>();
                formEdit.CountryId = countrySelected.Id;
                OpenFormsHelpers.OpenFormDialog(formEdit);
            }

            await FillCountriesAsync();
        }
Example #6
0
        private async Task EditQuota()
        {
            var dataItemSelected = dgvQuotas.GetSelectedItem <QuotaDto>();

            if (dataItemSelected != null)
            {
                var formEdit = Core.IoC.GetForm <FrmQuotaEdit>();
                formEdit.QuotaId = dataItemSelected.Id;
                OpenFormsHelpers.OpenFormDialog(formEdit);
            }

            await FillQuotas();
        }
Example #7
0
        private async void BtnNew_Click(object sender, EventArgs e)
        {
            OpenFormsHelpers.OpenFormDialog <FrmPlaceEdit>();

            await FillPlacesAsync();
        }
Example #8
0
        private async void Btn_new_Click(object sender, System.EventArgs e)
        {
            OpenFormsHelpers.OpenFormDialog <FrmCountriesEdit>();

            await FillCountriesAsync();
        }
Example #9
0
        private async void btnNew_Click(object sender, EventArgs e)
        {
            OpenFormsHelpers.OpenFormDialog <FrmQuotaEdit>();

            await FillQuotas();
        }