Summary description for GridView.
Inheritance: AForge.Controls.PictureBox
Beispiel #1
0
        public GridView(MainForm parent, ref configurationGrid layout)
        {
            _mainForm = parent;
            InitializeComponent();
            _gv          = new Controls.GridView(_mainForm, ref layout, this);
            _gv.KeyDown += GridView_KeyDown;
            Controls.Add(_gv);
            _gv.Dock = DockStyle.Fill;
            _layout  = layout;
            fullScreenToolStripMenuItem.Checked  = layout.FullScreen;
            alwaysOnTopToolStripMenuItem.Checked = layout.AlwaysOnTop;
            Cg        = layout;
            Disposed += (s, a) =>
            {
                _mWindowState?.Dispose();
            };
            if (!layout.FullScreen)
            {
                _mWindowState = new PersistWindowState {
                    Parent = this, RegistryPath = @"Software\ispy\grid_" + _layout.name
                }
            }
            ;

            RenderResources();
        }
Beispiel #2
0
 public GridViewItem(string name, int objectid, int typeid, GridView gv)
 {
     _name = name;
     ObjectID = objectid;
     TypeID = typeid;
     if (gv != null)
         Init(gv);
 }
Beispiel #3
0
 public GridView(MainForm parent, ref configurationGrid layout)
 {
     InitializeComponent();
     _gv          = new Controls.GridView(parent, ref layout, this);
     _gv.KeyDown += GridView_KeyDown;
     Controls.Add(_gv);
     _gv.Dock = DockStyle.Fill;
     _layout  = layout;
     fullScreenToolStripMenuItem.Checked  = layout.FullScreen;
     alwaysOnTopToolStripMenuItem.Checked = layout.AlwaysOnTop;
     Cg = layout;
 }
Beispiel #4
0
 public GridView(MainForm parent, ref configurationGrid layout)
 {
     InitializeComponent();
     _gv = new Controls.GridView(parent, ref layout, this);
     _gv.KeyDown += GridView_KeyDown;
     Controls.Add(_gv);
     _gv.Dock = DockStyle.Fill;
     _layout = layout;
     fullScreenToolStripMenuItem.Checked = layout.FullScreen;
     alwaysOnTopToolStripMenuItem.Checked = layout.AlwaysOnTop;
     Cg = layout;
 }
Beispiel #5
0
        public GridView(MainForm parent, string layout)
        {
            InitializeComponent();
            _gv = new Controls.GridView();
            Controls.Add(_gv);
            _gv.Dock = DockStyle.Fill;
            _gv._parent = parent;

            string t = layout;
            string[] rc = t.Split('x');
            _gv.Cols = Convert.ToInt32(rc[0]);
            _gv.Rows = Convert.ToInt32(rc[1]);
        }
Beispiel #6
0
        public void Reinit(ref configurationGrid layout)
        {
            Controls.Remove(_gv);
            _gv.Dispose();

            _gv          = new Controls.GridView(_mainForm, ref layout, this);
            _gv.KeyDown += GridView_KeyDown;
            Controls.Add(_gv);

            _gv.Dock = DockStyle.Fill;
            _layout  = layout;
            Cg       = layout;
            Text     = _gv.Text;
        }
Beispiel #7
0
 public void Init(GridView gv)
 {
     MainClass = gv.MainClass;
     if (TypeID == 2)
     {
         var ctrl = MainClass.GetCameraWindow(ObjectID);
         if (ctrl != null)
         {
             LastFrame = ctrl.LastFrame;
             ctrl.NewFrame -= CameraNewFrame;
             ctrl.NewFrame += CameraNewFrame;
         }
     }
 }
Beispiel #8
0
        public GridView(MainForm parent, string layout)
        {
            InitializeComponent();
            _gv = new Controls.GridView();
            Controls.Add(_gv);
            _gv.Dock    = DockStyle.Fill;
            _gv._parent = parent;

            string t = layout;

            string[] rc = t.Split('x');
            _gv.Cols = Convert.ToInt32(rc[0]);
            _gv.Rows = Convert.ToInt32(rc[1]);
        }