From b9f33d0270262654424b756141ad52fdcf65a209 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Mon, 15 May 2017 07:30:27 +0100 Subject: [PATCH] Corrected sharing violation when preferences file exists but it's not ours. --- osrepodbmgr.Core/Settings.cs | 23 ++++++-- osrepodbmgr.Eto.Desktop/Program.cs | 42 +++++++++++++++ .../Properties/AssemblyInfo.cs | 53 +++++++++++++++++++ osrepodbmgr.Eto.Desktop/packages.config | 4 ++ osrepodbmgr.Eto.XamMac2/Info.plist | 18 +++++++ osrepodbmgr.Eto.XamMac2/Program.cs | 42 +++++++++++++++ .../Properties/AssemblyInfo.cs | 53 +++++++++++++++++++ osrepodbmgr.Eto.XamMac2/packages.config | 4 ++ osrepodbmgr.Eto/Properties/AssemblyInfo.cs | 53 +++++++++++++++++++ osrepodbmgr.Eto/WrappersForEto.cs | 10 ++++ osrepodbmgr.Eto/dlgAdd.xeto | 6 +++ osrepodbmgr.Eto/dlgAdd.xeto.cs | 43 +++++++++++++++ osrepodbmgr.Eto/dlgBlockMedia.xeto | 6 +++ osrepodbmgr.Eto/dlgBlockMedia.xeto.cs | 43 +++++++++++++++ osrepodbmgr.Eto/dlgFilesystem.xeto | 6 +++ osrepodbmgr.Eto/dlgFilesystem.xeto.cs | 43 +++++++++++++++ osrepodbmgr.Eto/dlgHelp.xeto | 6 +++ osrepodbmgr.Eto/dlgHelp.xeto.cs | 43 +++++++++++++++ osrepodbmgr.Eto/dlgMetadata.xeto | 6 +++ osrepodbmgr.Eto/dlgMetadata.xeto.cs | 43 +++++++++++++++ osrepodbmgr.Eto/dlgOpticalDisc.xeto | 6 +++ osrepodbmgr.Eto/dlgOpticalDisc.xeto.cs | 43 +++++++++++++++ osrepodbmgr.Eto/dlgSettings.xeto | 6 +++ osrepodbmgr.Eto/dlgSettings.xeto.cs | 43 +++++++++++++++ osrepodbmgr.Eto/frmMain.xeto | 6 +++ osrepodbmgr.Eto/frmMain.xeto.cs | 43 +++++++++++++++ osrepodbmgr.Eto/osrepodbmgr.Eto.csproj | 37 +++++++++++++ osrepodbmgr.Eto/packages.config | 4 ++ ...epodbmgr.csproj => osrepodbmgr.Gtk.csproj} | 0 29 files changed, 730 insertions(+), 5 deletions(-) create mode 100644 osrepodbmgr.Eto.Desktop/Program.cs create mode 100644 osrepodbmgr.Eto.Desktop/Properties/AssemblyInfo.cs create mode 100644 osrepodbmgr.Eto.Desktop/packages.config create mode 100644 osrepodbmgr.Eto.XamMac2/Info.plist create mode 100644 osrepodbmgr.Eto.XamMac2/Program.cs create mode 100644 osrepodbmgr.Eto.XamMac2/Properties/AssemblyInfo.cs create mode 100644 osrepodbmgr.Eto.XamMac2/packages.config create mode 100644 osrepodbmgr.Eto/Properties/AssemblyInfo.cs create mode 100644 osrepodbmgr.Eto/WrappersForEto.cs create mode 100644 osrepodbmgr.Eto/dlgAdd.xeto create mode 100644 osrepodbmgr.Eto/dlgAdd.xeto.cs create mode 100644 osrepodbmgr.Eto/dlgBlockMedia.xeto create mode 100644 osrepodbmgr.Eto/dlgBlockMedia.xeto.cs create mode 100644 osrepodbmgr.Eto/dlgFilesystem.xeto create mode 100644 osrepodbmgr.Eto/dlgFilesystem.xeto.cs create mode 100644 osrepodbmgr.Eto/dlgHelp.xeto create mode 100644 osrepodbmgr.Eto/dlgHelp.xeto.cs create mode 100644 osrepodbmgr.Eto/dlgMetadata.xeto create mode 100644 osrepodbmgr.Eto/dlgMetadata.xeto.cs create mode 100644 osrepodbmgr.Eto/dlgOpticalDisc.xeto create mode 100644 osrepodbmgr.Eto/dlgOpticalDisc.xeto.cs create mode 100644 osrepodbmgr.Eto/dlgSettings.xeto create mode 100644 osrepodbmgr.Eto/dlgSettings.xeto.cs create mode 100644 osrepodbmgr.Eto/frmMain.xeto create mode 100644 osrepodbmgr.Eto/frmMain.xeto.cs create mode 100644 osrepodbmgr.Eto/osrepodbmgr.Eto.csproj create mode 100644 osrepodbmgr.Eto/packages.config rename osrepodbmgr/{osrepodbmgr.csproj => osrepodbmgr.Gtk.csproj} (100%) diff --git a/osrepodbmgr.Core/Settings.cs b/osrepodbmgr.Core/Settings.cs index 8735ff8..3f678aa 100644 --- a/osrepodbmgr.Core/Settings.cs +++ b/osrepodbmgr.Core/Settings.cs @@ -51,6 +51,9 @@ namespace osrepodbmgr.Core Current = new SetSettings(); DiscImageChef.Interop.PlatformID ptID = DiscImageChef.Interop.DetectOS.GetRealPlatformID(); + FileStream prefsFs = null; + StreamReader prefsSr = null; + try { switch(ptID) @@ -67,7 +70,8 @@ namespace osrepodbmgr.Core SaveSettings(); } - NSDictionary parsedPreferences = (NSDictionary)BinaryPropertyListParser.Parse(new FileInfo(preferencesFilePath)); + prefsFs = new FileStream(preferencesFilePath, FileMode.Open); + NSDictionary parsedPreferences = (NSDictionary)BinaryPropertyListParser.Parse(prefsFs); if(parsedPreferences != null) { NSObject obj; @@ -107,8 +111,12 @@ namespace osrepodbmgr.Core } else Current.CompressionAlgorithm = AlgoEnum.GZip; + + prefsFs.Close(); } else { + prefsFs.Close(); + SetDefaultSettings(); SaveSettings(); } @@ -157,15 +165,20 @@ namespace osrepodbmgr.Core } XmlSerializer xs = new XmlSerializer(Current.GetType()); - StreamReader sr = new StreamReader(settingsPath); - Current = (SetSettings)xs.Deserialize(sr); - sr.Close(); + prefsSr = new StreamReader(settingsPath); + Current = (SetSettings)xs.Deserialize(prefsSr); + prefsSr.Close(); } break; } } catch { + if(prefsFs != null) + prefsFs.Close(); + if(prefsSr != null) + prefsSr.Close(); + SetDefaultSettings(); SaveSettings(); } @@ -187,7 +200,7 @@ namespace osrepodbmgr.Core root.Add("DatabasePath", Current.DatabasePath); root.Add("RepositoryPath", Current.RepositoryPath); root.Add("UnArchiverPath", Current.UnArchiverPath); - root.Add("CompressionAlgorithm", Current.CompressionAlgorithm); + root.Add("CompressionAlgorithm", Current.CompressionAlgorithm.ToString()); string preferencesPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Library", "Preferences"); string preferencesFilePath = Path.Combine(preferencesPath, "com.claunia.museum.osrepodbmgr.plist"); diff --git a/osrepodbmgr.Eto.Desktop/Program.cs b/osrepodbmgr.Eto.Desktop/Program.cs new file mode 100644 index 0000000..38bafd6 --- /dev/null +++ b/osrepodbmgr.Eto.Desktop/Program.cs @@ -0,0 +1,42 @@ +// +// Author: +// Natalia Portillo claunia@claunia.com +// +// Copyright (c) 2017, © Claunia.com +// +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +// +// * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in +// the documentation and/or other materials provided with the distribution. +// * Neither the name of the [ORGANIZATION] nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR +// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +using System; +using Eto; +using Eto.Forms; + +namespace osrepodbmgr.Eto.Desktop +{ + public class Program + { + [STAThread] + public static void Main(string[] args) + { + new Application(Platform.Detect).Run(new MainForm()); + } + } +} diff --git a/osrepodbmgr.Eto.Desktop/Properties/AssemblyInfo.cs b/osrepodbmgr.Eto.Desktop/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..22626d1 --- /dev/null +++ b/osrepodbmgr.Eto.Desktop/Properties/AssemblyInfo.cs @@ -0,0 +1,53 @@ +// +// Author: +// Natalia Portillo claunia@claunia.com +// +// Copyright (c) 2017, © Claunia.com +// +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +// +// * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in +// the documentation and/or other materials provided with the distribution. +// * Neither the name of the [ORGANIZATION] nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR +// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +using System.Reflection; +using System.Runtime.CompilerServices; + +// Information about this assembly is defined by the following attributes. +// Change them to the values specific to your project. + +[assembly: AssemblyTitle("osrepodbmgr.Eto.Desktop")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Claunia.com")] +[assembly: AssemblyProduct("")] +[assembly: AssemblyCopyright("© Claunia.com")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". +// The form "{Major}.{Minor}.*" will automatically update the build and revision, +// and "{Major}.{Minor}.{Build}.*" will update just the revision. + +[assembly: AssemblyVersion("1.0.*")] + +// The following attributes are used to specify the signing key for the assembly, +// if desired. See the Mono documentation for more information about signing. + +//[assembly: AssemblyDelaySign(false)] +//[assembly: AssemblyKeyFile("")] diff --git a/osrepodbmgr.Eto.Desktop/packages.config b/osrepodbmgr.Eto.Desktop/packages.config new file mode 100644 index 0000000..7c00dac --- /dev/null +++ b/osrepodbmgr.Eto.Desktop/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/osrepodbmgr.Eto.XamMac2/Info.plist b/osrepodbmgr.Eto.XamMac2/Info.plist new file mode 100644 index 0000000..5b154d5 --- /dev/null +++ b/osrepodbmgr.Eto.XamMac2/Info.plist @@ -0,0 +1,18 @@ + + + + + CFBundleIconFile + TestIcon.icns + CFBundleIdentifier + com.yourcompany.osrepodbmgr.Eto.XamMac2 + CFBundleName + osrepodbmgr.Eto.XamMac2 + CFBundleVersion + 1 + LSMinimumSystemVersion + 10.6 + NSPrincipalClass + NSApplication + + diff --git a/osrepodbmgr.Eto.XamMac2/Program.cs b/osrepodbmgr.Eto.XamMac2/Program.cs new file mode 100644 index 0000000..520d1c1 --- /dev/null +++ b/osrepodbmgr.Eto.XamMac2/Program.cs @@ -0,0 +1,42 @@ +// +// Author: +// Natalia Portillo claunia@claunia.com +// +// Copyright (c) 2017, © Claunia.com +// +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +// +// * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in +// the documentation and/or other materials provided with the distribution. +// * Neither the name of the [ORGANIZATION] nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR +// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +using System; +using Eto; +using Eto.Forms; + +namespace osrepodbmgr.Eto.XamMac2 +{ + public class Program + { + [STAThread] + public static void Main(string[] args) + { + new Application(Platforms.XamMac2).Run(new MainForm()); + } + } +} diff --git a/osrepodbmgr.Eto.XamMac2/Properties/AssemblyInfo.cs b/osrepodbmgr.Eto.XamMac2/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..f016522 --- /dev/null +++ b/osrepodbmgr.Eto.XamMac2/Properties/AssemblyInfo.cs @@ -0,0 +1,53 @@ +// +// Author: +// Natalia Portillo claunia@claunia.com +// +// Copyright (c) 2017, © Claunia.com +// +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +// +// * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in +// the documentation and/or other materials provided with the distribution. +// * Neither the name of the [ORGANIZATION] nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR +// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +using System.Reflection; +using System.Runtime.CompilerServices; + +// Information about this assembly is defined by the following attributes. +// Change them to the values specific to your project. + +[assembly: AssemblyTitle("osrepodbmgr.Eto.XamMac2")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Claunia.com")] +[assembly: AssemblyProduct("")] +[assembly: AssemblyCopyright("© Claunia.com")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". +// The form "{Major}.{Minor}.*" will automatically update the build and revision, +// and "{Major}.{Minor}.{Build}.*" will update just the revision. + +[assembly: AssemblyVersion("1.0.*")] + +// The following attributes are used to specify the signing key for the assembly, +// if desired. See the Mono documentation for more information about signing. + +//[assembly: AssemblyDelaySign(false)] +//[assembly: AssemblyKeyFile("")] diff --git a/osrepodbmgr.Eto.XamMac2/packages.config b/osrepodbmgr.Eto.XamMac2/packages.config new file mode 100644 index 0000000..7c00dac --- /dev/null +++ b/osrepodbmgr.Eto.XamMac2/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/osrepodbmgr.Eto/Properties/AssemblyInfo.cs b/osrepodbmgr.Eto/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..bd0f0a5 --- /dev/null +++ b/osrepodbmgr.Eto/Properties/AssemblyInfo.cs @@ -0,0 +1,53 @@ +// +// Author: +// Natalia Portillo claunia@claunia.com +// +// Copyright (c) 2017, © Claunia.com +// +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +// +// * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in +// the documentation and/or other materials provided with the distribution. +// * Neither the name of the [ORGANIZATION] nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR +// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +using System.Reflection; +using System.Runtime.CompilerServices; + +// Information about this assembly is defined by the following attributes. +// Change them to the values specific to your project. + +[assembly: AssemblyTitle("osrepodbmgr.Eto")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Claunia.com")] +[assembly: AssemblyProduct("")] +[assembly: AssemblyCopyright("© Claunia.com")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". +// The form "{Major}.{Minor}.*" will automatically update the build and revision, +// and "{Major}.{Minor}.{Build}.*" will update just the revision. + +[assembly: AssemblyVersion("1.0.*")] + +// The following attributes are used to specify the signing key for the assembly, +// if desired. See the Mono documentation for more information about signing. + +//[assembly: AssemblyDelaySign(false)] +//[assembly: AssemblyKeyFile("")] diff --git a/osrepodbmgr.Eto/WrappersForEto.cs b/osrepodbmgr.Eto/WrappersForEto.cs new file mode 100644 index 0000000..b0129ab --- /dev/null +++ b/osrepodbmgr.Eto/WrappersForEto.cs @@ -0,0 +1,10 @@ +using System; +namespace osrepodbmgr.Eto +{ + public class WrappersForEto + { + public WrappersForEto() + { + } + } +} diff --git a/osrepodbmgr.Eto/dlgAdd.xeto b/osrepodbmgr.Eto/dlgAdd.xeto new file mode 100644 index 0000000..e309770 --- /dev/null +++ b/osrepodbmgr.Eto/dlgAdd.xeto @@ -0,0 +1,6 @@ + + + + + + diff --git a/osrepodbmgr.Eto/dlgAdd.xeto.cs b/osrepodbmgr.Eto/dlgAdd.xeto.cs new file mode 100644 index 0000000..d4c1f63 --- /dev/null +++ b/osrepodbmgr.Eto/dlgAdd.xeto.cs @@ -0,0 +1,43 @@ +// +// Author: +// Natalia Portillo claunia@claunia.com +// +// Copyright (c) 2017, © Claunia.com +// +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +// +// * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in +// the documentation and/or other materials provided with the distribution. +// * Neither the name of the [ORGANIZATION] nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR +// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +using System; +using System.Collections.Generic; +using Eto.Forms; +using Eto.Drawing; +using Eto.Serialization.Xaml; + +namespace osrepodbmgr.Eto +{ + public class dlgAdd : Panel + { + public dlgAdd() + { + XamlReader.Load(this); + } + } +} diff --git a/osrepodbmgr.Eto/dlgBlockMedia.xeto b/osrepodbmgr.Eto/dlgBlockMedia.xeto new file mode 100644 index 0000000..e309770 --- /dev/null +++ b/osrepodbmgr.Eto/dlgBlockMedia.xeto @@ -0,0 +1,6 @@ + + + + + + diff --git a/osrepodbmgr.Eto/dlgBlockMedia.xeto.cs b/osrepodbmgr.Eto/dlgBlockMedia.xeto.cs new file mode 100644 index 0000000..ea88ad6 --- /dev/null +++ b/osrepodbmgr.Eto/dlgBlockMedia.xeto.cs @@ -0,0 +1,43 @@ +// +// Author: +// Natalia Portillo claunia@claunia.com +// +// Copyright (c) 2017, © Claunia.com +// +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +// +// * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in +// the documentation and/or other materials provided with the distribution. +// * Neither the name of the [ORGANIZATION] nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR +// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +using System; +using System.Collections.Generic; +using Eto.Forms; +using Eto.Drawing; +using Eto.Serialization.Xaml; + +namespace osrepodbmgr.Eto +{ + public class dlgBlockMedia : Panel + { + public dlgBlockMedia() + { + XamlReader.Load(this); + } + } +} diff --git a/osrepodbmgr.Eto/dlgFilesystem.xeto b/osrepodbmgr.Eto/dlgFilesystem.xeto new file mode 100644 index 0000000..e309770 --- /dev/null +++ b/osrepodbmgr.Eto/dlgFilesystem.xeto @@ -0,0 +1,6 @@ + + + + + + diff --git a/osrepodbmgr.Eto/dlgFilesystem.xeto.cs b/osrepodbmgr.Eto/dlgFilesystem.xeto.cs new file mode 100644 index 0000000..e788485 --- /dev/null +++ b/osrepodbmgr.Eto/dlgFilesystem.xeto.cs @@ -0,0 +1,43 @@ +// +// Author: +// Natalia Portillo claunia@claunia.com +// +// Copyright (c) 2017, © Claunia.com +// +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +// +// * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in +// the documentation and/or other materials provided with the distribution. +// * Neither the name of the [ORGANIZATION] nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR +// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +using System; +using System.Collections.Generic; +using Eto.Forms; +using Eto.Drawing; +using Eto.Serialization.Xaml; + +namespace osrepodbmgr.Eto +{ + public class dlgFilesystem : Panel + { + public dlgFilesystem() + { + XamlReader.Load(this); + } + } +} diff --git a/osrepodbmgr.Eto/dlgHelp.xeto b/osrepodbmgr.Eto/dlgHelp.xeto new file mode 100644 index 0000000..e309770 --- /dev/null +++ b/osrepodbmgr.Eto/dlgHelp.xeto @@ -0,0 +1,6 @@ + + + + + + diff --git a/osrepodbmgr.Eto/dlgHelp.xeto.cs b/osrepodbmgr.Eto/dlgHelp.xeto.cs new file mode 100644 index 0000000..6268f24 --- /dev/null +++ b/osrepodbmgr.Eto/dlgHelp.xeto.cs @@ -0,0 +1,43 @@ +// +// Author: +// Natalia Portillo claunia@claunia.com +// +// Copyright (c) 2017, © Claunia.com +// +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +// +// * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in +// the documentation and/or other materials provided with the distribution. +// * Neither the name of the [ORGANIZATION] nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR +// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +using System; +using System.Collections.Generic; +using Eto.Forms; +using Eto.Drawing; +using Eto.Serialization.Xaml; + +namespace osrepodbmgr.Eto +{ + public class dlgHelp : Panel + { + public dlgHelp() + { + XamlReader.Load(this); + } + } +} diff --git a/osrepodbmgr.Eto/dlgMetadata.xeto b/osrepodbmgr.Eto/dlgMetadata.xeto new file mode 100644 index 0000000..e309770 --- /dev/null +++ b/osrepodbmgr.Eto/dlgMetadata.xeto @@ -0,0 +1,6 @@ + + + + + + diff --git a/osrepodbmgr.Eto/dlgMetadata.xeto.cs b/osrepodbmgr.Eto/dlgMetadata.xeto.cs new file mode 100644 index 0000000..563fca5 --- /dev/null +++ b/osrepodbmgr.Eto/dlgMetadata.xeto.cs @@ -0,0 +1,43 @@ +// +// Author: +// Natalia Portillo claunia@claunia.com +// +// Copyright (c) 2017, © Claunia.com +// +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +// +// * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in +// the documentation and/or other materials provided with the distribution. +// * Neither the name of the [ORGANIZATION] nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR +// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +using System; +using System.Collections.Generic; +using Eto.Forms; +using Eto.Drawing; +using Eto.Serialization.Xaml; + +namespace osrepodbmgr.Eto +{ + public class dlgMetadata : Panel + { + public dlgMetadata() + { + XamlReader.Load(this); + } + } +} diff --git a/osrepodbmgr.Eto/dlgOpticalDisc.xeto b/osrepodbmgr.Eto/dlgOpticalDisc.xeto new file mode 100644 index 0000000..e309770 --- /dev/null +++ b/osrepodbmgr.Eto/dlgOpticalDisc.xeto @@ -0,0 +1,6 @@ + + + + + + diff --git a/osrepodbmgr.Eto/dlgOpticalDisc.xeto.cs b/osrepodbmgr.Eto/dlgOpticalDisc.xeto.cs new file mode 100644 index 0000000..66fcb90 --- /dev/null +++ b/osrepodbmgr.Eto/dlgOpticalDisc.xeto.cs @@ -0,0 +1,43 @@ +// +// Author: +// Natalia Portillo claunia@claunia.com +// +// Copyright (c) 2017, © Claunia.com +// +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +// +// * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in +// the documentation and/or other materials provided with the distribution. +// * Neither the name of the [ORGANIZATION] nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR +// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +using System; +using System.Collections.Generic; +using Eto.Forms; +using Eto.Drawing; +using Eto.Serialization.Xaml; + +namespace osrepodbmgr.Eto +{ + public class dlgOpticalDisc : Panel + { + public dlgOpticalDisc() + { + XamlReader.Load(this); + } + } +} diff --git a/osrepodbmgr.Eto/dlgSettings.xeto b/osrepodbmgr.Eto/dlgSettings.xeto new file mode 100644 index 0000000..e309770 --- /dev/null +++ b/osrepodbmgr.Eto/dlgSettings.xeto @@ -0,0 +1,6 @@ + + + + + + diff --git a/osrepodbmgr.Eto/dlgSettings.xeto.cs b/osrepodbmgr.Eto/dlgSettings.xeto.cs new file mode 100644 index 0000000..28facc4 --- /dev/null +++ b/osrepodbmgr.Eto/dlgSettings.xeto.cs @@ -0,0 +1,43 @@ +// +// Author: +// Natalia Portillo claunia@claunia.com +// +// Copyright (c) 2017, © Claunia.com +// +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +// +// * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in +// the documentation and/or other materials provided with the distribution. +// * Neither the name of the [ORGANIZATION] nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR +// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +using System; +using System.Collections.Generic; +using Eto.Forms; +using Eto.Drawing; +using Eto.Serialization.Xaml; + +namespace osrepodbmgr.Eto +{ + public class dlgSettings : Panel + { + public dlgSettings() + { + XamlReader.Load(this); + } + } +} diff --git a/osrepodbmgr.Eto/frmMain.xeto b/osrepodbmgr.Eto/frmMain.xeto new file mode 100644 index 0000000..e309770 --- /dev/null +++ b/osrepodbmgr.Eto/frmMain.xeto @@ -0,0 +1,6 @@ + + + + + + diff --git a/osrepodbmgr.Eto/frmMain.xeto.cs b/osrepodbmgr.Eto/frmMain.xeto.cs new file mode 100644 index 0000000..356b8c0 --- /dev/null +++ b/osrepodbmgr.Eto/frmMain.xeto.cs @@ -0,0 +1,43 @@ +// +// Author: +// Natalia Portillo claunia@claunia.com +// +// Copyright (c) 2017, © Claunia.com +// +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +// +// * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in +// the documentation and/or other materials provided with the distribution. +// * Neither the name of the [ORGANIZATION] nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR +// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +using System; +using System.Collections.Generic; +using Eto.Forms; +using Eto.Drawing; +using Eto.Serialization.Xaml; + +namespace osrepodbmgr.Eto +{ + public class frmMain : Panel + { + public frmMain() + { + XamlReader.Load(this); + } + } +} diff --git a/osrepodbmgr.Eto/osrepodbmgr.Eto.csproj b/osrepodbmgr.Eto/osrepodbmgr.Eto.csproj new file mode 100644 index 0000000..117fe3f --- /dev/null +++ b/osrepodbmgr.Eto/osrepodbmgr.Eto.csproj @@ -0,0 +1,37 @@ + + + + Debug + AnyCPU + {E805559F-89AE-47B4-926D-5B63A4F3A123} + Library + osrepodbmgr.Eto + osrepodbmgr.Eto + v4.5 + + + true + full + false + bin\Debug + DEBUG; + prompt + 4 + + + true + bin\Release + prompt + 4 + + + + + MainForm.xeto + + + + + + + \ No newline at end of file diff --git a/osrepodbmgr.Eto/packages.config b/osrepodbmgr.Eto/packages.config new file mode 100644 index 0000000..7c00dac --- /dev/null +++ b/osrepodbmgr.Eto/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/osrepodbmgr/osrepodbmgr.csproj b/osrepodbmgr/osrepodbmgr.Gtk.csproj similarity index 100% rename from osrepodbmgr/osrepodbmgr.csproj rename to osrepodbmgr/osrepodbmgr.Gtk.csproj