BLUE.NET

-------- 众里寻她千百度

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
IDataEditPage edit_page = (IDataEditPage)this.Page;
            edit_page.AddButtonVisible 
= false;
            edit_page.DelButtonVisible 
= false;
            edit_page.OperateControlVisible 
= false;
            edit_page.SaveAndAddButtonVisible 
= false;
#region IDataEditPage 成员

        
public bool SaveAndAddButtonVisible
        
{
            
get
            
{
                
return this.btnSaveAndAdd.Visible;
            }

            
set
            
{
                
this.btnSaveAndAdd.Visible = value;
            }

        }


        
public bool AddButtonVisible
        
{
            
get
            
{
                
return this.btnAdd.Visible;}

            
set
            
{
                
this.btnAdd.Visible = value;}

        }


        
public bool SaveButtonVisible
        
{
            
get
            
{
                
return this.btnSave.Visible;
            }

            
set
            
{
                
this.btnSave.Visible = value;
            }

        }


        
public bool OperateControlVisible
        
{
            
get
            
{
                
return this.tblOperate.Visible;
            }

            
set
            
{
                
this.tblOperate.Visible = value;
            }

        }


        
public bool DelButtonVisible
        
{
            
get
            
{
                
return this.btnDelete.Visible;
            }

            
set
            
{
                
this.btnDelete.Visible = value;
            }

        }


        
#endregion
#region public attribute
        
///<summary>
        
///Is show webcontrol button btnAdd
        
///</summary>

        public bool IsShow_btnAdd
        
{
            
get {return btnAdd.Visible;}
            
set {btnAdd.Visible=value;}
        }

        
///<summary>
        
///Is show webcontrol button btnAdd
        
///</summary>

        public bool IsShow_btnSave
        
{
            
get {return btnSave.Visible;}
            
set {btnSave.Visible=value;}
        }

        
///<summary>
        
///Is show webcontrol button btnAdd
        
///</summary>

        public bool IsShow_btnSaveAndAdd
        
{
            
get {return btnSaveAndAdd.Visible;}
            
set {btnSaveAndAdd.Visible=value;}
        }

        
///<summary>
        
///Is show webcontrol button btnAdd
        
///</summary>

        public bool IsShow_btnDelete
        
{
            
get {return btnDelete.Visible;}
            
set {btnDelete.Visible=value;}
        }

        
#endregion
posted on 2005-05-26 09:30  blue.net  阅读(175)  评论(0)    收藏  举报