示例#1
0
        public PhotoMenu(NuGenMediImageCtrl parent)
        {
            mbc = new MenuButtonCollection(this.flowLayoutPanel1);
            mbc.CollectionChanged += new EventHandler(mbc_CollectionChanged);
            InitializeComponent();
            this.parent = parent;
            ngMediImage = (NuGenMediImageCtrl)this.parent;

            this.btnExit.NgMediImage       = ngMediImage;
            this.btnHelp.NgMediImage       = ngMediImage;
            this.btnPrint.NgMediImage      = ngMediImage;
            this.btnSaveAs.NgMediImage     = ngMediImage;
            this.btnLoad.NgMediImage       = ngMediImage;
            this.ribbonButton6.NgMediImage = ngMediImage;

            this.flowLayoutPanel1.ControlAdded   += new ControlEventHandler(flowLayoutPanel1_ControlAdded);
            this.flowLayoutPanel1.ControlRemoved += new ControlEventHandler(flowLayoutPanel1_ControlRemoved);
            SizeMenu();
        }
示例#2
0
        public PhotoMenu(NuGenMediImageCtrl parent)
        {
        	mbc = new MenuButtonCollection(this.flowLayoutPanel1);
        	mbc.CollectionChanged+= new EventHandler(mbc_CollectionChanged);
            InitializeComponent();
            this.parent = parent;
            ngMediImage = (NuGenMediImageCtrl)this.parent;

            this.btnExit.NgMediImage = ngMediImage;
            this.btnHelp.NgMediImage = ngMediImage;
            this.btnPrint.NgMediImage = ngMediImage;
            this.btnSaveAs.NgMediImage = ngMediImage;
            this.btnLoad.NgMediImage = ngMediImage;
            this.ribbonButton6.NgMediImage = ngMediImage;

            this.flowLayoutPanel1.ControlAdded += new ControlEventHandler(flowLayoutPanel1_ControlAdded);
            this.flowLayoutPanel1.ControlRemoved += new ControlEventHandler(flowLayoutPanel1_ControlRemoved);
            SizeMenu();
            
        }