public MainPanel(Form mainForm, ButtonMenu buttonMenu) { InitializeComponent(); this.mainForm = mainForm; this.buttonMenu = buttonMenu; mainForm.Controls.Add(this); }
public ExpertHelper() { InitializeComponent(); ButtonMenu buttonMenu = new ButtonMenu(this); MainPanel mainPanel = new MainPanel(this, buttonMenu); mainPanel.Visible = true; }
public WynikiWagPanel(Form mainForm, ButtonMenu buttonMenu) { InitializeComponent(); this.mainForm = mainForm; this.buttonMenu = buttonMenu; mainForm.Controls.Add(buttonMenu); buttonMenu.Visible = true; pobierzCele(); }
public WynikPanel(Dictionary <int, decimal> listaWariantowWag, int idCelu, int maksymalnaWaga, ButtonMenu buttonMenu) { InitializeComponent(); this.buttonMenu = buttonMenu; this.maksymalnaWaga = maksymalnaWaga; this.listaWariantowWag = listaWariantowWag; this.idCelu = idCelu; WykresController.setChartData(wynikChart, idCelu, listaWariantowWag); }
public KryteriumPanel(Form mainForm, ButtonMenu buttonMenu) { InitializeComponent(); pobierzCele(); mainForm.Controls.Add(buttonMenu); this.mainForm = mainForm; celRadioButton.Checked = true; this.buttonMenu = buttonMenu; buttonMenu.setKryteriumPanel(this); setButtonEnable("Dalej", false); Visible = true; pierwszyZaznaczony = 0; }
public WagiPanel(Form mainForm, ButtonMenu buttonMenu, int idCelu) { InitializeComponent(); this.mainForm = mainForm; this.idCelu = idCelu; this.buttonMenu = buttonMenu; problemTreeView.Nodes.Clear(); wariantyListBox.Items.Clear(); listaNodow = KryteriumController.pobierzDrzewo(idCelu); uzupelnijProblemWarianty(); listaIdKryteriow = KryteriumController.pobierzListeIdKryteriow(idCelu); listaNazwKryteriow = KryteriumController.pobierzListeNazwKryteriow(idCelu); wartoscNumericUpDown.Maximum = MAKSYMALNA_WAGA; sliderTrackBar.SetRange(0, MAKSYMALNA_WAGA * 100); buttonMenu.setControlEnable(buttonMenu.getButton("Dodaj"), false); buttonMenu.setControlEnable(buttonMenu.getButton("Usuń"), false); buttonMenu.setControlEnable(buttonMenu.getButton("Dalej"), false); }