commit c0b307e98f3219277b78952598a0e46655cea15f Author: vicente Date: Sun Nov 29 11:05:11 2020 +0100 Initial diff --git a/.vs/Mercat-1/DesignTimeBuild/.dtbcache.v2 b/.vs/Mercat-1/DesignTimeBuild/.dtbcache.v2 new file mode 100644 index 0000000..b67ba0d Binary files /dev/null and b/.vs/Mercat-1/DesignTimeBuild/.dtbcache.v2 differ diff --git a/.vs/Mercat-1/v16/.suo b/.vs/Mercat-1/v16/.suo new file mode 100644 index 0000000..ddfc51a Binary files /dev/null and b/.vs/Mercat-1/v16/.suo differ diff --git a/App.xaml b/App.xaml new file mode 100644 index 0000000..7e6f3fe --- /dev/null +++ b/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/App.xaml.cs b/App.xaml.cs new file mode 100644 index 0000000..bc27f95 --- /dev/null +++ b/App.xaml.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Linq; +using System.Threading.Tasks; +using System.Windows; + +namespace Mercat_1 +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } +} diff --git a/AssemblyInfo.cs b/AssemblyInfo.cs new file mode 100644 index 0000000..8b5504e --- /dev/null +++ b/AssemblyInfo.cs @@ -0,0 +1,10 @@ +using System.Windows; + +[assembly: ThemeInfo( + ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located + //(used if a resource is not found in the page, + // or application resource dictionaries) + ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located + //(used if a resource is not found in the page, + // app, or any theme specific resource dictionaries) +)] diff --git a/MainWindow.xaml b/MainWindow.xaml new file mode 100644 index 0000000..49448bd --- /dev/null +++ b/MainWindow.xaml @@ -0,0 +1,57 @@ + + + + + ! + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs new file mode 100644 index 0000000..45c57f4 --- /dev/null +++ b/MainWindow.xaml.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace Mercat_1 +{ + /// + /// Interaction logic for MainWindow.xaml + /// + public partial class MainWindow : Window + { + public MainWindow() + { + InitializeComponent(); + } + + private void Button_Click(object sender, RoutedEventArgs e) + { + System.Windows.Application.Current.Shutdown(); + } + + private void Button_Click_1(object sender, RoutedEventArgs e) + { + // Instantiate the dialog box + var dlg = new Window1 + { + Owner = this, + }; + + dlg.ShowDialog(); + + } + + } + +} diff --git a/Mercat-1.csproj b/Mercat-1.csproj new file mode 100644 index 0000000..a35a73e --- /dev/null +++ b/Mercat-1.csproj @@ -0,0 +1,63 @@ + + + + WinExe + netcoreapp3.1 + Mercat_1 + true + AnyCPU;x86 + + + + + + + + + + + + + + + C:\Users\Vicente\git-repos\DotNetKit.Wpf.AutoCompleteComboBox\DotNetKit.Wpf.AutoCompleteComboBox\bin\Release\netcoreapp3.1\DotNetKit.Wpf.AutoCompleteComboBox.dll + true + + + + + + + + + + + True + True + Resources.resx + + + True + True + Settings.settings + + + + + + ResXFileCodeGenerator + Resources.Designer.cs + + + + + + Always + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + + diff --git a/Mercat-1.csproj.user b/Mercat-1.csproj.user new file mode 100644 index 0000000..721bb06 --- /dev/null +++ b/Mercat-1.csproj.user @@ -0,0 +1,28 @@ + + + + + + Designer + + + + + Code + + + Code + + + + + Designer + + + Designer + + + Designer + + + \ No newline at end of file diff --git a/Mercat-1.sln b/Mercat-1.sln new file mode 100644 index 0000000..14c3eed --- /dev/null +++ b/Mercat-1.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30717.126 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Mercat-1", "Mercat-1.csproj", "{130C3EBF-FC99-4E09-A78C-4430A74356A3}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {130C3EBF-FC99-4E09-A78C-4430A74356A3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {130C3EBF-FC99-4E09-A78C-4430A74356A3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {130C3EBF-FC99-4E09-A78C-4430A74356A3}.Debug|x86.ActiveCfg = Debug|x86 + {130C3EBF-FC99-4E09-A78C-4430A74356A3}.Debug|x86.Build.0 = Debug|x86 + {130C3EBF-FC99-4E09-A78C-4430A74356A3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {130C3EBF-FC99-4E09-A78C-4430A74356A3}.Release|Any CPU.Build.0 = Release|Any CPU + {130C3EBF-FC99-4E09-A78C-4430A74356A3}.Release|x86.ActiveCfg = Release|x86 + {130C3EBF-FC99-4E09-A78C-4430A74356A3}.Release|x86.Build.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {6AFE8BA6-F7C6-4D92-AA22-AAD416861579} + EndGlobalSection +EndGlobal diff --git a/Mercatflor.accdb b/Mercatflor.accdb new file mode 100644 index 0000000..bd4aa3d Binary files /dev/null and b/Mercatflor.accdb differ diff --git a/MyDataSource.cs b/MyDataSource.cs new file mode 100644 index 0000000..50f5d0f --- /dev/null +++ b/MyDataSource.cs @@ -0,0 +1,52 @@ +using System; + +namespace Mercat_1 +{ + public class MyDataSource + { + public MyDataSource() + { + zeroval = 0; + z1 = 0; + z2 = 0; + z3 = 0; + z4 = 0; + z5 = 0; + z6 = 0; + z7 = 0; + z8 = 0; + z9 = 0; + z10 = 0; + z11 = 0; + z12 = 0; + z13 = 0; + z14 = 0; + z15 = 0; + z16 = 0; + z17 = 0; + Name = ""; + Date = DateTime.Now; + } + + public int zeroval { get; set; } + public int z1 { get; set; } + public int z2 { get; set; } + public int z3 { get; set; } + public int z4 { get; set; } + public int z5 { get; set; } + public int z6 { get; set; } + public int z7 { get; set; } + public int z8 { get; set; } + public int z9 { get; set; } + public int z10 { get; set; } + public int z11 { get; set; } + public int z12 { get; set; } + public int z13 { get; set; } + public int z14 { get; set; } + public int z15 { get; set; } + public int z16 { get; set; } + public int z17 { get; set; } + public string Name { get; set; } + public DateTime Date { get; set; } + } +} diff --git a/Properties/Resources.Designer.cs b/Properties/Resources.Designer.cs new file mode 100644 index 0000000..2753d8d --- /dev/null +++ b/Properties/Resources.Designer.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// Este código fue generado por una herramienta. +// Versión de runtime:4.0.30319.42000 +// +// Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si +// se vuelve a generar el código. +// +//------------------------------------------------------------------------------ + +namespace Mercat_1.Properties { + using System; + + + /// + /// Clase de recurso fuertemente tipado, para buscar cadenas traducidas, etc. + /// + // StronglyTypedResourceBuilder generó automáticamente esta clase + // a través de una herramienta como ResGen o Visual Studio. + // Para agregar o quitar un miembro, edite el archivo .ResX y, a continuación, vuelva a ejecutar ResGen + // con la opción /str o recompile su proyecto de VS. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// Devuelve la instancia de ResourceManager almacenada en caché utilizada por esta clase. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Mercat_1.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Reemplaza la propiedad CurrentUICulture del subproceso actual para todas las + /// búsquedas de recursos mediante esta clase de recurso fuertemente tipado. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/Properties/Resources.resx b/Properties/Resources.resx new file mode 100644 index 0000000..4fdb1b6 --- /dev/null +++ b/Properties/Resources.resx @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 1.3 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Properties/Settings.Designer.cs b/Properties/Settings.Designer.cs new file mode 100644 index 0000000..fd71bf3 --- /dev/null +++ b/Properties/Settings.Designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// Este código fue generado por una herramienta. +// Versión de runtime:4.0.30319.42000 +// +// Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si +// se vuelve a generar el código. +// +//------------------------------------------------------------------------------ + +namespace Mercat_1.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.8.1.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + } +} diff --git a/Properties/Settings.settings b/Properties/Settings.settings new file mode 100644 index 0000000..049245f --- /dev/null +++ b/Properties/Settings.settings @@ -0,0 +1,6 @@ + + + + + + diff --git a/Settings.cs b/Settings.cs new file mode 100644 index 0000000..362230a --- /dev/null +++ b/Settings.cs @@ -0,0 +1,28 @@ +namespace Mercat_1.Properties { + + + // Esta clase le permite controlar eventos específicos en la clase de configuración: + // El evento SettingChanging se desencadena antes de cambiar un valor de configuración. + // El evento PropertyChanged se desencadena después de cambiar el valor de configuración. + // El evento SettingsLoaded se desencadena después de cargar los valores de configuración. + // El evento SettingsSaving se desencadena antes de guardar los valores de configuración. + internal sealed partial class Settings { + + public Settings() { + // // Para agregar los controladores de eventos para guardar y cambiar la configuración, quite la marca de comentario de las líneas: + // + // this.SettingChanging += this.SettingChangingEventHandler; + // + // this.SettingsSaving += this.SettingsSavingEventHandler; + // + } + + private void SettingChangingEventHandler(object sender, System.Configuration.SettingChangingEventArgs e) { + // Agregar código para administrar aquí el evento SettingChangingEvent. + } + + private void SettingsSavingEventHandler(object sender, System.ComponentModel.CancelEventArgs e) { + // Agregar código para administrar aquí el evento SettingsSaving. + } + } +} diff --git a/View/SingleNumericTextBoxView.xaml b/View/SingleNumericTextBoxView.xaml new file mode 100644 index 0000000..f080391 --- /dev/null +++ b/View/SingleNumericTextBoxView.xaml @@ -0,0 +1,35 @@ + + + + + + + + + + + + +