Esempio n. 1
0
 void IPostBackEventHandler.RaisePostBackEvent(string eventArgument)
 {
     object obj = this.GetObjByID(this.MultiViewID);
     if (obj != null && obj is MultiView)
     {
         MultiView multiView = (MultiView)obj;
         int index;
         if (Int32.TryParse(eventArgument, out index))
         {
             TabChangingEventArgs args = new TabChangingEventArgs(index);
             OnTabChanging(args);
             if (args.Cancel)
                 return;
             multiView.ActiveViewIndex = index;
             this.ActiveIndex = index;
         }
     }
 }
Esempio n. 2
0
 protected virtual void OnTabChanging(TabChangingEventArgs e)
 {
     TabChangingEventHandler TabChangingHandler = (TabChangingEventHandler)Events[EventTabChanging];
     if (TabChangingHandler != null)
     {
         TabChangingHandler(this, e);
     }
 }
Esempio n. 3
0
 protected void mvCaption_TabChanging(object sender, TabChangingEventArgs e)
 {
     this.upload.Visible = (e.NewActiveIndex == 0);
 }