Exemplo n.º 1
0
        public FloatLayerBase CreateLayer(Type type, out bool isShow)
        {
            //考虑到初始化体验爽滑,不用反射
            FloatLayerBase layer = null;

            if (type == typeof(InputPopDemo))
            {
                layer = new InputPopDemo();
            }
            else if (type == typeof(CalcPopDemo))
            {
                layer = new CalcPopDemo();
            }
            else if (type == typeof(TipPopDemo))
            {
                layer = new TipPopDemo();
            }

            LayerFormOption opts = LayerOption;

            isShow                  = opts.IsShow;
            layer.BorderType        = opts.BorderType;
            layer.Border3DStyle     = opts.Border3DStyle;
            layer.BorderSingleStyle = opts.BorderSingleStyle;
            layer.BorderColor       = opts.BorderColor;
            return(layer);
        }
Exemplo n.º 2
0
 public FmMDI()
 {
     InitializeComponent();
     _layerOption = new LayerFormOption();
 }