void AdvancedEventEdit()
        {
            int index = TableAdvancedEvents.SelectedRow;

            WindowPreferencesEventController.Item = TableAdvancedEventsController.Items [index];
            WindowPreferencesEventController dlg = new WindowPreferencesEventController();

            dlg.Window.ReleasedWhenClosed = true;

            NSApplication.SharedApplication.RunModalForWindow(dlg.Window);
            dlg.Window.Close();

            TableAdvancedEventsController.RefreshUI();
            this.EnableIde();
        }
		void AdvancedEventEdit()
		{
			int index = TableAdvancedEvents.SelectedRow;

			WindowPreferencesEventController.Item = TableAdvancedEventsController.Items [index];
			WindowPreferencesEventController dlg = new WindowPreferencesEventController ();
			dlg.Window.ReleasedWhenClosed = true;

			NSApplication.SharedApplication.RunModalForWindow (dlg.Window);
			dlg.Window.Close ();

			TableAdvancedEventsController.RefreshUI ();
			this.EnableIde ();
		}