diff --git a/projects/GKCore/AssemblyInfo.cs b/projects/GKCore/AssemblyInfo.cs index 77892ba3b..b8a227926 100644 --- a/projects/GKCore/AssemblyInfo.cs +++ b/projects/GKCore/AssemblyInfo.cs @@ -6,7 +6,7 @@ [assembly: AssemblyDescription("")] [assembly: AssemblyProduct(GKData.APP_TITLE)] [assembly: AssemblyCopyright(GKData.APP_COPYRIGHT)] -[assembly: AssemblyVersion("4.0.0.0")] +[assembly: AssemblyVersion(GKData.APP_VERSION_3X)] [assembly: AssemblyCulture("")] #if DEBUG diff --git a/projects/GKCore/GKCore/AppHost.cs b/projects/GKCore/GKCore/AppHost.cs index d79e11bd1..0db359294 100644 --- a/projects/GKCore/GKCore/AppHost.cs +++ b/projects/GKCore/GKCore/AppHost.cs @@ -269,9 +269,15 @@ public void SaveWinMRU(IBaseWindow baseWin) if (mf != null) SaveWinState(baseWin, mf); } - public abstract void SaveWinState(IBaseWindow baseWin, MRUFile mf); + public virtual void SaveWinState(IBaseWindow baseWin, MRUFile mf) + { + // May have a desktop-only implementation + } - public abstract void RestoreWinState(IBaseWindow baseWin, MRUFile mf); + public virtual void RestoreWinState(IBaseWindow baseWin, MRUFile mf) + { + // May have a desktop-only implementation + } public void RestoreWinMRU(IBaseWindow baseWin) { @@ -321,16 +327,15 @@ public void SaveLastBases() public abstract bool ExecuteWorkExt(ProgressStart proc, string title); - public abstract void LayoutWindows(WinLayout layout); + public virtual void LayoutWindows(WinLayout layout) + { + // May have a desktop-only implementation + } #region Extended clipboard functions public abstract void SetClipboardText(string text); - //public abstract void SetClipboardObject(string objTypeName, string objContent); - - //public abstract string GetClipboardObject(string objTypeName); - public void SetClipboardObj(object obj) where T : class { /*string objName = obj.GetType().FullName; @@ -374,24 +379,22 @@ public T GetClipboardObj() where T : class #region Executing environment - private static Assembly GetAssembly() + private static Assembly GetImplementationAssembly() { - Assembly asm = Assembly.GetEntryAssembly(); - if (asm == null) { - asm = Assembly.GetExecutingAssembly(); - } + Assembly asm = (fInstance != null) ? fInstance.GetType().Assembly : Assembly.GetEntryAssembly(); + if (asm == null) asm = Assembly.GetExecutingAssembly(); return asm; } public static Version GetAppVersion() { - var asm = GetAssembly(); + var asm = GetImplementationAssembly(); return (asm == null) ? null : asm.GetName().Version; } public static string GetAppCopyright() { - var asm = GetAssembly(); + var asm = GetImplementationAssembly(); if (asm == null) { return string.Empty; } else { @@ -530,7 +533,10 @@ public void WidgetClose(IWidget widget) public abstract ExtRect GetActiveScreenWorkingArea(); - public abstract void WidgetLocate(IWidgetForm view, WidgetLocation location); + public virtual void WidgetLocate(IWidgetForm view, WidgetLocation location) + { + // May have a desktop-only implementation + } protected ExtPoint WidgetLocate(ExtRect formBounds, WidgetLocation location) { diff --git a/projects/GKvX/GEDKeeperX.Android/GEDKeeperX.Android.csproj b/projects/GKvX/GEDKeeperX.Android/GEDKeeperX.Android.csproj index 1952d3937..fcb57c3b3 100644 --- a/projects/GKvX/GEDKeeperX.Android/GEDKeeperX.Android.csproj +++ b/projects/GKvX/GEDKeeperX.Android/GEDKeeperX.Android.csproj @@ -49,10 +49,11 @@ - + + + - diff --git a/projects/GKvX/GEDKeeperX.UWP/GEDKeeperX.UWP.csproj b/projects/GKvX/GEDKeeperX.UWP/GEDKeeperX.UWP.csproj index ca56ac84f..f9e30fe09 100644 --- a/projects/GKvX/GEDKeeperX.UWP/GEDKeeperX.UWP.csproj +++ b/projects/GKvX/GEDKeeperX.UWP/GEDKeeperX.UWP.csproj @@ -141,10 +141,11 @@ - + + + - diff --git a/projects/GKvX/GEDKeeperX.iOS/GEDKeeperX.iOS.csproj b/projects/GKvX/GEDKeeperX.iOS/GEDKeeperX.iOS.csproj index b8505a454..79d224822 100644 --- a/projects/GKvX/GEDKeeperX.iOS/GEDKeeperX.iOS.csproj +++ b/projects/GKvX/GEDKeeperX.iOS/GEDKeeperX.iOS.csproj @@ -123,10 +123,11 @@ - + + + - diff --git a/projects/GKvX/GEDKeeperX/GEDKeeperX.csproj b/projects/GKvX/GEDKeeperX/GEDKeeperX.csproj index 7f10c1e61..8cf10a9c2 100644 --- a/projects/GKvX/GEDKeeperX/GEDKeeperX.csproj +++ b/projects/GKvX/GEDKeeperX/GEDKeeperX.csproj @@ -24,10 +24,11 @@ - + + + - diff --git a/projects/GKvX/GEDKeeperX/GKUI/Components/GKListView.xaml.cs b/projects/GKvX/GEDKeeperX/GKUI/Components/GKListView.xaml.cs index 6528c716e..069616783 100644 --- a/projects/GKvX/GEDKeeperX/GKUI/Components/GKListView.xaml.cs +++ b/projects/GKvX/GEDKeeperX/GKUI/Components/GKListView.xaml.cs @@ -582,8 +582,10 @@ public void SelectItem(int index) item = fListMan.ContentList[index]; } - if (item != null) + if (item != null) { SelectedItem = item; + ScrollTo(item, ScrollToPosition.MakeVisible, true); + } } public void SelectItem(object rowData) diff --git a/projects/GKvX/GEDKeeperX/GKUI/Components/UIHelper.cs b/projects/GKvX/GEDKeeperX/GKUI/Components/UIHelper.cs index bdd3d6e84..11b329b47 100644 --- a/projects/GKvX/GEDKeeperX/GKUI/Components/UIHelper.cs +++ b/projects/GKvX/GEDKeeperX/GKUI/Components/UIHelper.cs @@ -81,10 +81,5 @@ public static ImageSource LoadResourceImage(Type baseType, string resName) { return ImageSource.FromResource(resName, baseType.Assembly); } - - public static void SetClipboardText(string text) - { - Clipboard.SetTextAsync(text); - } } } diff --git a/projects/GKvX/GEDKeeperX/GKUI/Forms/AboutPage.xaml b/projects/GKvX/GEDKeeperX/GKUI/Forms/AboutPage.xaml index 73aafd510..9b2ea9033 100644 --- a/projects/GKvX/GEDKeeperX/GKUI/Forms/AboutPage.xaml +++ b/projects/GKvX/GEDKeeperX/GKUI/Forms/AboutPage.xaml @@ -39,11 +39,6 @@ BackgroundColor="{StaticResource Primary}" TextColor="White" /> - -