예제 #1
0
파일: GridArray.cs 프로젝트: jdilt/iplab
 // Set the specified cell int he specified position
 public override void SetCell( int row, int col, SourceGrid2.Cells.ICellVirtual cell )
 {
     throw new ApplicationException( "Cannot set cell for this kind of grid" );
 }
예제 #2
0
파일: GridArray.cs 프로젝트: jdilt/iplab
 // Get the value of the cell at the specified position
 public override object GetValue( SourceGrid2.Position position )
 {
     return array.GetValue( position.Row - Grid.FixedRows, position.Column - Grid.FixedColumns );
 }
예제 #3
0
파일: GridArray.cs 프로젝트: jdilt/iplab
 // Set the value of the cell at the specified position
 public override void SetValue( SourceGrid2.Position position, object val )
 {
     array.SetValue( val, position.Row - Grid.FixedRows, position.Column - Grid.FixedColumns );
     OnValueChanged( new SourceGrid2.PositionEventArgs( position, this ) );
 }
예제 #4
0
파일: GridArray.cs 프로젝트: jdilt/iplab
 // Get the value of the cell at the specified position
 public override object GetValue( SourceGrid2.Position position )
 {
     return null;
 }
예제 #5
0
파일: GridArray.cs 프로젝트: jdilt/iplab
 // Set the value of the cell at the specified position
 public override void SetValue( SourceGrid2.Position position, object val )
 {
     throw new ApplicationException( "Cannot change this kind of cell" );
 }
예제 #6
0
파일: GridArray.cs 프로젝트: jdilt/iplab
 // Set sort status
 public override void SetSortMode( SourceGrid2.Position position, SourceGrid2.GridSortMode mode )
 {
 }
예제 #7
0
파일: GridArray.cs 프로젝트: jdilt/iplab
 // Get the value of the cell at the specified position
 public override object GetValue( SourceGrid2.Position position )
 {
     return position.Row - Grid.FixedRows;
 }
예제 #8
0
파일: GridArray.cs 프로젝트: jdilt/iplab
 // Get sort status
 public override SourceGrid2.SortStatus GetSortStatus( SourceGrid2.Position position )
 {
     return new SourceGrid2.SortStatus( SourceGrid2.GridSortMode.None, false );
 }
예제 #9
0
파일: GridArray.cs 프로젝트: jdilt/iplab
 // Get the value of the cell at the specified position 
 public override object GetValue( SourceGrid2.Position position )
 {
     return position.Column - Grid.FixedColumns;
 }
예제 #10
0
        /// <summary>
        /// Sets the currently selected log entry and enables the properties
        /// button.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void gridLog_FocusRowEntered(object sender, SourceGrid2.RowEventArgs e)
        {
            btnProperties.Enabled = gridLog.Selection.SelectedRows.Length == 1;

            m_selectedentry = (FlashLogEntry) e.Row.Tag;
        }
예제 #11
0
        /// <summary>
        /// Fired when a "View" cell in the property grid is clicked.
        /// 
        /// This will request object data from the client.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="args"></param>
        private void gridProperties_ViewCellClick(object sender, SourceGrid2.PositionEventArgs args)
        {
            FlashObject obj = gridProperties.Rows[args.Position.Row].Tag as FlashObject;

            //
            // Set the selected object (so that treeObjects_AfterSelect and
            // treeObjects_AfterExpand don't trigger manager calls.
            //
            m_selectedObject = obj;

            //
            // Select and expand the node.
            //
            m_selectedObject.TreeNode.Expand();

            //
            // Set the wait cursor (to block input).
            //
            Cursor.Current = Cursors.WaitCursor;

            //
            // Request the object's properties from the client.
            //
            m_objmanager.RequestObjectProperties(obj.Path,
                new ObjectManager.ObjectRecievedHandler(objManager_ObjectRecieved));

            string path = obj.Path.ToString();

            //
            // Add it to the recent objects list if it isn't already there.
            //
            if (!lstRecentObjects.Items.Contains(path))
                lstRecentObjects.Items.Add(path);

            treeObjects.SelectedNode = obj.TreeNode;
        }
예제 #12
0
        private void gridProperties_ExecuteCellClick(object sender, SourceGrid2.PositionEventArgs args)
        {
            FlashObject obj = gridProperties.Rows[args.Position.Row].Tag as FlashObject;

            MethodExecuteForm execute = new MethodExecuteForm();

            //
            // If OK was pressed, execute the method.
            //
            if (execute.ShowDialog(this) == DialogResult.OK)
            {

            }

            execute.Dispose();
        }