From 87e6b855b1f9f59da4a812f23ed9868844ff3f31 Mon Sep 17 00:00:00 2001 From: Christian Date: Fri, 15 Sep 2017 16:39:07 +0200 Subject: [PATCH] in ownChat umbenannt --- ChatController/HauptKlassen/Login.cs | 16 ++--- ChatController/LoginControl.xaml.cs | 58 +++++++++++-------- PrototypChat/App.config | 6 +- PrototypChat/App.xaml | 4 +- PrototypChat/App.xaml.cs | 2 +- PrototypChat/ChatEmojisView.xaml | 4 +- PrototypChat/ChatEmojisView.xaml.cs | 2 +- PrototypChat/LoginMaske.xaml | 6 +- PrototypChat/LoginMaske.xaml.cs | 2 +- PrototypChat/MainWindow.xaml | 6 +- PrototypChat/MainWindow.xaml.cs | 2 +- PrototypChat/Properties/AssemblyInfo.cs | 6 +- PrototypChat/Properties/Resources.Designer.cs | 58 ++++++++----------- PrototypChat/Properties/Settings.Designer.cs | 30 +++++----- PrototypChat/PrototypChat.csproj | 53 ++++++++++++++++- 15 files changed, 150 insertions(+), 105 deletions(-) diff --git a/ChatController/HauptKlassen/Login.cs b/ChatController/HauptKlassen/Login.cs index 51f64b2..62030bc 100644 --- a/ChatController/HauptKlassen/Login.cs +++ b/ChatController/HauptKlassen/Login.cs @@ -140,8 +140,8 @@ namespace ChatController.HauptKlassen private void VerbindeMitChatServer(Dictionary postparameter) { - try - { + //try + //{ var endurl = _serverUrl + "/api/user/login"; string postdaten = ""; @@ -213,12 +213,12 @@ namespace ChatController.HauptKlassen myStreamReader.Close(); responseStream.Close(); - } - catch (WebException e) - { - //throw fehler - //MessageBox.Show(e.Message, "Fehler", MessageBoxButton.OK); - } + //} + //catch (WebException e) + //{ + // //throw fehler + // //MessageBox.Show(e.Message, "Fehler", MessageBoxButton.OK); + //} } private void GruppenHolen() diff --git a/ChatController/LoginControl.xaml.cs b/ChatController/LoginControl.xaml.cs index bf27fa0..b7fe30d 100644 --- a/ChatController/LoginControl.xaml.cs +++ b/ChatController/LoginControl.xaml.cs @@ -38,30 +38,34 @@ namespace ChatController private void AnmeldenButton_OnClick(object sender, RoutedEventArgs e) { -#if DEBUG - Cursor = Cursors.Wait; - - - Login _login = new Login("4368658435", "ZMCKb-BckTt", "RuppelW", "ABXT32wgtruppeldiedup"); - - var x = _login.AnmeldevorgangDurchFuehren(); - - if (OnLogin != null) + try { - if (Merken.IsChecked == true) - { - SpeichereDatenInDatei(); - } - else - { - LoescheGespeicherteDatei(); - } - OnLogin(x); - } + +//#if DEBUG +// Cursor = Cursors.Wait; - Cursor = Cursors.Arrow; -#else + +// Login _login = new Login("4368658435", "ZMCKb-BckTt", "RuppelW", "ABXT32wgtruppeldiedup"); + +// var x = _login.AnmeldevorgangDurchFuehren(); + +// if (OnLogin != null) +// { +// if (Merken.IsChecked == true) +// { +// SpeichereDatenInDatei(); +// } +// else +// { +// LoescheGespeicherteDatei(); +// } + +// OnLogin(x); +// } + +// Cursor = Cursors.Arrow; +//#else if (!TextBoxKundennummer.Text.Equals("") && !TextBoxChatCode.Text.Equals("") && !TextBoxBenutzerName.Text.Equals("") && !TextBoxPasswort.Password.Equals("")) { @@ -86,7 +90,7 @@ namespace ChatController } else { - MessageBox.Show("Die AnmeldeDaten sind Falsch!", "Info", MessageBoxButton.OK); + MessageBox.Show("Fehler bei der Anmeldung. Bitte überprüfen Sie die Anmeldeinformationen.", "Info", MessageBoxButton.OK, MessageBoxImage.Asterisk); } Cursor = Cursors.Arrow; @@ -95,8 +99,14 @@ namespace ChatController { MessageBox.Show("Bitte alle Felder ausfüllen!", "Info", MessageBoxButton.OK); } -#endif - + //#endif + } + catch (Exception exception) + { + MessageBox.Show("Fehler bei der Anmeldung!\n\n" + exception.Message, "Fehler", MessageBoxButton.OK, MessageBoxImage.Asterisk); + + //throw; + } } diff --git a/PrototypChat/App.config b/PrototypChat/App.config index b50c74f..d1428ad 100644 --- a/PrototypChat/App.config +++ b/PrototypChat/App.config @@ -1,6 +1,6 @@ - + - + - \ No newline at end of file + diff --git a/PrototypChat/App.xaml b/PrototypChat/App.xaml index c971db7..c03b568 100644 --- a/PrototypChat/App.xaml +++ b/PrototypChat/App.xaml @@ -1,7 +1,7 @@ - diff --git a/PrototypChat/App.xaml.cs b/PrototypChat/App.xaml.cs index f667116..d4ceeba 100644 --- a/PrototypChat/App.xaml.cs +++ b/PrototypChat/App.xaml.cs @@ -6,7 +6,7 @@ using System.Linq; using System.Threading.Tasks; using System.Windows; -namespace PrototypChat +namespace ownChat { /// /// Interaktionslogik für "App.xaml" diff --git a/PrototypChat/ChatEmojisView.xaml b/PrototypChat/ChatEmojisView.xaml index 9c887c7..75e3eea 100644 --- a/PrototypChat/ChatEmojisView.xaml +++ b/PrototypChat/ChatEmojisView.xaml @@ -1,9 +1,9 @@ - /// Interaktionslogik für ChatEmojisView.xaml diff --git a/PrototypChat/LoginMaske.xaml b/PrototypChat/LoginMaske.xaml index 7671b23..e3a2dd6 100644 --- a/PrototypChat/LoginMaske.xaml +++ b/PrototypChat/LoginMaske.xaml @@ -1,13 +1,13 @@ - + Title="ownChat Desktop Login" Height="500" Width="700" > diff --git a/PrototypChat/LoginMaske.xaml.cs b/PrototypChat/LoginMaske.xaml.cs index b8e7509..4cba486 100644 --- a/PrototypChat/LoginMaske.xaml.cs +++ b/PrototypChat/LoginMaske.xaml.cs @@ -17,7 +17,7 @@ using System.Windows.Shapes; using ChatController.HauptKlassen; using ChatController.Klassen; -namespace PrototypChat +namespace ownChat { /// /// Interaktionslogik für LoginMaske.xaml diff --git a/PrototypChat/MainWindow.xaml b/PrototypChat/MainWindow.xaml index edf7825..b8543d3 100644 --- a/PrototypChat/MainWindow.xaml +++ b/PrototypChat/MainWindow.xaml @@ -1,12 +1,12 @@ - + Title="ownChat Desktop" Height="700" Width="900" x:Name="MainView"> diff --git a/PrototypChat/MainWindow.xaml.cs b/PrototypChat/MainWindow.xaml.cs index c318b13..dde8399 100644 --- a/PrototypChat/MainWindow.xaml.cs +++ b/PrototypChat/MainWindow.xaml.cs @@ -44,7 +44,7 @@ using Path = System.IO.Path; using Point = System.Windows.Point; -namespace PrototypChat +namespace ownChat { /// /// Interaktionslogik für MainWindow.xaml diff --git a/PrototypChat/Properties/AssemblyInfo.cs b/PrototypChat/Properties/AssemblyInfo.cs index 5dd98ef..3df1fa4 100644 --- a/PrototypChat/Properties/AssemblyInfo.cs +++ b/PrototypChat/Properties/AssemblyInfo.cs @@ -7,11 +7,11 @@ using System.Windows; // Allgemeine Informationen über eine Assembly werden über die folgenden // Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, // die einer Assembly zugeordnet sind. -[assembly: AssemblyTitle("PrototypChat")] +[assembly: AssemblyTitle("ownChat")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("PrototypChat")] +[assembly: AssemblyCompany("beyondSoft GmbH")] +[assembly: AssemblyProduct("ownChat")] [assembly: AssemblyCopyright("Copyright © 2017")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] diff --git a/PrototypChat/Properties/Resources.Designer.cs b/PrototypChat/Properties/Resources.Designer.cs index 8c94273..57026a0 100644 --- a/PrototypChat/Properties/Resources.Designer.cs +++ b/PrototypChat/Properties/Resources.Designer.cs @@ -1,69 +1,61 @@ //------------------------------------------------------------------------------ // // Dieser Code wurde von einem Tool generiert. -// Laufzeitversion: 4.0.30319.42000 +// Laufzeitversion:4.0.30319.42000 // -// Änderungen an dieser Datei können fehlerhaftes Verhalten verursachen und gehen verloren, wenn -// der Code neu generiert wird. +// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn +// der Code erneut generiert wird. // //------------------------------------------------------------------------------ -namespace PrototypChat.Properties -{ - - +namespace ownChat.Properties { + using System; + + /// /// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw. /// - // Diese Klasse wurde von der StronglyTypedResourceBuilder-Klasse - // über ein Tool wie ResGen oder Visual Studio automatisch generiert. + // Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert + // -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert. // Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen - // mit der Option /str erneut aus, oder erstellen Sie Ihr VS-Projekt neu. + // mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources - { - + 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() - { + internal Resources() { } - + /// /// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird. /// [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager - { - get - { - if ((resourceMan == null)) - { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("PrototypChat.Properties.Resources", typeof(Resources).Assembly); + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ownChat.Properties.Resources", typeof(Resources).Assembly); resourceMan = temp; } return resourceMan; } } - + /// /// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle - /// Ressourcenlookups, die diese stark typisierte Ressourcenklasse verwenden. + /// Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden. /// [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture - { - get - { + internal static global::System.Globalization.CultureInfo Culture { + get { return resourceCulture; } - set - { + set { resourceCulture = value; } } diff --git a/PrototypChat/Properties/Settings.Designer.cs b/PrototypChat/Properties/Settings.Designer.cs index 63b530a..75179a0 100644 --- a/PrototypChat/Properties/Settings.Designer.cs +++ b/PrototypChat/Properties/Settings.Designer.cs @@ -1,28 +1,24 @@ //------------------------------------------------------------------------------ // -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 +// Dieser Code wurde von einem Tool generiert. +// Laufzeitversion:4.0.30319.42000 // -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn +// der Code erneut generiert wird. // //------------------------------------------------------------------------------ -namespace PrototypChat.Properties -{ - - +namespace ownChat.Properties { + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] - internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase - { - + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.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 - { + + public static Settings Default { + get { return defaultInstance; } } diff --git a/PrototypChat/PrototypChat.csproj b/PrototypChat/PrototypChat.csproj index ede49be..6966914 100644 --- a/PrototypChat/PrototypChat.csproj +++ b/PrototypChat/PrototypChat.csproj @@ -6,13 +6,35 @@ AnyCPU {A9A69B34-2CEE-411F-8CD3-507DC6A5B77E} WinExe - PrototypChat - PrototypChat - v4.6.2 + ownChat + ownChat + v4.5 512 {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 4 true + + true + D:\Projects\beyondSoft\Chat\publish\ + true + Web + true + Foreground + 7 + Days + false + true + true + https://app5.bewoplaner.de/chat/ + ownChat Desktop + beyondSoft GmbH + 1.0.0.1 + 2 + 1.0.0.%2a + false + true + true + true AnyCPU @@ -33,6 +55,18 @@ prompt 4 + + 9ED26908E1C665955AF78BD0067260B207C9E8CB + + + PrototypChat_TemporaryKey.pfx + + + true + + + true + ..\libs\Newtonsoft.Json.dll @@ -109,6 +143,7 @@ SettingsSingleFileGenerator Settings.Designer.cs + @@ -119,5 +154,17 @@ ChatController + + + False + Microsoft .NET Framework 4.5 %28x86 and x64%29 + true + + + False + .NET Framework 3.5 SP1 + false + + \ No newline at end of file