private void setData(clsProceso P)
 {
     if (P != null)
     {
         txtOp.Text      = P.Operacion;
         txtNumero.Text  = P.Numero.ToString();
         txtTME.Text     = P.TME.ToString();
         txtTT.Text      = (P.TME - P.TR).ToString();
         txtTR.Text      = (P.TR).ToString();
         lblQuantum.Text = Quantum.ToString();
     }
     else
     {
         txtOp.Text      = "";
         txtNumero.Text  = "";
         txtTME.Text     = "";
         txtTT.Text      = "";
         txtTR.Text      = "";
         lblQuantum.Text = "";
     }
     dgActual.DataSource     = SetListos(ProcesosListos);
     dgConcluidos.DataSource = SetConcluidos(Concluidos);
     DrawPages();
 }
Example #2
0
        public override string ToString()
        {
            string quantumStr = Quantum.ToString();

            return(String.Format("{0} {1}{2}", Length, quantumStr.Remove(quantumStr.Length - 1).ToLower(), Length > 1 ? "s" : String.Empty));
        }