public override void Cleanup() { try { base.Cleanup(); EventArgs args = new ExcelCloseEventArgs(false); ExcelInterop.OnProcessExit(this, args); } catch (Exception ex) { Console.WriteLine(ex.StackTrace); } }
public override void Cleanup() { try { EventArgs args = new ExcelCloseEventArgs(false); ViewModel.Model.ShutDown(false, args); this.ViewModel = null; } catch (Exception ex) { Console.WriteLine(ex.StackTrace); } base.Cleanup(); GC.Collect(); }
public override void Cleanup() { try { EventArgs args = new ExcelCloseEventArgs(false); ViewModel.Model.ShutDown(false); this.ViewModel = null; ExcelInterop.OnProcessExit(this, args); } catch (Exception ex) { Console.WriteLine(ex.StackTrace); } base.Cleanup(); GC.Collect(); }
public override void Cleanup() { try { var shutdownParams = new DynamoViewModel.ShutdownParams( shutdownHost: false, allowCancellation: false); ViewModel.PerformShutdownSequence(shutdownParams); this.ViewModel = null; EventArgs args = new ExcelCloseEventArgs(false); ExcelInterop.OnProcessExit(this, args); } catch (Exception ex) { Console.WriteLine(ex.StackTrace); } base.Cleanup(); GC.Collect(); }