示例#1
0
        /// -------------------------------------------------------------------------------------------------
        /// <summary> Updates this object. </summary>
        ///
        /// <remarks> 09/09/2018. </remarks>
        ///
        /// <param name="response"> The response. </param>
        /// <param name="tag">	    The tag. </param>
        /// -------------------------------------------------------------------------------------------------
        private void UIUpdate(string[] response, int tag)
        {
            ByteProviders[tag].parseData(response[0]);

            switch (tag)
            {
            case 0:
                HLHexControl.UpdateView();
                break;

            case 1:
                DEHexControl.UpdateView();
                break;

            case 2:
                BCHexControl.UpdateView();
                break;

            case 3:
                IXHexControl.UpdateView();
                break;

            case 4:
                IYHexControl.UpdateView();
                break;

            case 5:
                MEMHexControl.UpdateView();
                break;
            }
        }
示例#2
0
        public RegMemWatch()
        {
            InitializeComponent();


            ByteProviders = new ByteProvider[6];

            ByteProviders[0] = new ByteProvider();
            ByteProviders[0].init(32, 0);
            HLHexControl.Model.ByteProvider = ByteProviders[0];
            HLHexControl.UpdateView();

            ByteProviders[1] = new ByteProvider();
            ByteProviders[1].init(32, 1000);
            DEHexControl.Model.ByteProvider = ByteProviders[1];
            DEHexControl.UpdateView();

            ByteProviders[2] = new ByteProvider();
            ByteProviders[2].init(32, 1000);
            BCHexControl.Model.ByteProvider = ByteProviders[2];
            BCHexControl.UpdateView();

            ByteProviders[3] = new ByteProvider();
            ByteProviders[3].init(32, 1000);
            IXHexControl.Model.ByteProvider = ByteProviders[3];
            IXHexControl.UpdateView();

            ByteProviders[4] = new ByteProvider();
            ByteProviders[4].init(32, 1000);
            IYHexControl.Model.ByteProvider = ByteProviders[4];
            IYHexControl.UpdateView();

            ByteProviders[5] = new ByteProvider();
            ByteProviders[5].init(32, 1000);
            MEMHexControl.Model.ByteProvider = ByteProviders[5];
            MEMHexControl.UpdateView();
        }