Exemplo n.º 1
0
 private void AddToPanel(BaseExchangeView view)
 {
     view.set_Visible(false);
     this.panel.Controls.Add(view);
     view.set_TabIndex(1);
 }
Exemplo n.º 2
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();
 }