CSKernelClient.cMouseWait.Dispose C# (CSharp) Method

Dispose() public method

public Dispose ( ) : void
return void
        public void Dispose()
        {
            if (m_lastCursor != null)
            {
                Cursor.Current = m_lastCursor;
            }
        }

Usage Example

Example #1
0
        public bool openDocument(String fileName)
        {
            cMouseWait mouse = new cMouseWait();
            try
            {
                if (!m_report.loadSilent(fileName))
                {
                    return false;
                }

                m_report.getLaunchInfo().setStrConnect(m_database);

                Application.DoEvents();
                
                return true;
            }
            catch (Exception ex)
            {
                return false;
            }
            finally
            {
                mouse.Dispose();
            }
        }
All Usage Examples Of CSKernelClient.cMouseWait::Dispose