Пример #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (this.IsPostBack == false)
     {
         TxtState.Focus();
         this.Form.DefaultButton = BtnAdd.UniqueID;
         DataTable ObjCountryTable = MyJobPortalModel.Country.GetCountryRecords("status='Active'");
         DdlCountry.DataSource = ObjCountryTable;
         DdlCountry.DataBind();
         DdlCountry.Items.Insert(0, new ListItem("--Select--", "--Select--"));
     }
 }
Пример #2
0
        /// <summary>
        /// 显示状态
        /// </summary>
        /// <param name="pgb"></param>
        /// <param name="txt"></param>
        /// <param name="info"></param>
        public void ShowState(string info = null)
        {
            Action pgbDelegate = () =>
            {
                Pgb.Value++;
            };

            Pgb.BeginInvoke(pgbDelegate);
            if (info != null)
            {
                Action txtDelegate = () =>
                {
                    TxtState.Text += info + "\tCompleted!" + "\r\n";
                };
                TxtState.BeginInvoke(txtDelegate);
            }
        }
Пример #3
0
 /// <summary>
 /// 初始化状态信息
 /// </summary>
 /// <param name="pgb"></param>
 /// <param name="tbx"></param>
 protected void InitalizeState()
 {
     Pgb.Value = 0;
     TxtState.Clear();
     DicTreeView["treSave"].Nodes.Clear();
 }