Ejemplo n.º 1
0
        private void txtcity_TextChanged(object sender, EventArgs e)
        {
            try
            {
                search = txtcity.Text;

                Frmcity            = SqlliteDataAccess.LoadCity(search, type);
                dgvcity.DataSource = Frmcity;
            }
            catch (Exception ex)
            {
                FMessageBox.Show(ex.Message, "پیام", FMessageBoxButtons.OK, FMessageBoxIcons.Warning);
            }
        }
Ejemplo n.º 2
0
        private void LoadCity()
        {
            try
            {
                Frmcity = SqlliteDataAccess.LoadCity();

                dgvcity.DataSource = Frmcity;
                dgvcity.Columns["Code"].HeaderText = "کد";
                dgvcity.Columns["Name"].HeaderText = "نام گروه";
            }
            catch (Exception ex)
            {
                FMessageBox.Show(ex.Message, "پیام", FMessageBoxButtons.OK, FMessageBoxIcons.Warning);
            }
        }