Exemplo n.º 1
0
 protected virtual void OnSaveCompleted(SaveCompletedEventArgs e)
 {
     if (SaveCompleted != null)
     {
         SaveCompleted(this, e);
     }
 }
Exemplo n.º 2
0
        protected override void CompletionMethod(object state)
        {
            SaveState saveState = state as SaveState;

            AsyncOperation         asyncOp = saveState.m_asyncOperation;
            SaveCompletedEventArgs e       = new SaveCompletedEventArgs(saveState.m_saveInfo, saveState.m_exception, false, asyncOp.UserSuppliedState);

            FinalizeOperation(asyncOp, e);
        }
Exemplo n.º 3
0
 protected virtual void OnSaveCompleted(SaveCompletedEventArgs e)
 {
     if (SaveCompleted != null)
         SaveCompleted(this, e);
 }
Exemplo n.º 4
0
        protected override void CompletionMethod(object state)
        {
            SaveState saveState = state as SaveState;

            AsyncOperation asyncOp = saveState.m_asyncOperation;
            SaveCompletedEventArgs e = new SaveCompletedEventArgs(saveState.m_saveInfo, saveState.m_exception, false, asyncOp.UserSuppliedState);
            FinalizeOperation(asyncOp, e);
        }
Exemplo n.º 5
0
        private void dumpSaver_SaveCompleted(object sender, SaveCompletedEventArgs e)
        {
            curProgress.OperationComplete();

            try
            {
                // TODO: this stream should be closed even if it fails
                e.Stream.Close();
            }
            catch (Exception ex)
            {
                MessageBox.Show(String.Format("Failed to save capture: {0}", ex.Message),
                                "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }