public void TouchSignalEmit() { tlog.Debug(tag, $"TouchSignalEmit START"); var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id; var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId; tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}"); using (View view = new View()) { var testingTarget = new TouchSignal(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <TouchSignal>(testingTarget, "Should be an Instance of TouchSignal!"); try { testingTarget.Emit(Touch.GetTouchFromPtr(view.SwigCPtr.Handle)); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception: Failed!"); } testingTarget.Dispose(); } tlog.Debug(tag, $"TouchSignalEmit END (OK)"); }
public void TouchSignalConnect() { tlog.Debug(tag, $"TouchSignalConnect START"); var testingTarget = new TouchSignal(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <TouchSignal>(testingTarget, "Should be an Instance of TouchSignal!"); try { dummyCallback callback = OnDummyCallback; testingTarget.Connect(callback); testingTarget.Disconnect(callback); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception: Failed!"); } testingTarget.Dispose(); tlog.Debug(tag, $"TouchSignalConnect END (OK)"); }
public override void OnRegister() { Model.Table.ObserveAdd().Subscribe(_ => View.UpdatePoints(Model.Table)); Model.OLS.Subscribe(f => View.UpdateOLSSchedule(f)); Model.Lagrange.Subscribe(f => View.UpdateLagrangeSchedule(f)); TouchSignal.AddListener(View.OnTouch); View.Dispatcher.UpdateListener(true, ScheduleView.TOUCH, OnScheduleTouch); View.Init(Config); }
public void TouchSignalConstructor() { tlog.Debug(tag, $"TouchSignalConstructor START"); using (View view = new View()) { var testingTarget = new TouchSignal(view.SwigCPtr.Handle, false); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <TouchSignal>(testingTarget, "Should be an Instance of TouchSignal!"); testingTarget.Dispose(); } tlog.Debug(tag, $"TouchSignalConstructor END (OK)"); }
public void TouchSignalGetConnectionCount() { tlog.Debug(tag, $"TouchSignalGetConnectionCount START"); var testingTarget = new TouchSignal(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <TouchSignal>(testingTarget, "Should be an Instance of TouchSignal!"); try { testingTarget.GetConnectionCount(); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception: Failed!"); } testingTarget.Dispose(); tlog.Debug(tag, $"TouchSignalGetConnectionCount END (OK)"); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TouchSignal obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }