private PulseEditor createAndRegisterPulseEditor(Pulse pulse) { PulseEditor pe = new PulseEditor(pulse); pulseEditors.Add(pe); pe.pulseDeleted += new EventHandler(pe_pulseDeleted); return(pe); }
void pe_pulseDeleted(object sender, EventArgs e) { if (sender is PulseEditor) { PulseEditor pe = sender as PulseEditor; pulseEditors.Remove(pe); pulseEditorsFlowPanel.Controls.Remove(pe); pe.Dispose(); } }
private PulseEditor createAndRegisterPulseEditor(Pulse pulse) { PulseEditor pe = new PulseEditor(pulse); pulseEditors.Add(pe); pe.pulseDeleted += new EventHandler(pe_pulseDeleted); return pe; }