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

            ColorProvider = colorer;

            this.ModifiedChanged += new Action(AEventControl_ModifiedChanged);
        }
Exemple #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;
 }