Ejemplo n.º 1
0
        public override System.Collections.ArrayList getMenuItem()
        {
            ArrayList ret = new ArrayList();
            shapeUI   ui  = new shapeUI();

            ui.label = "Text";
            System.Reflection.Assembly myAssembly = System.Reflection.Assembly.GetExecutingAssembly();
            System.IO.Stream           myStream   = myAssembly.GetManifestResourceStream("ShapeLib.icons.text.png");
            ui.image = new System.Drawing.Bitmap(myStream);


            ui.belong = "Shapes";
            ui.click  = this.btn_Click;
            ret.Add(ui);

            return(ret);
            //throw new NotImplementedException();
        }
Ejemplo n.º 2
0
        public override System.Collections.ArrayList getMenuItem()
        {
            ArrayList ret = new ArrayList();

            shapeUI ui = new shapeUI();

            ui.uitype = shapeUIType.RibbonGroup;
            ui.label  = "Tools";
            ret.Add(ui);
            shapeUI pui = new shapeUI();

            pui.label = "Pencil";
            System.Reflection.Assembly myAssembly = System.Reflection.Assembly.GetExecutingAssembly();
            System.IO.Stream           myStream   = myAssembly.GetManifestResourceStream("ShapeLib.icons.pencil.png");
            pui.image = new System.Drawing.Bitmap(myStream);


            pui.click  = btn_Click;
            pui.belong = "Tools";
            ret.Add(pui);

            return(ret);
        }
Ejemplo n.º 3
0
        public virtual System.Collections.ArrayList getMenuItem()
        {
            ArrayList ret = new ArrayList();

            shapeUI ui = new shapeUI();

            ui.uitype = shapeUIType.RibbonGroup;
            ui.label  = "Shapes";
            ret.Add(ui);

            ui       = new shapeUI();
            ui.label = "Line";
            System.Reflection.Assembly myAssembly = System.Reflection.Assembly.GetExecutingAssembly();
            System.IO.Stream           myStream   = myAssembly.GetManifestResourceStream("ShapeLib.icons.line.png");
            ui.image = new System.Drawing.Bitmap(myStream);



            ui.click  = this.btn_Click;
            ui.belong = "Shapes";
            ret.Add(ui);

            return(ret);
        }
Ejemplo n.º 4
0
        public override System.Collections.ArrayList getMenuItem()
        {
            ArrayList ret = new ArrayList();

            shapeUI ui = new shapeUI();

            ui.uitype = shapeUIType.RibbonGroup;
            ui.label  = "Colors";
            ret.Add(ui);



            ui        = new shapeUI();
            ui.uitype = shapeUIType.RibbonSmallButton;
            ui.label  = "Red";

            System.Reflection.Assembly myAssembly = System.Reflection.Assembly.GetExecutingAssembly();
            System.IO.Stream           myStream   = myAssembly.GetManifestResourceStream("ShapeLib.icons.red.png");
            ui.image = new System.Drawing.Bitmap(myStream);



            ui.click  = btn_Click;
            ui.belong = "Colors";
            ret.Add(ui);

            ui        = new shapeUI();
            ui.uitype = shapeUIType.RibbonSmallButton;
            ui.label  = "Green";

            myStream = myAssembly.GetManifestResourceStream("ShapeLib.icons.green.png");
            ui.image = new System.Drawing.Bitmap(myStream);



            ui.click  = btn_Click;
            ui.belong = "Colors";
            ret.Add(ui);

            ui        = new shapeUI();
            ui.uitype = shapeUIType.RibbonSmallButton;
            ui.label  = "Blue";
            myStream  = myAssembly.GetManifestResourceStream("ShapeLib.icons.blue.png");
            ui.image  = new System.Drawing.Bitmap(myStream);


            ui.click  = btn_Click;
            ui.belong = "Colors";
            ret.Add(ui);

            ui        = new shapeUI();
            ui.uitype = shapeUIType.RibbonSmallButton;
            ui.label  = "Black";
            myStream  = myAssembly.GetManifestResourceStream("ShapeLib.icons.black.png");
            ui.image  = new System.Drawing.Bitmap(myStream);


            ui.click  = btn_Click;
            ui.belong = "Colors";
            ret.Add(ui);

            ui        = new shapeUI();
            ui.uitype = shapeUIType.RibbonSmallButton;
            ui.label  = "White";
            myStream  = myAssembly.GetManifestResourceStream("ShapeLib.icons.white1.png");
            ui.image  = new System.Drawing.Bitmap(myStream);


            ui.click  = btn_Click;
            ui.belong = "Colors";
            ret.Add(ui);

            ui        = new shapeUI();
            ui.uitype = shapeUIType.RibbonSmallButton;
            ui.label  = "Yellow";
            myStream  = myAssembly.GetManifestResourceStream("ShapeLib.icons.yellow.png");
            ui.image  = new System.Drawing.Bitmap(myStream);


            ui.click  = btn_Click;
            ui.belong = "Colors";
            ret.Add(ui);

            ui        = new shapeUI();
            ui.uitype = shapeUIType.RibbonSmallButton;
            ui.label  = "Orange";
            myStream  = myAssembly.GetManifestResourceStream("ShapeLib.icons.orange.png");
            ui.image  = new System.Drawing.Bitmap(myStream);


            ui.click  = btn_Click;
            ui.belong = "Colors";
            ret.Add(ui);
            return(ret);
        }