private void dodajCelButton_Click(object sender, EventArgs e) { Visible = false; KryteriumPanel kryteriumPanel = new KryteriumPanel(mainForm, buttonMenu); mainForm.Controls.Add(kryteriumPanel); buttonMenu.setAktualnyPanel(kryteriumPanel); buttonMenu.setControlEnable(buttonMenu.getButton("Dodaj"), true); buttonMenu.setControlEnable(buttonMenu.getButton("Usuń"), false); buttonMenu.setControlEnable(buttonMenu.getButton("Wstecz"), true); buttonMenu.setControlEnable(buttonMenu.getButton("Dalej"), false); kryteriumPanel.Visible = true; buttonMenu.Visible = true; }
public void setKryteriumPanel(KryteriumPanel kryteriumPanel) { this.kryteriumPanel = kryteriumPanel; }