コード例 #1
0
 public SelectionRenderer(SurfaceBoxRendererList ownerList, Selection selection, UserControl2 ownerControl)
     : base(ownerList)
 {
     this.ownerControl = ownerControl;
     this.selection = selection;
     this.selection.Changing += new EventHandler(OnSelectionChanging);
     this.selection.Changed += new EventHandler(OnSelectionChanged);
     this.components = new System.ComponentModel.Container();
     this.selectionTimer = new System.Windows.Forms.Timer(this.components);
     this.selectionTimer.Enabled = true;
     this.selectionTimer.Interval = dancingAntsInterval / 2;
     this.selectionTimer.Tick += new System.EventHandler(this.SelectionTimer_Tick);
 }
コード例 #2
0
 public SelectionRenderer(SurfaceBoxRendererList ownerList, Selection selection, UserControl2 ownerControl)
     : base(ownerList)
 {
     this.ownerControl            = ownerControl;
     this.selection               = selection;
     this.selection.Changing     += new EventHandler(OnSelectionChanging);
     this.selection.Changed      += new EventHandler(OnSelectionChanged);
     this.components              = new System.ComponentModel.Container();
     this.selectionTimer          = new System.Windows.Forms.Timer(this.components);
     this.selectionTimer.Enabled  = true;
     this.selectionTimer.Interval = dancingAntsInterval / 2;
     this.selectionTimer.Tick    += new System.EventHandler(this.SelectionTimer_Tick);
 }