Ejemplo n.º 1
0
 private void butAdd_Click(object sender, System.EventArgs e)
 {
     if(listCategories.SelectedIndex==-1){
         return;
     }
     ProcButton but=new ProcButton();
     but.Category=selectedCat;
     but.ItemOrder=listViewButtons.Items.Count;
       FormProcButtonEdit FormPBE=new FormProcButtonEdit(but);
       FormPBE.IsNew=true;
       FormPBE.ShowDialog();
     changed=true;
       FillButtons();
 }
Ejemplo n.º 2
0
		private void listViewButtons_DoubleClick(object sender,EventArgs e) {
			if(listViewButtons.SelectedIndices.Count==0){
				return;
			}
			ProcButton but=ButtonList[listViewButtons.SelectedIndices[0]].Copy();
			FormProcButtonEdit FormPBE=new FormProcButtonEdit(but);
			FormPBE.ShowDialog();
			changed=true;
			FillButtons();
		}