private void CurrentRestablecolumnAction(Action <Restablecolumn> action)
        {
            Restablecolumn restablecolumn = gridViewResTableColumn.GetFocusedRow() as Restablecolumn;

            if (restablecolumn == null)
            {
                return;
            }
            action(restablecolumn);
        }
        private void simpleButtonRestablecolumnSave_Click(object sender, EventArgs e)
        {
            if (this.ValidateChildren() == false)
            {
                return;
            }
            Restablecolumn restablecolumn = new Restablecolumn();

            restablecolumn.Objectcolumn = textEditObjectcolumn.Text.Trim();
            restablecolumn.Objectname   = textEditObjectname.Text.Trim();
            restablecolumn.Tablecolumn  = textEditTablecolumn.Text.Trim();
            restablecolumn.Tablename    = textEditTablename.Text.Trim();
            this.Save(restablecolumn);
            this.ValidateChildren();
        }
 private void Delete(Restablecolumn restablecolumn)
 {
     try
     {
         if (XtraMessageBox.Show("是否删除当前选中的数据?", "提醒", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
         {
             //rightManager.DeleteResColumn(restablecolumn.Sysid);
             this.bindingListRestablecolumn.Remove(restablecolumn);
         }
     }
     catch (Exception ex)
     {
         ExceptionAction(ex);
     }
 }
 /// <summary>
 /// 保存
 /// </summary>
 /// <param name="restablecolumn"></param>
 /// <returns></returns>
 private void Save(Restablecolumn restablecolumn)
 {
     try
     {
         //restablecolumn.Sysid = rightManager.CreateResColumn(
         //    restablecolumn.Tablename,
         //    restablecolumn.Tablecolumn,
         //    restablecolumn.Objectname,
         //    restablecolumn.Objectcolumn);
         //bindingListRestablecolumn.Add(restablecolumn);
         gridViewResTableColumn.RefreshData();
     }
     catch (Exception ex)
     {
         ExceptionAction(ex);
     }
 }
        private void gridViewRestablecolumn_CellValueChanged(object sender, DevExpress.XtraGrid.Views.Base.CellValueChangedEventArgs e)
        {
            Restablecolumn restablecolumn = gridViewResTableColumn.GetFocusedRow() as Restablecolumn;

            this.restablecolumnClient.PropertyValueChanged(restablecolumn, e.Column.FieldName);
        }