protected override void AfterWorkSpaceLoaded()
        {
            xwcs.core.controls.VisualControlInfo vic = Info.getVisualControlInfoByGuid(Guid.Parse(UserManagementControl.GUID));

            xwcs.core.ui.controls.XwBarButtonItem barButtonItem = new xwcs.core.ui.controls.XwBarButtonItem(vic.Name);
            barButtonItem.ItemClick += buttonClick;

            MenuAddRequest[] menuadd = new MenuAddRequest[1];
            menuadd[0] = new MenuAddRequest { destination = MenuDestination.MENU_file_open, content = barButtonItem };
            EventProxy.fireEvent(new AddToolBarRequestEvent(this, new AddToolBarRequest(menuadd)));
        }
예제 #2
0
		protected override void AfterWorkSpaceLoaded()
        {
            xwcs.core.controls.VisualControlInfo vic1 = Info.getVisualControlInfoByGuid(Guid.Parse(IterDocumentControl.GUID));
            xwcs.core.ui.controls.XwBarButtonItem barButtonItem1 = new xwcs.core.ui.controls.XwBarButtonItem(vic1.Name);
            barButtonItem1.ItemClick += openPanelHandler1;

			xwcs.core.controls.VisualControlInfo vic2 = Info.getVisualControlInfoByGuid(Guid.Parse(DocumentsControl.GUID));
			xwcs.core.ui.controls.XwBarButtonItem barButtonItem2 = new xwcs.core.ui.controls.XwBarButtonItem(vic2.Name);
			barButtonItem2.ItemClick += openPanelHandler2;

			filterButton = new xwcs.core.ui.controls.XwBarButtonItem(vic2.Name + "_ShowFilter");
			filterButton.ItemClick += ShowFilterForm;
			filterButton.Enabled = false;
			setImageToButtonItem(filterButton, "image1.png");

			MenuAddRequest[] menuadd = new MenuAddRequest[3];
            menuadd[0] = new MenuAddRequest { destination = MenuDestination.MENU_file_open, content = barButtonItem1 };
			menuadd[1] = new MenuAddRequest { destination = MenuDestination.MENU_file_open, content = barButtonItem2 };
			menuadd[2] = new MenuAddRequest { destination = MenuDestination.MENU_tool_bar, content = filterButton };


			EventProxy.fireEvent(new AddToolBarRequestEvent(this, new AddToolBarRequest(menuadd)));
        }