public void DataSourceControl_Events()
        {
            PokerDataSource ds = new PokerDataSource();

            ((IDataSource)ds).DataSourceChanged += new EventHandler(Eventchecker);
            ds.DoRaiseDataSourceChangedEvent(new EventArgs());
            Eventassert("RaiseDataSourceChangedEventFail");
        }
        public void DataSourceView_Events2()
        {
            PokerDataSource     ds   = new PokerDataSource();
            PokerDataSourceView view = new PokerDataSourceView(ds, "View");

            view.DataSourceViewChanged += new EventHandler(Eventchecker);
            ds.DoRaiseDataSourceChangedEvent(new EventArgs());
            Eventassert("DataSourceViewChanged");
        }
예제 #3
0
		public void DataSourceView_Events2 () {
			PokerDataSource ds = new PokerDataSource ();
			PokerDataSourceView view = new PokerDataSourceView (ds, "View");
			view.DataSourceViewChanged += new EventHandler (Eventchecker);
			ds.DoRaiseDataSourceChangedEvent (new EventArgs ());
			Eventassert ("DataSourceViewChanged");
		}
		public void DataSourceControl_Events ()
		{
			PokerDataSource ds = new PokerDataSource ();
			((IDataSource) ds).DataSourceChanged += new EventHandler (Eventchecker);
			ds.DoRaiseDataSourceChangedEvent (new EventArgs ());
			Eventassert("RaiseDataSourceChangedEventFail");
		}