Beispiel #1
0
        private void setLineColor(Maked tipo, DataGridViewRow linha)
        {
            switch (tipo)
            {
            case (Maked.make):
                linha.DefaultCellStyle.BackColor          = COLOR_MAKED;
                linha.DefaultCellStyle.SelectionBackColor = COLOR_MAKED;
                break;

            case (Maked.take):
                linha.DefaultCellStyle.BackColor          = COLOR_TAKED;
                linha.DefaultCellStyle.SelectionBackColor = COLOR_TAKED;
                break;

            case (Maked.makeW):
                linha.DefaultCellStyle.BackColor          = COLOR_MAKEW;
                linha.DefaultCellStyle.SelectionBackColor = COLOR_MAKEW;
                break;

            case (Maked.takeW):
                linha.DefaultCellStyle.BackColor          = COLOR_TAKEW;
                linha.DefaultCellStyle.SelectionBackColor = COLOR_TAKEW;
                break;
            }
        }
Beispiel #2
0
        private void PrintLog(Maked tipo, Action evento, string sender, string content)
        {
            dgvLog.Rows.Add(
                new string[] { evento.ToString(), DateTime.Now.ToString("hh:mm:ss.fff"),
                               sender, content });

            DataGridViewRow  linha = dgvLog.Rows[dgvLog.RowCount - 1];
            DataGridViewCell cel1  = dgvLog.Rows[dgvLog.RowCount - 1].Cells[0];

            setLineColor(tipo, linha);
            setActionColor(evento, cel1);

            dgvLog.CurrentCell = cel1;
        }
Beispiel #3
0
 private void setLineColor(Maked tipo, DataGridViewRow linha)
 {
     switch(tipo)
     {
         case(Maked.make):
             linha.DefaultCellStyle.BackColor = COLOR_MAKED;
             linha.DefaultCellStyle.SelectionBackColor = COLOR_MAKED;
             break;
         case(Maked.take):
             linha.DefaultCellStyle.BackColor = COLOR_TAKED;
             linha.DefaultCellStyle.SelectionBackColor = COLOR_TAKED;
             break;
         case (Maked.makeW):
             linha.DefaultCellStyle.BackColor = COLOR_MAKEW;
             linha.DefaultCellStyle.SelectionBackColor = COLOR_MAKEW;
             break;
         case (Maked.takeW):
             linha.DefaultCellStyle.BackColor = COLOR_TAKEW;
             linha.DefaultCellStyle.SelectionBackColor = COLOR_TAKEW;
             break;
     }
 }
Beispiel #4
0
        private void PrintLog(Maked tipo, Action evento, string sender, string content)
        {
            dgvLog.Rows.Add(
                new string[] { evento.ToString(), DateTime.Now.ToString( "hh:mm:ss.fff"),
                               sender, content });

            DataGridViewRow linha = dgvLog.Rows[dgvLog.RowCount - 1];
            DataGridViewCell cel1 = dgvLog.Rows[dgvLog.RowCount - 1].Cells[0];

            setLineColor(tipo, linha);
            setActionColor(evento, cel1);

            dgvLog.CurrentCell = cel1;
        }