//int flag = 1; public Registration() { InitializeComponent(); DDLCountry.Items.Add("Select Country"); DataSet ds = bac.GetData("spGetCountry", null); DDLCountry.DisplayMember = "Country_Name"; DDLCountry.ValueMember = "Country_Id"; DDLCountry.DataSource = ds.Tables[0]; DDLCity.Enabled = false; }
public Admin_AddHotel() { InitializeComponent(); cboxCountry.Items.Add("Select Country"); DataSet ds = bac.GetData("spGetCountry", null); cboxCountry.DisplayMember = "Country_Name"; cboxCountry.ValueMember = "Country_Id"; cboxCountry.DataSource = ds.Tables[0]; cboxCity.Enabled = false; }
public Customer_SearchHotel() { InitializeComponent(); dgCheckBox = new DataGridViewCheckBoxColumn(); dgCheckBox.HeaderText = "Select Hotel"; dataGridView1.Columns.Add(dgCheckBox); cboxCountry.Items.Add("Select Country"); DataSet ds = bac.GetData("spGetCountry", null); cboxCountry.DisplayMember = "Country_Name"; cboxCountry.ValueMember = "Country_Id"; cboxCountry.DataSource = ds.Tables[0]; cboxCity.Enabled = false; datepickerFromDate.Enabled = false; datepickerToDate.Enabled = false; cboxRoomType.SelectedIndex = 0; }