public OpenFlowView(RectangleF bounds, IOpenFlowDataSource dataSource) : base(bounds) { if (dataSource == null) { throw new ArgumentNullException("dataSource"); } this.dataSource = dataSource; SetupInitialState(); #if AUTOMATIC_DEMO Thread t = new Thread(delegate(object a) { for (int i = 1; i < 10; i++) { Thread.Sleep(2000); InvokeOnMainThread(delegate { SetSelectedCover(i); Console.WriteLine("Set cover: {0}", i); CenterOnSelectedCover(true); }); } }); t.Start(); #endif }
public OpenFlowView(RectangleF bounds, IOpenFlowDataSource dataSource) : base(bounds) { if (dataSource == null) throw new ArgumentNullException ("dataSource"); this.dataSource = dataSource; SetupInitialState (); #if AUTOMATIC_DEMO Thread t = new Thread (delegate (object a) { for (int i = 1; i < 10; i++){ Thread.Sleep (2000); InvokeOnMainThread (delegate { SetSelectedCover (i); Console.WriteLine ("Set cover: {0}", i); CenterOnSelectedCover (true); }); } }); t.Start (); #endif }