Exemplo n.º 1
0
        } /* Paint */

        protected override void  OnDoubleClick(DataGridViewCellEventArgs e)
        {
            if (DataGridView == null)
            {
                return;
            }

            if (e.ColumnIndex >= DataGridView.Columns.Count)
            {
                return;
            }

            ThumbNailImageColumn tnic = ((ThumbNailImageColumn)(this.DataGridView.Columns[e.ColumnIndex]));

            IWin32Window parent = tnic.Parent;

            if (parent.GetType() != typeof(PicesCommander))
            {
                return;
            }

            PicesCommander pc = (PicesCommander)parent;

            if (pc == null)
            {
                return;
            }

            pc.ThumbnailDataGridView_CellContentDoubleClick(DataGridView, e);
        } /* OnDoubleClick */
Exemplo n.º 2
0
        public DepthPlotDisplay(PicesCommander _parent,
                                PicesDataBase _dbConn,
                                String _cruiseName,
                                String _stationName,
                                String _deploymentNum
                                )
        {
            if (String.IsNullOrEmpty(_cruiseName))
            {
                cruiseName = "";
            }
            else
            {
                cruiseName = _cruiseName;
            }

            if (String.IsNullOrEmpty(_stationName))
            {
                stationName = "";
            }
            else
            {
                stationName = _stationName;
            }

            if (String.IsNullOrEmpty(_deploymentNum))
            {
                deploymentNum = "";
            }
            else
            {
                deploymentNum = _deploymentNum;
            }

            parent    = _parent;
            dbConn    = _dbConn;
            configRec = new SipperConfigRec();
        }