示例#1
0
 /// <summary>
 /// Occurs whenever the form is first shown.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void FillForm_Shown(object sender, EventArgs e)
 {
     if (errMess != "OK")
     {
         ErrorForm errorForm = new ErrorForm(errMess);
         errorForm.Show();
         errorForm.Focus();
     }
 }
示例#2
0
        /// <summary>
        /// Filters the houselist based on the HouseName and the selected countryId
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnFilter_Click(object sender, EventArgs e)
        {
            //cbCountryFilter.SelectedValue -> countryID
            //cbCountryFilter.SelectedText -> countryName

            FillDgvHouses(Convert.ToInt32(cbCountryFilter.SelectedValue));
            FillLvHouses(Convert.ToInt32(cbCountryFilter.SelectedValue));
            //!!!
            //a DataGridView es a ListView kozul csak az egyikre van szuksegunk, igy a sajat projektetek eseten
            //nincs szukseg mindket metodus(hivasra) (FillDgvHouses(...), FillLvHouses(...)), csak az egyikre

            if (errMess != "OK")
            {
                ErrorForm errorForm = new ErrorForm(errMess);
                errorForm.Show();
                errorForm.Focus();
            }
        }
示例#3
0
        /// <summary>
        /// Filters the houselist based on the HouseName and the selected countryId
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnFilter_Click(object sender, EventArgs e)
        {
            //cbCountryFilter.SelectedValue -> countryID
            //cbCountryFilter.SelectedText -> countryName

            //!!!
            //a DataGridView es a ListView kozul csak az egyikre van szuksegunk, igy nincs is szukseg mindket
            //metodushivasra (FillDgvHouses(), FillLvHouses())
            FillDgvHouses(Convert.ToInt32(cbCountryFilter.SelectedValue));
            FillLvHouses(Convert.ToInt32(cbCountryFilter.SelectedValue));

            if (errMess != "OK")
            {
                ErrorForm errorForm = new ErrorForm(errMess);
                errorForm.Show();
                errorForm.Focus();
            }
        }