Beispiel #1
0
 private void Bind(string ID)
 {
     model               = new E_Model.Main();
     model               = manage.GetModel(ID);
     txtMainName.Text    = model.MAINNAME;
     txtIcon.Text        = model.MAINICON;
     txtParent.Text      = model.PARENTID;
     txtMainUrl.Text     = model.MAINURL;
     txtDescription.Text = model.DESCRIPTION;
     txtMainList.Text    = model.SORTLIST.ToString();
     if (model.PARENTID != "00000000-0000-0000-0000-000000000000")
     {
         model            = new E_Model.Main();
         txtParentID.Text = manage.GetModel(txtParent.Text).MAINNAME;
     }
 }
Beispiel #2
0
 private void Bind()
 {
     model               = manage.GetModel(Request["ID"].ToString());
     txtMainName.Text    = model.MAINNAME;
     txtIcon.Text        = model.MAINICON;
     txtIconValue.Text   = model.MAINICON;
     txtParent.Text      = model.PARENTID;
     txtMainUrl.Text     = model.MAINURL;
     txtDescription.Text = model.DESCRIPTION;
     txtMainList.Text    = model.SORTLIST.ToString();
     if (model.PARENTID != null)
     {
         model            = new E_Model.Main();
         txtParentID.Text = manage.GetModel(txtParent.Text).MAINNAME;
     }
 }