Exemplo n.º 1
0
 void addMultipleToolStripMenuItem_ButtonClicked(object sender, SettingsUpdateArgs Panels)
 {
     for (int i = 0; i < Panels.Quantity; i++)
     {
         New_Panel(Panels.Template, false);
     }
 }
Exemplo n.º 2
0
        private void Save_Button_Click(object sender, EventArgs e)
        {
            try
            {
                int    newQuantity = Convert.ToInt32(Quantity_Input.Text);
                string newTemplate = Template_Input.Text;

                SettingsUpdateArgs args = new SettingsUpdateArgs(newQuantity, newTemplate);
                SettingsUpdated(this, args);
                this.Dispose();
            } catch (Exception AddNewException)
            {
                MessageBox.Show(AddNewException.Message);
            }
        }