Пример #1
0
        /// <summary>
        /// FormClosing event handler that's called when inverse calculator dialog
        /// is closed.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void InverseFormClosing(object sender, FormClosingEventArgs e)
        {
            m_Inverse = null;

            ISpatialDisplay display = EditingController.Current.ActiveDisplay;

            display.RestoreLastDraw();
            display.PaintNow();
        }
Пример #2
0
        /// <summary>
        /// Ensures that any special painting on the map display has been cleared.
        /// </summary>
        protected void ErasePainting()
        {
            ISpatialDisplay display = EditingController.Current.ActiveDisplay;

            display.RestoreLastDraw();
        }
Пример #3
0
 /// <summary>
 /// Indicates that any painting previously done by a command should be erased. This
 /// tells the command's active display that it should revert the display buffer to
 /// the way it was at the end of the last draw from the map model. Given that a command
 /// supports painting, it's <c>Paint</c> method will be called during idle time.
 /// </summary>
 internal void ErasePainting()
 {
     m_Draw.RestoreLastDraw();
 }