示例#1
0
 public MainPanel(Form mainForm, ButtonMenu buttonMenu)
 {
     InitializeComponent();
     this.mainForm   = mainForm;
     this.buttonMenu = buttonMenu;
     mainForm.Controls.Add(this);
 }
示例#2
0
        public ExpertHelper()
        {
            InitializeComponent();
            ButtonMenu buttonMenu = new ButtonMenu(this);
            MainPanel  mainPanel  = new MainPanel(this, buttonMenu);

            mainPanel.Visible = true;
        }
示例#3
0
 public WynikiWagPanel(Form mainForm, ButtonMenu buttonMenu)
 {
     InitializeComponent();
     this.mainForm   = mainForm;
     this.buttonMenu = buttonMenu;
     mainForm.Controls.Add(buttonMenu);
     buttonMenu.Visible = true;
     pobierzCele();
 }
示例#4
0
 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);
 }
示例#5
0
 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;
 }
示例#6
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);
 }