Beispiel #1
0
        public void AddPlugin(TPlugin plug)
        {
            var w = plug.CreateWidget();

            plugins.Add(plug);
            box.PackStart(w, plug.expand, plug.expand, 0);
        }
Beispiel #2
0
        public void Configure()
        {
            SetOrientation(cfg.Orientation);
            SetPos(cfg.Monitor, new Point(cfg.X, cfg.Y), cfg.RowHeight, cfg.Rows, cfg.Size, cfg.Dock);

            foreach (var plugCfg in cfg.Plugins)
            {
                var p = TPlugin.CreateIntance(this, plugCfg);
                AddPlugin(p);
            }
        }