Exemple #1
0
 void _delete_Click(object sender, EventArgs e)
 {
     _macroSelectDropdown.SelectedIndex = 0;
     InitializeForm("");
     this.Visible = false;
     MacroContainerEvent.Delete();
 }
Exemple #2
0
        private void _addMacro_Click(object sender, EventArgs e)
        {
            for (int i = 0; i < _maxNumber; i++)
            {
                MacroEditor current = ((MacroEditor)this.ContentTemplateContainer.FindControl(ID + "macroeditor_" + i.ToString()));

                if (!current.Visible)
                {
                    current.Visible = true;
                    MacroContainerEvent.Add();
                    break;
                }
                ;
            }
        }