protected virtual void OnLoadCompleted(LoadCompletedEventArgs e) { if (LoadCompleted != null) { LoadCompleted(this, e); } }
protected override void CompletionMethod(object state) { LoadState loadState = state as LoadState; AsyncOperation asyncOp = loadState.m_asyncOperation; LoadCompletedEventArgs e = new LoadCompletedEventArgs(loadState.m_dump, loadState.m_exception, false, asyncOp.UserSuppliedState); FinalizeOperation(asyncOp, e); }
private void dumpLoader_LoadCompleted(object sender, LoadCompletedEventArgs e) { if (m_curTask != null) m_curTask.Completed(); if (e.Cancelled) return; try { Dump newDump = e.Dump; if (m_curDump != null) m_curDump = null; // Dummy placeholder, switch dump here m_curDump = newDump; } catch (Exception ex) { ShowErrorMessage("Error opening dump. Please file a bug.\n\nDetails:\n" + ex.ToString()); } }
protected override void CompletionMethod(object state) { LoadState loadState = state as LoadState; AsyncOperation asyncOp = loadState.m_asyncOperation; LoadCompletedEventArgs e = new LoadCompletedEventArgs(loadState.m_dump, loadState.m_exception, false, asyncOp.UserSuppliedState); FinalizeOperation(asyncOp, e); }
protected virtual void OnLoadCompleted(LoadCompletedEventArgs e) { if (LoadCompleted != null) LoadCompleted(this, e); }
private void dumpLoader_LoadCompleted(object sender, LoadCompletedEventArgs e) { curProgress.OperationComplete(); Dump dump = null; try { dump = e.Dump; } catch (Exception ex) { MessageBox.Show(String.Format("Failed to load capture: {0}", ex.Message), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } OpenDump(dump); }