Пример #1
0
 private void buttonTemplates_Click(object sender, EventArgs e)
 {
     panelMain.Controls.Clear();
     if (this._templates == null)
     {
         this._templates = new UserControls.Templates();
     }
     panelMain.Controls.Add(this._templates);
 }
        private void NewTemplateSuggestion_Load(object sender, EventArgs e)
        {
            Templates SAW = new UserControls.Templates();

            SAW.Name          = "SAW";
            SAW.AlgorithmName = "SAW";
            flowLayoutPanel1.Controls.Add(SAW);

            Templates Topsis = new UserControls.Templates();

            Topsis.Name          = "Topsis";
            Topsis.AlgorithmName = "Topsis";
            flowLayoutPanel1.Controls.Add(Topsis);
        }