Пример #1
0
 private void _evtNewSimultaneousItem_Click(object sender, EventArgs e)
 {
     var evt = new SimultaneousEventProvider("New Simultaneous Event");
     doNewEvent(evt);
 }
Пример #2
0
 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
     };
 }
Пример #3
0
 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);
 }