Exemple #1
0
 private void btnNew_Click(object sender, EventArgs e)
 {
     _isAdd           = true;
     txtName.Text     = "";
     chkExist.Checked = false;
     _model           = new DesignStructureFileModel();
     SetInterface(true);
 }
Exemple #2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (grvData.SelectedRows.Count <= 0)
            {
                return;
            }
            _isAdd           = false;
            txtName.Text     = grvData.SelectedRows[0].Cells[colFileName.Name].Value.ToString();
            chkExist.Checked = TextUtils.ToBoolean(grvData.SelectedRows[0].Cells[colExist.Name].Value.ToString());
            int iD = TextUtils.ToInt(grvData.SelectedRows[0].Cells[colID.Name].Value.ToString());

            _model = (DesignStructureFileModel)DesignStructureFileBO.Instance.FindByPK(iD);
            SetInterface(true);
        }
 protected DesignStructureFileFacade(DesignStructureFileModel model) : base(model)
 {
 }