private void btn_addApp_Click(object sender, EventArgs e) { GUI.Form_addGesture addGesture = new GUI.Form_addGesture(); addGesture.Gestures = m_gesturesCollection; addGesture.AppMode = true; if (addGesture.ShowDialog() == DialogResult.OK) { foreach (MyGesture gesture in addGesture.NewGestures) { MyGesture gestureToAdd = new MyGesture(gesture); gesture.SetActionIcon(iL_applications); m_gesturesCollection.Add(gestureToAdd); m_newGroups.Add(gestureToAdd); cCB_groups.AddItem(gestureToAdd.ID, gestureToAdd.Caption); } } }
private void btn_addApp_Click(object sender, EventArgs e) { GUI.Form_addGesture addGesture = new GUI.Form_addGesture(); addGesture.Gestures = m_gesturesCollection; addGesture.AppMode = true; if (addGesture.ShowDialog() == DialogResult.OK) { foreach (MyGesture gesture in addGesture.NewGestures) { MyGesture gestureToAdd = new MyGesture(gesture); gesture.SetActionIcon(iL_applications); m_gesturesCollection.Add(gestureToAdd); m_newGroups.Add(gestureToAdd); cCB_groups.AddItem(gestureToAdd.ID, gestureToAdd.Caption); } } }