Ejemplo n.º 1
0
 /// <summary>
 /// Clear all of the layers to their default values (by default), or specific layers with specific values if desired. This locks, then unlocks the bitmaps.
 /// </summary>
 /// <param name="visualValue">What to clear the visual map to if Layer.Visual is included in mask.</param>
 /// <param name="priorityValue">What to clear the priority map to if Layer.Priority is included in mask.</param>
 /// <param name="controlValue">What to clear the control map to if Layer.Control is included in mask.</param>
 /// <param name="auxiliaryValue">What to clear the auxiliary map to if Layer.Auxiliary is included in mask.</param>
 /// <param name="mask"></param>
 public virtual void Clear(byte visualValue = 15, byte priorityValue = 0, byte controlValue = 0, byte auxiliaryValue = 0, PictureLayer mask = PictureLayer.All)
 {
     Lock();
     if ((mask & PictureLayer.Visual) != 0)
     {
         Visual.Clear(visualValue);
     }
     if ((mask & PictureLayer.Priority) != 0)
     {
         Priority.Clear(priorityValue);
     }
     if ((mask & PictureLayer.Control) != 0)
     {
         Control.Clear(controlValue);
     }
     if ((mask & PictureLayer.Auxiliary) != 0)
     {
         Auxiliary.Clear(auxiliaryValue);
     }
     Unlock();
 }
Ejemplo n.º 2
0
        public void agregarProcesoLista()
        {
            VentanaAProcesos.process lista1 = new VentanaAProcesos.process(ProcessName.Text, Convert.ToInt32(ArriveTime.Text), Convert.ToInt32(CPUTime.Text), Convert.ToInt32(Priority.Text), "Listo",
                                                                           Convert.ToInt32(CPUTime.Text));

            processforMMU lista2 = new processforMMU(ProcessName.Text, Convert.ToInt32(CPUTime.Text), "Listo", "0");

            VentanaAProcesos.bindingsrs3.Add(lista2);


            bindingsrs.Add(lista1);
            VentanaAProcesos.bindingsrs2.Add(lista1);



            ProcesosListaInicial.Add(lista1);


            ProcessName.Clear();
            ArriveTime.Clear();
            CPUTime.Clear();
            Priority.Clear();
        }