Example #1
0
        public async Task SetWatchFormatAsync(string id, WatchFormat format)
        {
            var formatString = "natural";

            switch (format)
            {
            case WatchFormat.Binary:
                formatString = "binary";
                break;

            case WatchFormat.Decimal:
                formatString = "decimal";
                break;

            case WatchFormat.Hexadecimal:
                formatString = "hexadecimal";
                break;

            case WatchFormat.Octal:
                formatString = "octal";
                break;
            }

            await new VarSetFormatCommand(id, formatString).Execute(this);
        }
		public async Task SetFormat(WatchFormat format)
		{
			if (this.format != format)
			{
				await debugger.SetWatchFormatAsync(Id, format);
				this.format = format;
			}
		}
Example #3
0
        public async Task SetFormat(WatchFormat format)
        {
            if (this.format != format)
            {
                await debugger.SetWatchFormatAsync(Id, format);

                this.format = format;
            }
        }
Example #4
0
 public VariableObject()
 {
     Children = new List <VariableObject>();
     format   = WatchFormat.Natural;
 }
		public VariableObject()
		{
			Children = new List<VariableObject>();
			format = WatchFormat.Natural;
		}
 public Task SetWatchFormatAsync(string id, WatchFormat format)
 {
     throw new NotImplementedException();
 }
Example #7
0
		public async Task SetWatchFormatAsync(string id, WatchFormat format)
		{
			var formatString = "natural";

			switch (format)
			{
				case WatchFormat.Binary:
					formatString = "binary";
					break;

				case WatchFormat.Decimal:
					formatString = "decimal";
					break;

				case WatchFormat.Hexadecimal:
					formatString = "hexadecimal";
					break;

				case WatchFormat.Octal:
					formatString = "octal";
					break;
			}

			await new VarSetFormatCommand(id, formatString).Execute(this);
		}