//
        public override DrawElement CreateControl()
        {
            ElementWindow obj = new ElementWindow();

            //ElementPropertyWindow prop = new ElementPropertyWindow();
            //prop.InitDefaultProperty();
            //prop.InitPropertyMap();

            obj.Text     = "Window";
            obj.Location = new Point(0, 0);
            obj.Width    = 550; // Get From Prop
            obj.Height   = 400; //Get From Prop
            obj.CreateControlButton();
            //obj.Property = prop;

            Image img = FactroryImage.getInstance().getImage(IMAGES.ControlBox_png);

            obj.ListImage.Add(img);

            Add(obj);

            //m_Property = prop;

            base.CreateControl();
            return(obj);
        }
Exemplo n.º 2
0
 //
 public static FactroryImage getInstance()
 {
     if (mpCFactroryImage == null)
     {
         mpCFactroryImage = new FactroryImage();
     }
     return(mpCFactroryImage);
 }
Exemplo n.º 3
0
 private FactroryImage()
 {
     mpCFactroryImage = null;
     mbSuccess        = false;
 }