Beispiel #1
0
 public DataGridViewProgressCellPaintStateEventArgs
 (
     DataGridViewProgressCell cell,
     DataGridViewCellStyle cellStyle
 )
 {
     this.ProgressCell = cell;
     this.CellStyle    = cellStyle;
     this.CellState    = DataGridViewElementStates.None;
     Value             = 0;
     Percent           = 0f;
     Text             = string.Empty;
     ForeColorDefault = BackColorDefault = ForeColorProgress = BackColorProgress = Color.Empty;
 }
Beispiel #2
0
        //Important for deserialize with VS designer
        public override object Clone()
        {
            DataGridViewProgressCell dataGridViewCell = base.Clone() as DataGridViewProgressCell;

            if (dataGridViewCell != null)
            {
                dataGridViewCell.ProgressBarColorDefault   = this.ProgressBarColorDefault;
                dataGridViewCell.ProgressBarColorSelection = this.ProgressBarColorSelection;
                dataGridViewCell.progressBarColorQueue     = this.progressBarColorQueue;
                dataGridViewCell.progressBarColorProcess   = this.progressBarColorProcess;
                dataGridViewCell.progressBarColorError     = this.progressBarColorError;
                dataGridViewCell.progressBarColorFinish    = this.progressBarColorFinish;
            }
            return(dataGridViewCell);
        }
 public DataGridViewProgressColumn()
 {
     CellTemplate = new DataGridViewProgressCell();
 }