Пример #1
0

        
Пример #2
0
        protected override void OnClick(EventArgs e)
        {
            //MessageBox.Show(GroupUniqueID);
            string message = CheckSecurityPermission(GroupUniqueID);

            if (message == string.Empty)
            {
                base.OnClick(e);
            }
            else
            {
                ButtonControlEventArgs cnt = new ButtonControlEventArgs();
                cnt.ErrorMessage = message;
                if (oError != null)
                {
                    this.oError(cnt);
                }
            }
        }
Пример #3
0
 protected override void OnClick(EventArgs e)
 {
     //MessageBox.Show(GroupUniqueID);
     string message = CheckSecurityPermission(GroupUniqueID);
     //MessageBox.Show(message);
     if ( message== string.Empty) { base.OnClick(e); }
     else
     {
         //MessageBox.Show("inside"+message);
         ButtonControlEventArgs cnt = new ButtonControlEventArgs();
         cnt.ErrorMessage = message;
         if (oError != null) { this.oError(cnt); }
     }
 }
Пример #4
0
 void OnErrorRaised(ButtonControlEventArgs e)
 {
     if (oError != null)
     {
         oError(e);
     }
 }