示例#1
0
        public NuGenMainPopupMenu(NuGenEventHandler handler, NuGenPopupMenu parent) : base(handler, parent)
        {
            InitializeComponent();

            viewMenu      = new NuGenViewPopupMenu(handler, this);
            exportMenu    = new NuGenExportPopupMenu(handler, this);
            templatesMenu = new TemplateSelector(handler, this);

            AddChild(viewMenu);
            AddChild(exportMenu);
            AddChild(templatesMenu);
        }
        public NuGenMainPopupMenu(NuGenEventHandler handler, NuGenPopupMenu parent):base(handler, parent)
        {            
            InitializeComponent();

            viewMenu = new NuGenViewPopupMenu(handler, this);
            exportMenu = new NuGenExportPopupMenu(handler, this);
            templatesMenu = new TemplateSelector(handler, this);

            AddChild(viewMenu);
            AddChild(exportMenu);
            AddChild(templatesMenu);
        }
示例#3
0
		internal virtual void  TemplateSelect()
		{
			TemplateSelector sel = new TemplateSelector(this, null);
			//UPGRADE_TODO: Method 'java.awt.Component.setLocation' was converted to 'System.Windows.Forms.Control.Location' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtComponentsetLocation_javaawtPoint'"
			System.Windows.Forms.Control temp_Control;
			//UPGRADE_NOTE: Exceptions thrown by the equivalent in .NET of method 'java.awt.Component.getLocationOnScreen' may be different. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1099'"
			temp_Control = toolButtons[TOOL_TEMPLATE];
			sel.Location = temp_Control.PointToScreen(temp_Control.Location);
			//UPGRADE_TODO: Method 'java.awt.Component.setVisible' was converted to 'System.Windows.Forms.Control.Visible' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtComponentsetVisible_boolean'"
			//UPGRADE_TODO: 'System.Windows.Forms.Application.Run' must be called to start a main form. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1135'"
			sel.Visible = true;
		}