Beispiel #1
0
 public Secuenciador(DbSyncClient sinc)
 {
     this._sinc = sinc;
     if (SeqList.Count == 0)
     {
         SeqList = this.BuildSeqList(this._sinc);
     }
 }
Beispiel #2
0
        public controlOrdenarOperaciones(DbSyncClient s, TreeNode n)
        {
            //
            // The InitializeComponent() call is required for Windows Forms designer support.
            //
            InitializeComponent();

            //
            // TODO: Add constructor code after the InitializeComponent() call.
            //
            _n = n;
            _s = s;
            this.lOperaciones.DataSource    = _s.Operaciones;
            this.lOperaciones.DisplayMember = "Descripcion";
            this.lOperaciones.ValueMember   = "Nombre";
        }
Beispiel #3
0
        private List <object> BuildSeqList(DbSyncClient sinc)
        {
            List <object> l = new List <object>();

            //Construimos la secuencia lineal a partir del modelo de sincronización
            foreach (Operacion o in sinc.Operaciones)
            {
                l.Add(o);
                foreach (Tarea t in o.PreComprobaciones)
                {
                    l.Add(t);
                    foreach (Comando c in t.Comandos)
                    {
                        l.Add(c);
                    }
                }
                foreach (Tarea t in o.Acciones)
                {
                    l.Add(t);
                    foreach (Comando c in t.Comandos)
                    {
                        l.Add(c);
                    }
                }
                foreach (Tarea t in o.PostComprobaciones)
                {
                    l.Add(t);
                    foreach (Comando c in t.Comandos)
                    {
                        l.Add(c);
                    }
                }
                foreach (Tarea t in o.Complementos)
                {
                    l.Add(t);
                    foreach (Comando c in t.Comandos)
                    {
                        l.Add(c);
                    }
                }
            }
            return(l);
        }
Beispiel #4
0
        public static TreeNode CrearNodoDbSyncClient(DbSyncClient s)
        {
            TreeNode n0;
            TreeNode n00;

            n0      = new TreeNode();
            n0.Tag  = s;
            n0.Name = s.Nombre;
            n0.Text = s.Nombre;

            n00      = new TreeNode();
            n00.Tag  = nodosOrdenacion.operaciones;
            n00.Name = "OPS";
            n00.Text = "Operaciones";

            n0.Nodes.Add(n00);

            foreach (Operacion o in s.Operaciones)
            {
                n00.Nodes.Add(CrearNodoOperacion(o));
                n00.Expand();
            }
            return(n0);
        }
Beispiel #5
0
        public controlSesionSinc(TreeNode n)
        {
            //
            // The InitializeComponent() call is required for Windows Forms designer support.
            //
            InitializeComponent();

            //
            // TODO: Add constructor code after the InitializeComponent() call.
            //
            ToolTip tt = new ToolTip();

            tt.AutoPopDelay = 5000;
            tt.InitialDelay = 1000;
            tt.ReshowDelay  = 500;
            tt.ShowAlways   = true;
            tt.SetToolTip(this.txDesc, "Presiona 'Esc' para recuperar la descripción inicial");
            tt.SetToolTip(this.txComent, "Presiona 'Esc' para recuperar el comentario inicial");

            _nodo              = n;
            _sesion            = (DbSyncClient)n.Tag;
            this.txDesc.Text   = descInicial = _sesion.Descripcion;
            this.txComent.Text = docInicial = _sesion.Doc;
        }