Ejemplo n.º 1
0
 private void btnStep1Next_Click(object sender, EventArgs e)
 {
     if (this.goNextPage)
     {
         this.owner.TabSwitcher(Tabs.Settings);
     }
     else
     {
         Label lblUpdateError = this.lblUpdateError;
         lblUpdateError.Visible = false;
         this.panelUCInstrumentsContainer.Controls.Clear();
         UCInstruments ucInstruments = new UCInstruments();
         this.panelUCInstrumentsContainer.Controls.Add((Control)lblUpdateError);
         this.panelUCInstrumentsContainer.Controls.Add((Control)ucInstruments);
         this.lblHelp.Visible      = true;
         this.btnSettings.Visible  = false;
         this.btnStep1Reserve.Text = "مرحله قبل";
         this.goNextPage           = true;
     }
 }
Ejemplo n.º 2
0
 private void UCStepInstruments_Load(object sender, EventArgs e)
 {
     if (this.UpdateInstruments())
     {
         this.goNextPage = true;
         Label lblUpdateError = this.lblUpdateError;
         lblUpdateError.Visible = false;
         this.panelUCInstrumentsContainer.Controls.Clear();
         UCInstruments ucInstruments = new UCInstruments();
         this.panelUCInstrumentsContainer.Controls.Add((Control)lblUpdateError);
         this.panelUCInstrumentsContainer.Controls.Add((Control)ucInstruments);
         this.lblHelp.Visible = true;
     }
     else
     {
         this.goNextPage              = false;
         this.lblUpdateError.Visible  = true;
         this.btnStep1Reserve.Visible = true;
         this.btnSettings.Visible     = true;
     }
     this.lblConnecting.Visible = false;
     this.btnStep1Next.Enabled  = true;
 }