Пример #1
0
 void addMultipleToolStripMenuItem_ButtonClicked(object sender, AddMultipleUpdateArgs Panels)
 {
     for (int i = 0; i < Panels.Quantity; i++)
     {
         UrlPanel urlPanel = new UrlPanel
         {
             Url = Panels.Template,
             InputLock = false,
             Label = Panels.Label,
             panel = New_Panel(Panels.Template, false, Panels.Label)
         };
         Panel_List.Add(urlPanel);
     }
 }
Пример #2
0
        private void SaveAndDispose()
        {
            try
            {
                int    newQuantity = Convert.ToInt32(Quantity_Input.Text);
                string newTemplate = Template_Input.Text;
                string newLabel    = Label_Input.Text;

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