Ejemplo n.º 1
0
 public void UnvisibleShowView()
 {
     bool flag;
     if (this.showView != null)
     {
         this.showView.set_Visible(false);
         this.showView = null;
     }
     this.save.set_Visible(false);
     this.btnPassportRequest.set_Visible((bool) (this.tabControl.SelectedTab == this.tpPassporter));
     this.lblAreaGroup.set_Enabled(flag = (bool) (this.tabControl.SelectedTab == this.tpPassporter));
     this.cbxAddressGroup.set_Enabled(flag);
 }
Ejemplo n.º 2
0
 private void AddToPanel(BaseExchangeView view)
 {
     view.set_Visible(false);
     this.panel.Controls.Add(view);
     view.set_TabIndex(1);
 }
Ejemplo n.º 3
0
 private void ShowView(BaseExchangeView view)
 {
     if ((this.showView != null) && !this.showView.Equals(view))
     {
         this.UnvisibleShowView();
     }
     view.set_Visible(true);
     view.set_TabIndex(1);
     this.showView = view;
     if (this.tabControl.SelectedTab == this.tpPassporter)
     {
         this.save.set_Visible(false);
         this.btnPassportRequest.set_Visible(true);
     }
     else
     {
         this.save.set_Visible(true);
         this.btnPassportRequest.set_Visible(false);
     }
     view.BringToFront();
 }