Skip to content

Commit 3d5acc4

Browse files
committed
General clean up. Some initial work on control page
1 parent 3726047 commit 3d5acc4

30 files changed

+318
-423
lines changed

Software/OATMobile/OATCommunications/CommunicationHandlers/TcpCommunicationHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ private async Task<CommandResponse> SendCommand(string command, bool needsRespon
5252
return new CommandResponse("", false, $"Failed to send message: {e.Message}");
5353
}
5454

55-
Debug.WriteLine($"Sent {bytes}");
55+
Debug.WriteLine($"Sent {command}");
5656

5757
var respString = String.Empty;
5858

Software/OATMobile/OATMobile/OATMobile/App.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public App()
1111
{
1212
InitializeComponent();
1313

14-
DependencyService.Register<MockDataStore>();
14+
//DependencyService.Register<MockDataStore>();
1515
MainPage = new MainPage();
1616
}
1717

Loading
Loading
Loading
Loading
Loading
Loading
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
using System;
2+
using System.Reflection;
3+
using Xamarin.Forms;
4+
using Xamarin.Forms.Xaml;
5+
6+
namespace OATMobile.Converters {
7+
[ContentProperty(nameof(Source))]
8+
public class ImageResourceExtension : IMarkupExtension
9+
{
10+
public string Source { get; set; }
11+
12+
public object ProvideValue(IServiceProvider serviceProvider)
13+
{
14+
if (Source == null)
15+
{
16+
return null;
17+
}
18+
19+
// Do your translation lookup here, using whatever method you require
20+
var imageSource = ImageSource.FromResource(Source, typeof(ImageResourceExtension).GetTypeInfo().Assembly);
21+
22+
return imageSource;
23+
}
24+
}
25+
}

Software/OATMobile/OATMobile/OATMobile/Models/Item.cs

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)