Example #1
0
        /// <summary>
        /// Dispose the object.
        /// </summary>
        /// <param name="Disposing">Supplies true if called from
        /// Dispose.</param>
        private void Dispose(bool Disposing)
        {
            //
            // Clean up unmanaged resources and stop the timer.
            //

            if (Connection != IntPtr.Zero)
            {
                AuroraServerNetLayerDestroy(Connection);
                Connection = IntPtr.Zero;
            }

            if (WindowTimer.Enabled)
            {
                WindowTimer.Stop();
            }
        }
Example #2
0
 /// <summary>
 /// Event to close the window when the timer has elapsed
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void WindowTimer_Tick(object sender, EventArgs e)
 {
     // Returns that the window was closed correctly and stops the timer
     CookingPageViewModel.VM.confirmationWindow.DialogResult = true;
     WindowTimer.Stop();
 }