private void _evtNewSimultaneousItem_Click(object sender, EventArgs e) { var evt = new SimultaneousEventProvider("New Simultaneous Event"); doNewEvent(evt); }
public void Visit(SimultaneousEventProvider provider) { var group = provider.Group .Select(prov => (SubordinateElement)GetElement(prov)) .ToList(); Element = new SimultaneousEventElement() { Name = provider.Name, BaseColor = Color.Gray, Group = group }; }
public void Visit(SimultaneousEventElement element) { var provider = new SimultaneousEventProvider(element.Name); provider.Group.AddRange(element.Group .Select(e => GetProvider(e.Subordinate))); Provider = provider; }
public void Visit(SimultaneousEventProvider provider) { Control = new SimultaneousEventControl(provider, _colorProvider); }