private void CancelBody() { using (db = new DBWorker()) { db.Disconnect(); } InvokeCompleteStateEvent("cancel"); }
public void WritingTest() { DBWorker dBWorker = DBWorkerInit(); Simulations.TestMessageCreator(dBWorker, 4); System.Threading.Thread.Sleep(1000); dBWorker.Disconnect(); System.Threading.Thread.Sleep(1000); //DropTestDB(); //System.Threading.Thread.Sleep(1000); Assert.IsTrue(true); }
public AddSubjectsPageVM(ResponseHandler ResponseEvent, PageEnabledHandler PageEnabledEvent, LoadingStateHandler LoadingStateEvent, CompleteStateHanlder CompleteStateEvent) : base(ResponseEvent, PageEnabledEvent, LoadingStateEvent, CompleteStateEvent) { SubjectsTablePage = new SubjectsTablePage(InvokeResponseEvent, InvokePageEnabledEvent, InvokeLoadingStateEvent, InvokeCompleteStateEvent); Cancel = new MvxCommand(() => { using (db = new DBWorker()) { db?.Disconnect(); } InvokeCompleteStateEvent("cancel"); }); Next = new MvxCommand(() => InvokeCompleteStateEvent("next")); }