public override void Init()
        {
            foreach (ConfigElementAttribute attr in _configAttributes)
            {
                attr.Reset(this);
            }

            Rectangle r = Screen.PrimaryScreen.Bounds;

            _framePosition.X      = r.Width / 6;
            _framePosition.Y      = r.Height / 6;
            _framePosition.Width  = r.Width * 2 / 3;
            _framePosition.Height = r.Height * 2 / 3;

            _commands = new Commands();
            _commands.Init();
            base.Init();
        }
Beispiel #2
0
        public override void Init()
        {
            foreach(ConfigElementAttribute attr in _configAttributes) {
                attr.Reset(this);
            }

            Rectangle r = Screen.PrimaryScreen.Bounds;
            _framePosition.X = r.Width / 6;
            _framePosition.Y = r.Height / 6;
            _framePosition.Width = r.Width*2 / 3;
            _framePosition.Height = r.Height*2 / 3;

            _commands = new Commands();
            _commands.Init();
            base.Init();
        }