public void Resume() { if (null != _suspendToken) { _suspendToken.Resume(); _suspendToken = null; } }
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(); }
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(); }