示例#1
0
 public EventToken(int start, IScheduleEvent evt, IEventColorProvider colorer)
 {
     _start = start;
     _event = evt;
     _colorer = colorer;
     Name = _event.Name;
 }
示例#2
0
        public AEventControl(IEventColorProvider colorer)
        {
            InitializeComponent();

            ColorProvider = colorer;

            this.ModifiedChanged += new Action(AEventControl_ModifiedChanged);
        }
示例#3
0
 public ProviderToken(IEventProvider prov, IEventColorProvider colorer)
 {
     _prov = prov;
     _colorer = colorer;
     _name = (_prov == null) ? "" : _prov.Name;
 }
 public ProviderVisitor(IEventColorProvider colorer)
 {
     _colorProvider = colorer;
 }
 public static AEventControl Create(IEventProvider provider, IEventColorProvider colorer)
 {
     ProviderVisitor visitor = new ProviderVisitor(colorer);
     visitor.TryVisit(provider);
     return visitor.Control;
 }