Esempio n. 1
0
        public override void Dispose()
        {
            // If a command is running(!), abort it now.
            if (m_Cmd != null)
            {
                m_Cmd.DialAbort(null);
                m_Cmd = null;
            }

            // Get rid of the dialog that shows info about the current update feature.
            if (m_Info != null)
            {
                m_Info.Dispose();
                m_Info = null;
            }

            base.Dispose();
        }
Esempio n. 2
0
 private void IntersectForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     // If the command hasn't been finished, cancel it now.
     if (m_Cmd != null)
     {
         m_Cmd.DialAbort(null);
         m_Cmd = null;
     }
 }
Esempio n. 3
0
 private void cancelButton_Click(object sender, EventArgs e)
 {
     m_Cmd.DialAbort(this);
 }
Esempio n. 4
0
 private void cancelButton_Click(object sender, EventArgs e)
 {
     // Abort the command.
     m_Cmd.DialAbort(this);
 }