示例#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();
        }
示例#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;
     }
 }
示例#3
0
 private void cancelButton_Click(object sender, EventArgs e)
 {
     m_Cmd.DialAbort(this);
 }
示例#4
0
 private void cancelButton_Click(object sender, EventArgs e)
 {
     // Abort the command.
     m_Cmd.DialAbort(this);
 }