Beispiel #1
0
 public void Resume()
 {
     if (null != _suspendToken)
     {
         _suspendToken.Resume();
         _suspendToken = null;
     }
 }
Beispiel #2
0
            public void TestSetSlot7AndSuspend(object sender, EventArgs e)
            {
                Assert.IsNotNull(sender, "Sender must be the column");
                Assert.AreEqual(typeof(Altaxo.Data.DoubleColumn), sender.GetType());
                Assert.IsNotNull(e, "Awaiting valid data change event args");
                Assert.AreEqual(typeof(Altaxo.Data.DataColumnChangedEventArgs), e.GetType());
                var ea = (Altaxo.Data.DataColumnChangedEventArgs)e;

                Assert.AreEqual(7, ea.MinRowChanged);
                Assert.AreEqual(8, ea.MaxRowChanged);
                Assert.AreEqual(false, ea.HasRowCountDecreased);
                _CallCount++;
                ;
                _suspendToken = ((Altaxo.Main.ISuspendableByToken)sender).SuspendGetToken();
            }
Beispiel #3
0
			public void TestSetSlot7AndSuspend(object sender, EventArgs e)
			{
				Assert.IsNotNull(sender, "Sender must be the column");
				Assert.AreEqual(typeof(Altaxo.Data.DoubleColumn), sender.GetType());
				Assert.IsNotNull(e, "Awaiting valid data change event args");
				Assert.AreEqual(typeof(Altaxo.Data.DataColumnChangedEventArgs), e.GetType());
				Altaxo.Data.DataColumnChangedEventArgs ea = (Altaxo.Data.DataColumnChangedEventArgs)e;
				Assert.AreEqual(7, ea.MinRowChanged);
				Assert.AreEqual(8, ea.MaxRowChanged);
				Assert.AreEqual(false, ea.HasRowCountDecreased);
				_CallCount++; ;
				_suspendToken = ((Altaxo.Main.ISuspendableByToken)sender).SuspendGetToken();
			}
Beispiel #4
0
			public void Resume()
			{
				if (null != _suspendToken)
				{
					_suspendToken.Resume();
					_suspendToken = null;
				}
			}