コード例 #1
0
        public override void FixtureTeardown()
        {
            //m_window.Close();
            m_window.PropertyTable.RemoveLocalAndGlobalSettings();
            m_window.Dispose();

            try
            {
                Directory.Delete(m_settingsPath);
            }
            catch { }

            base.FixtureTeardown();
        }
コード例 #2
0
        public void HandleKeyPress(XKeyEvent e, XWindow window, XWindow root, XWindow subwindow)
        {
            if (Convert.ToBoolean(main_win.LookupKeysym(ref e) == XKeySym.XK_q))
            {
                Console.WriteLine("Cleaning up and exiting...");

                //pix.Free ();

                gc.Dispose();

                bg_color.Dispose();
                handle_color.Dispose();

                resize_top_left_win.Dispose();
                resize_top_right_win.Dispose();
                resize_bottom_left_win.Dispose();
                resize_bottom_right_win.Dispose();

                resize_main_win.Dispose();

                main_win.Dispose();
                ev.Dispose();
                s.Dispose();
                dpy.Dispose();

                Environment.Exit(0);
            }
        }