Exemplo n.º 1
0
        /// -------------------------------------------------------------------------------------------------
        /// <summary> Adds a watch label. </summary>
        ///
        /// <remarks> 19/09/2018. </remarks>
        ///
        /// <param name="l"> The l control. </param>
        /// -------------------------------------------------------------------------------------------------
        public void AddWatchLabel(Labels.Label l)
        {
            if (HasLabel(l) == null)
            {
                VarWatchData vwd = new VarWatchData();
                vwd.label = l;
                varWatchData.Insert(0, vwd);
                vwd.local = false;

                Update();
            }
        }
Exemplo n.º 2
0
        /// -------------------------------------------------------------------------------------------------
        /// <summary> Adds a local watch. </summary>
        ///
        /// <remarks> 12/09/2018. </remarks>
        ///
        /// <param name="l"> The l control. </param>
        /// -------------------------------------------------------------------------------------------------
        public void AddLocalWatch(Labels.Label l)
        {
            VarWatchData vmd = HasLabel(l);

            if (vmd != null)
            {
                vmd.localcount = 1;
            }
            else
            {
                vmd            = new VarWatchData();
                vmd.localcount = 1;
                vmd            = new VarWatchData();
                vmd.label      = l;
                varWatchData.Add(vmd);
                vmd.local = true;
            }
        }