コード例 #1
0
        // Called when the user quits
        public override void WillTerminate(NSNotification notification)
        {
            // Teardown resources
            statusItem.Visible = false;
            statusItem.Dispose();

            statusMenu.Dispose();

            if (popover.Shown)
            {
                popover.Close();
            }
            popover.Dispose();

            Application.Current.Quit();
        }