示例#1
0
 private void CreateRecord(string smallDescription, string description, string isoCode)
 {
     CxCountry.CreateRecord(smallDescription, description, isoCode);
     BackPanel.Visible          = true;
     ConfirmButtonPanel.Visible = false;
     DetailPanel.Visible        = false;
     ShowInfo(MessagePanel, Resources.Resource.mRecordCreateOK);
 }
示例#2
0
        public void BindCountries(DropDownList ddl2Bind)
        {
            ddl2Bind.DataSource     = CxCountry.GetCountriesList();
            ddl2Bind.DataTextField  = "Description";
            ddl2Bind.DataValueField = "CountryId";

            ddl2Bind.DataBind();
            ddl2Bind.Items.Insert(0, new ListItem(Resources.Resource.lSelectOne, "0"));
        }
示例#3
0
        private void DeleteRecord(int code)
        {
            CxCountry.DeleteRecord(code);

            BackPanel.Visible          = true;
            ConfirmButtonPanel.Visible = false;
            DetailPanel.Visible        = false;
            ShowInfo(MessagePanel, Resources.Resource.mRecordDeleteOK);
        }