Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin'
Browse files Browse the repository at this point in the history
  • Loading branch information
ghuotvez committed Apr 22, 2024
2 parents f8f7b5b + 75e775c commit f6f32ca
Show file tree
Hide file tree
Showing 121 changed files with 6,491 additions and 2,639 deletions.
Binary file added Documents/GSC FIELD APP DATABASE SCHEMA.pdf
Binary file not shown.
Binary file removed Documents/GSC FIELD APP SPATIALITE SCHEMA.pdf
Binary file not shown.
20 changes: 10 additions & 10 deletions GSCFieldApp/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using Windows.UI.Xaml;
using System.Threading.Tasks;
using GSCFieldApp.Services.SettingsServices;
using GSCFieldApp.Services.DatabaseServices;
using Windows.ApplicationModel.Activation;
using GSCFieldApp.Services.SettingsServices;
using System.Threading.Tasks;
using Template10.Controls;
using Windows.UI.Xaml.Data;
using Windows.UI.ViewManagement;
using Windows.ApplicationModel.Activation;
using Windows.Foundation;
using Windows.UI.ViewManagement;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Data;

namespace GSCFieldApp
{
Expand All @@ -31,10 +31,10 @@ public App()
CacheMaxDuration = _settings.CacheMaxDuration;
ShowShellBackButton = _settings.UseShellBackButton;



#endregion

SetESRILicence();

}
Expand All @@ -51,13 +51,13 @@ public override Task OnStartAsync(StartKind startKind, IActivatedEventArgs args)
/// <returns></returns>
public override async Task OnInitializeAsync(IActivatedEventArgs args)
{

//Will enable smaller size window for desktop testing, compared to default 500x320.
ApplicationView.GetForCurrentView().SetPreferredMinSize(new Size(200, 200));

if (Window.Current.Content as ModalDialog == null)
{
// create a new frame
// create a new frame
var nav = NavigationServiceFactory(BackButton.Attach, ExistingContent.Include);

// create modal root
Expand Down
14 changes: 0 additions & 14 deletions GSCFieldApp/CSC/ESRIRuntimeLicence.cs

This file was deleted.

23 changes: 23 additions & 0 deletions GSCFieldApp/Converters/DateTimeConverter.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml.Data;

namespace GSCFieldApp.Converters
{
public class DateTimeConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, string language)
{
return new DateTimeOffset(((DateTime)value).ToUniversalTime());

}

public object ConvertBack(object value, Type targetType, object parameter, string language)
{
return ((DateTimeOffset)value).DateTime;
}
}
}
2 changes: 1 addition & 1 deletion GSCFieldApp/Converters/ElevationConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace GSCFieldApp.Converters
{
public class ElevationConverter: IValueConverter
public class ElevationConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, string language)
{
Expand Down
2 changes: 1 addition & 1 deletion GSCFieldApp/Converters/MandatoryFieldConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public object Convert(object value, Type targetType, object parameter, string la
}
else if (value.ToString() != "")
{
return value.ToString() + "*";
return value.ToString() + "*";
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion GSCFieldApp/Converters/MediaBrushConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace GSCFieldApp.Converters
/// A converter that takes a solidColorBrush and output it as a Windows.UI.Xaml.Media brush, which
/// is used for foregrounds of fonts.
/// </summary>
public class MediaBrushConverter: IValueConverter
public class MediaBrushConverter : IValueConverter
{
public Brush defaultBrush = new SolidColorBrush();

Expand Down
2 changes: 1 addition & 1 deletion GSCFieldApp/Converters/PicklistDefaultValueConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace GSCFieldApp.Converters
{
class PicklistDefaultValueConverter : IValueConverter
{

public PicklistDefaultValueConverter()
{

Expand Down
2 changes: 1 addition & 1 deletion GSCFieldApp/Converters/PicklistDescriptionConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public object Convert(object value, Type targetType, object parameter, string la
}
else if (value.ToString() != "")
{
return "(" + value.ToString() + ")";
return "(" + value.ToString() + ")";
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion GSCFieldApp/Converters/ReverseBoolConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace GSCFieldApp.Converters
{
public class ReverseBoolConverter: IValueConverter
public class ReverseBoolConverter : IValueConverter
{

public ReverseBoolConverter()
Expand Down
2 changes: 1 addition & 1 deletion GSCFieldApp/Converters/SecondOrderPicklistConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace GSCFieldApp.Converters
{
public class SecondOrderPicklistConverter:IValueConverter
public class SecondOrderPicklistConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, string language)
{
Expand Down
2 changes: 1 addition & 1 deletion GSCFieldApp/Converters/SolidColorBrushConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace GSCFieldApp.Converters
/// A converter that takes a solidcolorbrush and outputs a solidcolorbrush,
/// with a default if value is null. Used for control colors.
/// </summary>
public class SolidColorBrushConverter: IValueConverter
public class SolidColorBrushConverter : IValueConverter
{
readonly SolidColorBrush defaultBrush = new SolidColorBrush();

Expand Down
2 changes: 0 additions & 2 deletions GSCFieldApp/Converters/String2Double.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System;
using Windows.UI.Xaml.Data;
using System.Diagnostics;
using System.Globalization;

namespace GSCFieldApp.Converters
{
Expand Down
2 changes: 0 additions & 2 deletions GSCFieldApp/Converters/String2Integer.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System;
using Windows.UI.Xaml.Data;
using System.Diagnostics;
using System.Globalization;

namespace GSCFieldApp.Converters
{
Expand Down
2 changes: 1 addition & 1 deletion GSCFieldApp/Converters/TextWithAzimDegreeConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public object Convert(object value, Type targetType, object parameter, string la
return string.Format("{0}°", value);
}


}

public object ConvertBack(object value, Type targetType, object parameter, string language)
Expand Down
6 changes: 3 additions & 3 deletions GSCFieldApp/Converters/TextWithDegreeConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ public object Convert(object value, Type targetType, object parameter, string la
{
return value;
}
else

else
{
double inDegree = double.Parse(value.ToString());
inDegree = Math.Round(inDegree, 8);
return string.Format("{0}°", inDegree.ToString());
}


}

public object ConvertBack(object value, Type targetType, object parameter, string language)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace GSCFieldApp.Converters
{
public class VisibilityFromReverseBoolConverter: IValueConverter
public class VisibilityFromReverseBoolConverter : IValueConverter
{

public VisibilityFromReverseBoolConverter()
Expand Down
5 changes: 0 additions & 5 deletions GSCFieldApp/Converters/WidthFromVisibility.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Data;
using Windows.UI;

namespace GSCFieldApp.Converters
{
Expand Down
5 changes: 3 additions & 2 deletions GSCFieldApp/Dictionaries/ApplicationLiterals.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public static class ApplicationLiterals
//Will be use to keep track of user header expansion value in local settings.
public const string KeyworkdExpandLocation = "expandLocation";
public const string KeyworkdExpandStation = "expandStation";
public const string KeyworkdExpandEarthmat= "expandEarthmat";
public const string KeyworkdExpandEarthmat = "expandEarthmat";
public const string KeyworkdExpandSample = "expandSample";
public const string KeywordExpandDocument = "expandDocument";
public const string KeywordExpandStructure = "expandStructure";
Expand All @@ -16,10 +16,11 @@ public static class ApplicationLiterals
public const string KeywordExpandMineral = "expandMineral";
public const string KeywordExpandMineralAlt = "expandMineralAlteration";
public const string KeywordExpandEnv = "expandEnvironment";
public const string KeywordExpandDrill = "expandDrill";

//Will be used to keep track of user photo or document model for document dialog
public const string KeywordDocumentMode = "documentMode";
public const string KeywordDocumentHeaderTrue = "File";
public const string KeywordDocumentHeaderTrue = "Photo"; //Need to Fix this later
public const string KeywordDocumentHeaderFalse = "Photo";

//Will be used to keep track of user station travers incrementation option
Expand Down
Loading

0 comments on commit f6f32ca

Please sign in to comment.