diff --git a/BeWoLauncher/.vs/BeWoLauncher/v15/.suo b/BeWoLauncher/.vs/BeWoLauncher/v15/.suo
deleted file mode 100644
index adb6ea2a5..000000000
Binary files a/BeWoLauncher/.vs/BeWoLauncher/v15/.suo and /dev/null differ
diff --git a/BeWoLauncher/.vs/ProjectSettings.json b/BeWoLauncher/.vs/ProjectSettings.json
deleted file mode 100644
index f8b488856..000000000
--- a/BeWoLauncher/.vs/ProjectSettings.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "CurrentProjectSetting": null
-}
\ No newline at end of file
diff --git a/BeWoLauncher/.vs/VSWorkspaceState.json b/BeWoLauncher/.vs/VSWorkspaceState.json
deleted file mode 100644
index 6b6114114..000000000
--- a/BeWoLauncher/.vs/VSWorkspaceState.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "ExpandedNodes": [
- ""
- ],
- "PreviewInSolutionExplorer": false
-}
\ No newline at end of file
diff --git a/BeWoLauncher/.vs/slnx.sqlite b/BeWoLauncher/.vs/slnx.sqlite
deleted file mode 100644
index c5b7a9364..000000000
Binary files a/BeWoLauncher/.vs/slnx.sqlite and /dev/null differ
diff --git a/BeWoLauncher/App.config b/BeWoLauncher/App.config
deleted file mode 100644
index eb846d046..000000000
--- a/BeWoLauncher/App.config
+++ /dev/null
@@ -1,69 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- False
-
-
-
-
\ No newline at end of file
diff --git a/BeWoLauncher/BeWoLauncher.csproj b/BeWoLauncher/BeWoLauncher.csproj
deleted file mode 100644
index dc5809e13..000000000
--- a/BeWoLauncher/BeWoLauncher.csproj
+++ /dev/null
@@ -1,464 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- {E3BA193A-A64F-4CE6-91BE-F54E551797BE}
- WinExe
- BeWoLauncher
- BeWoLauncher
- v4.5
- 512
- {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- 4
- true
- false
- D:\Test\Launcher\
- true
- Disk
- false
- Foreground
- 7
- Days
- false
- false
- true
- true
- 1
- 1.0.0.%2a
- false
- true
- true
-
-
- x86
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
- Auto
-
-
- AnyCPU
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
- BeWoPlaner.ico
-
-
- F47E9EA636ECD1D899058A03A3946362A6DA6EE5
-
-
- BeWoLauncher_1_TemporaryKey.pfx
-
-
- true
-
-
- false
-
-
-
- False
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 4.0
-
-
-
-
-
-
-
- MSBuild:Compile
- Designer
-
-
-
-
-
- ConfirmDemoDialog.xaml
-
-
- MessageDialog.xaml
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- InfoFrame.xaml
-
-
- LoadingFrame.xaml
-
-
- ProgressFrame.xaml
-
-
- FrameView.xaml
-
-
- InstallInfoFrame.xaml
-
-
- UpdateInfoFrame.xaml
-
-
- UninstallInfoFrame.xaml
-
-
-
-
-
- PasswortAenderungsView.xaml
-
-
-
- PopUpWindow.xaml
-
-
- MSBuild:Compile
- Designer
-
-
- Designer
- MSBuild:Compile
-
-
- MSBuild:Compile
- Designer
-
-
- MSBuild:Compile
- Designer
-
-
- MSBuild:Compile
- Designer
-
-
- Designer
- MSBuild:Compile
-
-
- MSBuild:Compile
- Designer
-
-
- MSBuild:Compile
- Designer
-
-
- MSBuild:Compile
- Designer
-
-
- MSBuild:Compile
- Designer
-
-
- Designer
- MSBuild:Compile
-
-
- MSBuild:Compile
- Designer
-
-
- Designer
- MSBuild:Compile
-
-
- Designer
- MSBuild:Compile
-
-
- Designer
- MSBuild:Compile
-
-
- Designer
- MSBuild:Compile
-
-
- Designer
- MSBuild:Compile
-
-
- Designer
- MSBuild:Compile
-
-
- MSBuild:Compile
- Designer
-
-
- LauncherApp.xaml
- Code
-
-
-
- EnterTenantDialog.xaml
-
-
- ProfileEditView.xaml
-
-
-
-
-
-
-
-
-
-
- ExceptionMessageBox.xaml
-
-
- LoginView.xaml
-
-
- ProxyLoginView.xaml
-
-
- PwVergessenView.xaml
-
-
- WaitLayer2.xaml
-
-
- LauncherWindow.xaml
- Code
-
-
- Designer
- MSBuild:Compile
-
-
-
-
- Code
-
-
- True
- True
- Resources.resx
-
-
- True
- Settings.settings
- True
-
-
-
- ResXFileCodeGenerator
- Resources.Designer.cs
-
-
-
- SettingsSingleFileGenerator
- Settings.Designer.cs
-
-
-
-
- Designer
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- False
- .NET Framework 3.5 SP1
- false
-
-
-
-
- {efe05c79-e0dd-4311-8b90-a8da7ebdf36f}
- SharedLauncher
- True
-
-
-
-
-
\ No newline at end of file
diff --git a/BeWoLauncher/BeWoLauncher.csproj.user b/BeWoLauncher/BeWoLauncher.csproj.user
deleted file mode 100644
index 13190cfb4..000000000
--- a/BeWoLauncher/BeWoLauncher.csproj.user
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
- D:\Test\Launcher\|publish\
-
-
-
-
-
- de-DE
- false
- ProjectFiles
-
-
- false
-
-
\ No newline at end of file
diff --git a/BeWoLauncher/BeWoPlaner.ico b/BeWoLauncher/BeWoPlaner.ico
deleted file mode 100644
index 22ca7720a..000000000
Binary files a/BeWoLauncher/BeWoPlaner.ico and /dev/null differ
diff --git a/BeWoLauncher/LauncherApp.xaml b/BeWoLauncher/LauncherApp.xaml
deleted file mode 100644
index 964c727df..000000000
--- a/BeWoLauncher/LauncherApp.xaml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/BeWoLauncher/LauncherApp.xaml.cs b/BeWoLauncher/LauncherApp.xaml.cs
deleted file mode 100644
index 37515ed1d..000000000
--- a/BeWoLauncher/LauncherApp.xaml.cs
+++ /dev/null
@@ -1,97 +0,0 @@
-using BeWoLauncher.Components;
-using BeWoLauncher.Logic;
-using BeWoLauncher.Logic.Controller;
-using BeWoLauncher.ServiceProxy;
-using BeWoLauncher.WindowImp;
-using BS.SharedLauncher;
-using BS.SharedLauncher.Information;
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Configuration;
-using System.Data;
-using System.Diagnostics;
-using System.Globalization;
-using System.IO;
-using System.IO.Pipes;
-using System.Linq;
-using System.Reflection;
-using System.Security.Policy;
-using System.Threading;
-using System.Threading.Tasks;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Input;
-using System.Windows.Markup;
-using System.Windows.Threading;
-using System.Xml;
-
-namespace BeWoLauncher
-{
- ///
- /// Interaktionslogik für "App.xaml"
- ///
- public partial class LauncherApp : Application
- {
- public static string ShortVersion => "3";
- public static string Version => "Version 3.0";
-
- public LauncherApp()
- {
-
- }
-
- protected override void OnStartup(StartupEventArgs e)
- {
- MainWindow = new LauncherWindow();
- MainWindow.Show();
-
- base.OnStartup(e);
-
- ProcessController.StartLauncher();
-
- Dispatcher.UnhandledException += (s, ex)
- =>
- {
- if (ex.Exception == null || String.IsNullOrEmpty(ex.Exception.Message) ||
- (!ex.Exception.ToString().Contains("DevExpress.Xpf.Bars.Customization.CustomizationControl.OnLoaded")
- && !ex.Exception.ToString().Contains("DevExpress.Xpf.Grid.Native.SelectionStrategyCellBase.IsCellSelected")))
-
- {
- ShowError("Unbehandelter Fehler", ex.Exception, true);
- }
- ex.Handled = true;
- };
-
- FrameworkElement.LanguageProperty.OverrideMetadata(typeof(FrameworkElement), new FrameworkPropertyMetadata(XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag)));
- }
-
-
- private void Application_Exit(object sender, ExitEventArgs e)
- {
- ProcessController.KillPlanerProcess();
- }
-
- #region ShowError
-
- public static void ShowError(Exception ex) => ShowError(null, ex, true);
- public static void ShowError(string message, Exception ex, bool showDetails)
- {
- ShowError(message, ex.ToString(), showDetails);
- }
- public static void ShowError(string message, string ex, bool showDetails)
- {
- if (ViewController.CurrentWindow is null)
- {
- MessageBox.Show(ex, message);
- }
- else
- {
- ViewController.CurrentWindow.Dispatcher.BeginInvoke(DispatcherPriority.Normal, (Action)(() =>
- ViewController.CurrentWindow.ShowControlAsModalPopUp(new ExceptionMessageBox(message, ex, showDetails))));
- }
- }
-
- #endregion
- }
-}
diff --git a/BeWoLauncher/LauncherGeneratedNeuErstellen.lnk b/BeWoLauncher/LauncherGeneratedNeuErstellen.lnk
deleted file mode 100644
index 47751bf9a..000000000
Binary files a/BeWoLauncher/LauncherGeneratedNeuErstellen.lnk and /dev/null differ
diff --git a/BeWoLauncher/LauncherServiceReferences.bat b/BeWoLauncher/LauncherServiceReferences.bat
deleted file mode 100644
index 763400846..000000000
--- a/BeWoLauncher/LauncherServiceReferences.bat
+++ /dev/null
@@ -1 +0,0 @@
-svcutil.exe /noConfig /edb /n:*,BeWoLauncher.ServiceProxy /out:ServiceProxy\LauncherGenerated.cs /ct:System.Collections.Generic.List`1 /r:..\SharedLauncher\bin\Debug\BS.SharedLauncher.dll http://localhost:3778/LauncherService.svc?wsdl http://localhost:3778/EnumTranslationService.svc?wsdl http://localhost:3778/DownloadBeWoService.svc?wsdl
\ No newline at end of file
diff --git a/BeWoLauncher/LauncherWindow.xaml b/BeWoLauncher/LauncherWindow.xaml
deleted file mode 100644
index 8f5f7dabf..000000000
--- a/BeWoLauncher/LauncherWindow.xaml
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
-
-
diff --git a/BeWoLauncher/LauncherWindow.xaml.cs b/BeWoLauncher/LauncherWindow.xaml.cs
deleted file mode 100644
index 2f9c05b6e..000000000
--- a/BeWoLauncher/LauncherWindow.xaml.cs
+++ /dev/null
@@ -1,156 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Media;
-using System.Windows.Threading;
-using BeWoLauncher.Components;
-using BeWoLauncher.Logic.Controller;
-
-namespace BeWoLauncher
-{
- public partial class LauncherWindow : Window
- {
- private readonly Stack _ModalPopUpControls;
- private Control _CurrentModalPopUp;
- private Grid _ModalPopUpBackGround;
- private WaitLayer2 _WaitLayer;
-
- public LauncherWindow()
- {
- InitializeComponent();
-
- _ModalPopUpControls = new Stack();
-
- ViewController.InitWindow(this);
-
- ViewController.StartView();
- }
-
- private void MainWindow_OnClosing(object s, CancelEventArgs e)
- {
- ProcessController.StartLauncherShutdown();
- }
- private void RootGrid_SizeChanged(object sender, SizeChangedEventArgs e)
- {
- double top = (rootGrid.ActualHeight - 400) / 3;
- rootGrid.Margin = new Thickness(0, top, 0, 0);
- }
-
- private void ShowModalBackground()
- {
- _ModalPopUpBackGround = new Grid();
- _ModalPopUpBackGround.IsHitTestVisible = true;
- _ModalPopUpBackGround.Background = Brushes.White;
- _ModalPopUpBackGround.Opacity = .5;
- Grid.SetColumnSpan(_ModalPopUpBackGround, 3);
- Grid.SetRowSpan(_ModalPopUpBackGround, 3);
- rootGrid.Children.Add(_ModalPopUpBackGround);
- Panel.SetZIndex(_ModalPopUpBackGround, int.MaxValue - 1);
- }
- public void ShowControlAsModalPopUp(Control control)
- {
- ShowControlAsModalPopUp(control, HorizontalAlignment.Center, VerticalAlignment.Center);
- }
- public void ShowControlAsModalPopUp(Control control, HorizontalAlignment ha, VerticalAlignment va)
- {
- Dispatcher.BeginInvoke(DispatcherPriority.Normal,
- (Action)delegate
- {
- if (_CurrentModalPopUp != null)
- {
- rootGrid.Children.Remove(_CurrentModalPopUp);
- _ModalPopUpControls.Push(_CurrentModalPopUp);
- }
- else
- {
- this.ShowModalBackground();
- }
-
- _CurrentModalPopUp = control;
- control.HorizontalAlignment = ha;
- control.VerticalAlignment = va;
- Grid.SetColumnSpan(control, 3);
- Grid.SetRowSpan(control, 3);
- this.rootGrid.Children.Add(control);
- Panel.SetZIndex(control, int.MaxValue);
- });
- }
- public void CloseCurrentPopUp()
- {
- if (_ModalPopUpBackGround != null)
- {
- Dispatcher.BeginInvoke(DispatcherPriority.Normal,
- (Action)delegate
- {
- rootGrid.Children.Remove(_CurrentModalPopUp);
- _CurrentModalPopUp = null;
- if (_ModalPopUpControls.Count == 0)
- {
- rootGrid.Children.Remove(_ModalPopUpBackGround);
- _ModalPopUpBackGround = null;
- }
- else
- {
- var control = this._ModalPopUpControls.Pop();
- _CurrentModalPopUp = control;
- rootGrid.Children.Add(control);
- Panel.SetZIndex(control, int.MaxValue);
- }
- });
- }
- }
- public void StartWaiting()
- {
- Dispatcher.BeginInvoke(DispatcherPriority.Normal,
- (Action)delegate
- {
- if (_WaitLayer == null)
- {
- _WaitLayer = new WaitLayer2();
- _WaitLayer.HorizontalAlignment = HorizontalAlignment.Center;
- _WaitLayer.VerticalAlignment = VerticalAlignment.Center;
- rootGrid2.Children.Add(_WaitLayer);
- Panel.SetZIndex(_WaitLayer, int.MaxValue);
- _WaitLayer.Dispatcher.Invoke(DispatcherPriority.Render, (Action)delegate () { });
- }
- });
- }
- public void EndWaiting()
- {
- Dispatcher.BeginInvoke(
- DispatcherPriority.Normal,
- (Action)delegate
- {
- if (_WaitLayer != null)
- {
- rootGrid2.Children.Remove(_WaitLayer);
- _WaitLayer = null;
- }
- });
- }
-
- public void SetMainContent(UserControl main)
- {
- rootGrid.Children.Clear();
- rootGrid.Children.Add(main);
- }
-
- private void Window_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)
- {
- if (e.Key == System.Windows.Input.Key.Delete)
- {
- ViewController.LaunchBehavior.UninstallMode = true;
- }
- }
-
- private void Window_KeyUp(object sender, System.Windows.Input.KeyEventArgs e)
- {
- if (e.Key == System.Windows.Input.Key.Delete)
- {
- ViewController.LaunchBehavior.UninstallMode = false;
- }
- }
- }
-}
diff --git a/BeWoLauncher/Logic/Behavior/LaunchBehavior.cs b/BeWoLauncher/Logic/Behavior/LaunchBehavior.cs
deleted file mode 100644
index b73713f01..000000000
--- a/BeWoLauncher/Logic/Behavior/LaunchBehavior.cs
+++ /dev/null
@@ -1,88 +0,0 @@
-using BeWoLauncher.Components;
-using BeWoLauncher.Logic.Controller;
-using BeWoLauncher.Logic.Utils;
-using BS.SharedLauncher.Extensions;
-using BS.SharedLauncher.Information;
-using System;
-using System.Threading.Tasks;
-using static BeWoLauncher.Logic.Controller.ViewController;
-
-namespace BeWoLauncher.Logic.Behavior
-{
- public class LaunchBehavior
- {
- public bool UninstallMode { get; set; }
-
- public LaunchBehavior()
- {
-
- }
-
- public void LoginSuccessful()
- {
- #region confirm demo
-#if DEBUG
- //if (ConnectionInformation.Tenant == "demo")
- //{
- // var dlg = new ConfirmDemoDialog();
- // dlg.ShowDialog();
- //}
-#else
- if (ConnectionInformation.Tenant == "demo")
- {
- var dlg = new ConfirmDemoDialog();
- dlg.ShowDialog();
- }
-#endif
- #endregion
-
-
-
- var path = LauncherPaths.GetInstallLocationFromSetting();
-
- LauncherPaths.ActualPlanerLocation = path;
-
- if (path is string && !string.IsNullOrWhiteSpace(path) && !CheckForPermissions(path))
- {
- ViewBehavior.ShowFrame(FrameType.NoPermissionInfo);
- EndWaiting();
- }
- else
- {
- if (UninstallMode)
- ViewBehavior.ShowUninstallInfo();
- else
- Task.Run(() =>
- {
- try
- {
- DownloadController.Start();
- DownloadController.Manager.GetUpdatePlan();
-
- if (!DownloadController.Manager.UpdatePlanResponse.Successful)
- throw DownloadController.Manager.UpdatePlanResponse.Exception;
-
- if (DownloadController.Manager.UpdatePlanResponse.HasToDo())
- {
- ViewBehavior.ShowInfo();
- }
- else
- {
- ViewBehavior.ShowLoading();
- }
- }
- catch(Exception ex)
- {
- ViewBehavior.ShowError(ex);
- }
- EndWaiting();
- });
- }
- }
-
- public void LaunchPlaner()
- {
- Task.Run(() => ProcessController.StartPlanerProcess());
- }
- }
-}
diff --git a/BeWoLauncher/Logic/Behavior/ViewSwitchBehavior.cs b/BeWoLauncher/Logic/Behavior/ViewSwitchBehavior.cs
deleted file mode 100644
index 4904ee431..000000000
--- a/BeWoLauncher/Logic/Behavior/ViewSwitchBehavior.cs
+++ /dev/null
@@ -1,168 +0,0 @@
-using BeWoLauncher.Logic.Controller;
-using BeWoLauncher.Logic.Utils;
-using BeWoLauncher.View;
-using BeWoLauncher.View.Frames;
-using BS.SharedLauncher.Enums;
-using System;
-using System.IO;
-using System.Threading.Tasks;
-using System.Windows.Controls;
-using System.Windows.Threading;
-using static BeWoLauncher.Logic.Controller.ViewController;
-
-namespace BeWoLauncher.Logic.Behavior
-{
- public class ViewSwitchBehavior
- {
- private UserControl _currentView;
- private FrameBase _currentFrame;
- private LauncherMode _currentLauncherMode;
-
- private UserControl CurrentView
- {
- get => _currentView;
- set
- {
- _currentView = value;
-
- CurrentWindow.Dispatcher.BeginInvoke(DispatcherPriority.Render,
- (Action)delegate
- {
- CurrentWindow.SetMainContent(value);
- });
- }
- }
- private FrameBase CurrentFrame
- {
- get => _currentFrame;
- set
- {
- _currentFrame = value;
-
- if (CurrentView is FrameView frameview)
- CurrentWindow.Dispatcher.BeginInvoke(DispatcherPriority.Render,
- (Action)delegate
- {
- frameview.SetFrame(value);
- });
- else
- CurrentView = new FrameView(value);
- }
- }
-
- public ViewSwitchBehavior()
- {
-
- }
-
- public void ShowView(ViewType vt)
- {
- CurrentView = ViewController.ViewBuilder.GetNewView(vt);
- }
- public void ShowFrame(FrameType ft)
- {
- CurrentFrame = ViewController.ViewBuilder.GetNewFrame(ft);
- }
-
- public void ShowInfo()
- {
- ViewController.Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(() =>
- {
- if (LauncherAppdataConfig.GetFirstInstallationSuccess() &&
- File.Exists(LauncherPaths.GetPlanerExePath()))
- {
- ShowFrame(FrameType.UpdateInfo);
- }
- else
- {
- ShowFrame(FrameType.InstallInfo);
- }
- }));
- }
-
- public void ShowError(Exception exception)
- {
- ViewController.Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(() =>
- {
- Error = exception;
- ShowFrame(FrameType.GenericFail);
- }));
- }
-
- public void ShowUninstallInfo()
- {
- ViewController.Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(() =>
- {
- ShowFrame(FrameType.UninstallInfo);
- }));
- }
-
- public void ShowLoading()
- {
- ViewController.Dispatcher.BeginInvoke(DispatcherPriority.Render, new Action(() =>
- {
- ShowFrame(FrameType.LoadingScreen);
- }));
- }
-
- public void BackToLogin(object sender, EventArgs e)
- {
- ShowView(ViewType.LoginView);
- }
- public void LoginSuccessful(object sender, EventArgs e)
- {
- ViewController.LaunchBehavior.LoginSuccessful();
- }
-
- public void InstallInfoAccept(object sender, EventArgs e)
- {
- var install = sender as InstallInfoFrame;
-
- if (CheckForPermissions(install.InstallLocation))
- {
- LauncherPaths.SetAndSaveInstallLocation(install.InstallLocation);
- LauncherAppdataConfig.SetFirstInstallationSuccess(true);
- ShowFrame(FrameType.InstallProgress);
- }
- else
- {
- ShowFrame(FrameType.NoPermissionInfo);
- }
- }
- public void InstallSuccesss(object sender, EventArgs e)
- {
- LauncherAppdataConfig.SetFirstInstallationSuccess(true);
- ShowFrame(FrameType.LoadingScreen);
- }
- public void InstallFailed(object sender, EventArgs e)
- {
- ShowFrame(FrameType.InstallFailed);
- }
- public void UpdateFailed(object sender, EventArgs e)
- {
- ShowFrame(FrameType.UpdateFailed);
- }
- public void UninstallFailed(object sender, EventArgs e)
- {
- ShowFrame(FrameType.UninstallFailed);
- }
-
- public void UpdateStarting(object sender, EventArgs e)
- {
- ShowFrame(FrameType.UpdateProgress);
- }
- public void UpdateSuccess(object sender, EventArgs e)
- {
- ShowFrame(FrameType.LoadingScreen);
- }
-
- public void UninstallStarting(object sender, EventArgs e)
- {
- ShowFrame(FrameType.UninstallProgress);
- }
- public void UninstallSuccess(object sender, EventArgs e)
- {
- ShowFrame(FrameType.UninstallSuccessful);
- }
- }
-}
diff --git a/BeWoLauncher/Logic/Controller/DownloadController.cs b/BeWoLauncher/Logic/Controller/DownloadController.cs
deleted file mode 100644
index 6ff041aeb..000000000
--- a/BeWoLauncher/Logic/Controller/DownloadController.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-using BeWoLauncher.Logic.Utils;
-using BeWoLauncher.Logic.Utils.Download;
-using BS.SharedLauncher.Information;
-using BS.SharedLauncher.Utils;
-using System.IO;
-
-namespace BeWoLauncher.Logic.Controller
-{
- public static class DownloadController
- {
- public static DownloadManager Manager { get; set; }
-
- public static long FreeSpace { get; set; }
- public static long NeededSpace => Manager.UpdatePlanResponse.DownloadSize;
-
- public static void Start()
- {
- Manager = new DownloadManager();
-
- DownloadLogger.Init(LauncherPaths.GetLoggerPath());
- }
-
- public static string UpdateDiskSpace(string path)
- {
- FileInfo f = new FileInfo(path);
- string drive = System.IO.Path.GetPathRoot(f.FullName);
- FreeSpace = NonspecificTools.GetTotalFreeSpace(drive);
-
- if (FreeSpace >= 0)
- return NonspecificTools.SizeSuffix((ulong)FreeSpace);
- else
- return "error";
- }
- }
-}
diff --git a/BeWoLauncher/Logic/Controller/ProcessController.cs b/BeWoLauncher/Logic/Controller/ProcessController.cs
deleted file mode 100644
index b9ec15a28..000000000
--- a/BeWoLauncher/Logic/Controller/ProcessController.cs
+++ /dev/null
@@ -1,162 +0,0 @@
-using BeWoLauncher.Logic.Utils;
-using BeWoLauncher.ServiceProxy;
-using BS.SharedLauncher.Information;
-using System;
-using System.Diagnostics;
-using System.IO;
-using System.IO.Pipes;
-using System.Threading;
-using System.Windows;
-using System.Windows.Threading;
-
-namespace BeWoLauncher.Logic.Controller
-{
- public static class ProcessController
- {
- private static Process PlanerProcess { get; set; }
-
- public static Application Current => Application.Current;
- public static LauncherApp CurrentLauncher => Current as LauncherApp;
-
- private static bool PlanerRunning
- {
- get
- {
- if (PlanerProcess is null)
- return false;
- PlanerProcess.Refresh();
- return !PlanerProcess.HasExited;
- }
- }
-
- internal static void CheckForOtherInstance()
- {
- string procName = Process.GetCurrentProcess().ProcessName;
-
- Process[] processes = Process.GetProcessesByName(procName);
-
- if (processes.Length > 1)
- {
- MessageBox.Show("BeWo Prozess läuft bereits");
- StartLauncherShutdown();
- }
-
- Process[] processes2 = Process.GetProcessesByName("BeWoPlaner");
-
- if (processes2.Length > 0)
- {
- MessageBox.Show("BeWo Prozess läuft bereits");
- StartLauncherShutdown();
- }
- }
-
- internal static void StartLauncher()
- {
- CheckForOtherInstance();
-
- // Update Server Adresses
- //ConnectionInformation.DownloadServerAddress = ConnectionInformation.DownloadServerAddressExact.ToString();
- //ConnectionInformation.CoreServerAddress = ConnectionInformation.CoreServerAddress.ToString();
-
- LauncherServiceFacade.UpdateServerAddresses();
- }
-
- internal static void StartLauncherShutdown()
- {
- Current.Shutdown();
- }
-
- internal static void StartPlanerProcess()
- {
- // based on https://docs.microsoft.com/en-us/dotnet/standard/io/how-to-use-anonymous-pipes-for-local-interprocess-communication?redirectedfrom=MSDN
- PlanerProcess = new Process();
-
- PlanerProcess.StartInfo.FileName = LauncherPaths.GetPlanerExePath();
- PlanerProcess.EnableRaisingEvents = true;
- PlanerProcess.Exited += PlanerProcess_Exit;
-
- using (AnonymousPipeServerStream pipeServer = new AnonymousPipeServerStream(PipeDirection.Out, HandleInheritability.Inheritable))
- {
- PlanerProcess.StartInfo.Arguments = pipeServer.GetClientHandleAsString();
- PlanerProcess.StartInfo.UseShellExecute = false;
- PlanerProcess.StartInfo.CreateNoWindow = false;
- PlanerProcess.StartInfo.RedirectStandardOutput = true;
- PlanerProcess.OutputDataReceived += MessageFromPlanerClient;
-
- PlanerProcess.Start();
- DownloadLogger.Post2($"Launcher Start: {PlanerProcess.StartInfo.FileName}");
-
- PlanerProcess.BeginOutputReadLine();
-
- pipeServer.DisposeLocalCopyOfClientHandle();
-
- try
- {
- using (StreamWriter sw = new StreamWriter(pipeServer))
- {
- var signal = new string[] { "C-137", "C-131" };
-
- sw.AutoFlush = true;
-
- SendInfo(sw, signal[0], pipeServer);
-
- SessionInformation.Connection.ToList().ForEach(info => SendInfo(sw, info, pipeServer));
- SessionInformation.Login.ToList().ForEach(info => SendInfo(sw, info, pipeServer));
- SessionInformation.Session.ToList().ForEach(info => SendInfo(sw, info, pipeServer));
-
- SendInfo(sw, signal[1], pipeServer);
- }
- }
- catch (IOException ex)
- {
-
- }
- }
- }
- internal static void SendInfo(StreamWriter sw, string info, AnonymousPipeServerStream pipe)
- {
- sw.WriteLine(info);
- pipe.WaitForPipeDrain();
- }
- internal static void KillPlanerProcess()
- {
- foreach (var process in Process.GetProcesses())
- {
- if (process.ProcessName.Contains("BeWoPlaner"))
- {
- process.Kill();
- }
- }
- }
-
- internal static void PlanerProcess_Exit(object sender, EventArgs e)
- {
- // ExitCode Übersicht:
- // 100 - Nutzer hat Logout in Core gedrückt
- // 0 - Nutzer hat Fenster geschlossen
- // 1 - Proess über TaskManager gekillt
-
- if (PlanerProcess.ExitCode == 100)
- {
- CurrentLauncher.Dispatcher.BeginInvoke(DispatcherPriority.Render, (Action)delegate
- {
- Thread.Sleep(500);
- ViewController.RestartView();
- });
- return;
- }
-
- CurrentLauncher.Dispatcher.BeginInvoke(DispatcherPriority.Normal, (Action)StartLauncherShutdown);
- }
-
- private static void MessageFromPlanerClient(object sender, DataReceivedEventArgs args)
- {
- var data = args.Data;
-
- if (data == "GUI geladen")
- {
- ViewController.CurrentWindow.Dispatcher.BeginInvoke(DispatcherPriority.Render, (Action)(() => ViewController.CurrentWindow.Hide()));
- }
- }
- }
-}
diff --git a/BeWoLauncher/Logic/Controller/ViewController.cs b/BeWoLauncher/Logic/Controller/ViewController.cs
deleted file mode 100644
index 691b92333..000000000
--- a/BeWoLauncher/Logic/Controller/ViewController.cs
+++ /dev/null
@@ -1,90 +0,0 @@
-using BeWoLauncher.Logic.Behavior;
-using BeWoLauncher.Logic.Utils;
-using BeWoLauncher.View;
-using BeWoLauncher.View.Frames;
-using BS.SharedLauncher.Logic;
-using System;
-using System.Configuration;
-using System.IO;
-using System.Threading.Tasks;
-using System.Windows.Controls;
-using System.Windows.Threading;
-
-namespace BeWoLauncher.Logic.Controller
-{
- public enum ViewType
- {
- LoginView,
- FrameView
- }
-
- public enum FrameType
- {
- InstallInfo,
- InstallProgress,
- InstallFailed,
- UpdateInfo,
- UpdateProgress,
- UpdateFailed,
- UninstallInfo,
- UninstallProgress,
- UninstallFailed,
- UninstallSuccessful,
- LoadingScreen,
- NoPermissionInfo,
- GenericFail
- }
-
- public static class ViewController
- {
- public static Exception Error{ get; set; }
-
- public static LauncherWindow CurrentWindow { get; private set; }
- public static Dispatcher Dispatcher => CurrentWindow.Dispatcher;
-
- public static ViewSwitchBehavior ViewBehavior { get; set; }
- public static LaunchBehavior LaunchBehavior { get; set; }
- public static ViewBuilder ViewBuilder { get; set; }
-
- static ViewController()
- {
- LaunchBehavior = new LaunchBehavior();
- ViewBehavior = new ViewSwitchBehavior();
- ViewBuilder = new ViewBuilder();
- }
-
- public static void InitWindow(LauncherWindow window)
- {
- if (CurrentWindow is null)
- CurrentWindow = window;
- }
-
- public static void StartView()
- {
- ViewBehavior.ShowView(ViewType.LoginView);
- }
- public static void RestartView()
- {
- ViewBehavior.ShowView(ViewType.LoginView);
-
- CurrentWindow.Show();
- CurrentWindow.Activate();
- }
-
- public static void StartWaiting() => CurrentWindow.StartWaiting();
- public static void EndWaiting() => CurrentWindow.EndWaiting();
-
- public static bool CheckForPermissions(string path)
- {
- return FileController.IsDirectoryWritable(path, false);
- }
- public static void CheckForAutoLogin(object sender, EventArgs e)
- {
- var autologin = bool.TryParse(ConfigurationManager.AppSettings.Get("AutoLogin"), out bool c) && c;
-
- if (autologin)
- if (sender is LoginView loginPage)
- loginPage.ClickLogin();
- }
- }
-}
diff --git a/BeWoLauncher/Logic/Converter/BoolNullCheckConverter.cs b/BeWoLauncher/Logic/Converter/BoolNullCheckConverter.cs
deleted file mode 100644
index 0a3a4b022..000000000
--- a/BeWoLauncher/Logic/Converter/BoolNullCheckConverter.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-using System;
-using System.Globalization;
-using System.Windows.Data;
-
-namespace BeWoLauncher.Converter
-{
- public class BoolNullCheckConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- return value != null;
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
-}
diff --git a/BeWoLauncher/Logic/Converter/BoolReverseConverter.cs b/BeWoLauncher/Logic/Converter/BoolReverseConverter.cs
deleted file mode 100644
index 9ecda8fe7..000000000
--- a/BeWoLauncher/Logic/Converter/BoolReverseConverter.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-using System;
-using System.Globalization;
-using System.Windows.Data;
-
-namespace BeWoLauncher.Converter
-{
- public class BoolReverseConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- if (value is bool buhl)
- {
- return !buhl;
- }
-
- return false;
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
-}
\ No newline at end of file
diff --git a/BeWoLauncher/Logic/Converter/BoolVisibilityConverter.cs b/BeWoLauncher/Logic/Converter/BoolVisibilityConverter.cs
deleted file mode 100644
index 85d7d67ad..000000000
--- a/BeWoLauncher/Logic/Converter/BoolVisibilityConverter.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System;
-using System.Globalization;
-using System.Windows;
-using System.Windows.Data;
-
-namespace BeWoLauncher.Converter
-{
- public class BoolVisibilityConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- if (value == null)
- {
- return Visibility.Visible;
- }
-
- var lMode = true;
- if (parameter is string s)
- {
- bool.TryParse(s, out lMode);
- }
-
- if (lMode)
- {
- return !(bool)value ? Visibility.Collapsed : Visibility.Visible;
- }
-
- return (bool)value ? Visibility.Collapsed : Visibility.Visible;
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
-}
\ No newline at end of file
diff --git a/BeWoLauncher/Logic/Converter/BoolVisibilityHiddenConverter.cs b/BeWoLauncher/Logic/Converter/BoolVisibilityHiddenConverter.cs
deleted file mode 100644
index 76d0efa44..000000000
--- a/BeWoLauncher/Logic/Converter/BoolVisibilityHiddenConverter.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System;
-using System.Globalization;
-using System.Windows;
-using System.Windows.Data;
-
-namespace BeWoLauncher.Converter
-{
- public class BoolVisibilityHiddenConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- if (value == null)
- {
- return Visibility.Visible;
- }
-
- bool lMode = true;
- if (parameter is string)
- {
- bool.TryParse((string)parameter, out lMode);
- }
-
- if (lMode)
- {
- return (!(bool)value) ? Visibility.Hidden : Visibility.Visible;
- }
-
- return ((bool)value) ? Visibility.Hidden : Visibility.Visible;
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
-}
\ No newline at end of file
diff --git a/BeWoLauncher/Logic/Converter/BoolVisibilityMultiConverter.cs b/BeWoLauncher/Logic/Converter/BoolVisibilityMultiConverter.cs
deleted file mode 100644
index cafa22b41..000000000
--- a/BeWoLauncher/Logic/Converter/BoolVisibilityMultiConverter.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-using System;
-using System.Globalization;
-using System.Linq;
-using System.Windows;
-using System.Windows.Data;
-
-namespace BeWoLauncher.Converter
-{
- public class BoolVisibilityMultiConverter : IMultiValueConverter
- {
- public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
- {
- return values.OfType().All(b => b) ? Visibility.Visible : Visibility.Collapsed;
- }
-
- public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
-}
\ No newline at end of file
diff --git a/BeWoLauncher/Logic/Converter/CollectionCountToBoolConverter.cs b/BeWoLauncher/Logic/Converter/CollectionCountToBoolConverter.cs
deleted file mode 100644
index a451448b5..000000000
--- a/BeWoLauncher/Logic/Converter/CollectionCountToBoolConverter.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using System;
-using System.Globalization;
-using System.Windows.Data;
-
-namespace BeWoLauncher.Converter
-{
- public class CollectionCountToBoolConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- try
- {
- var count = (int) value;
- return count > 0;
- }
- catch (Exception)
- {
- return false;
- }
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
-}
diff --git a/BeWoLauncher/Logic/Converter/CollectionCountToVisibilityConverter.cs b/BeWoLauncher/Logic/Converter/CollectionCountToVisibilityConverter.cs
deleted file mode 100644
index bb46b9e4d..000000000
--- a/BeWoLauncher/Logic/Converter/CollectionCountToVisibilityConverter.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-using System;
-using System.Globalization;
-using System.Windows;
-using System.Windows.Data;
-
-namespace BeWoLauncher.Converter
-{
- public class CollectionCountToVisibilityConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- try
- {
- var count = (int)value;
- return count > 0 ? Visibility.Visible : Visibility.Collapsed;
- }
- catch (Exception)
- {
- return Visibility.Collapsed;
- }
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
-}
\ No newline at end of file
diff --git a/BeWoLauncher/Logic/Converter/DataContract2StringConverter.cs b/BeWoLauncher/Logic/Converter/DataContract2StringConverter.cs
deleted file mode 100644
index f275a90bc..000000000
--- a/BeWoLauncher/Logic/Converter/DataContract2StringConverter.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-using System;
-using System.Globalization;
-using System.Windows.Data;
-
-namespace BeWoLauncher.Converter
-{
- public class DataContract2StringConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- if (value == null || ((String)value) == string.Empty)
- {
- return "nicht angegeben";
- }
-
- return value.ToString();
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
-}
\ No newline at end of file
diff --git a/BeWoLauncher/Logic/Converter/Date2CalendarWeekStringConverter.cs b/BeWoLauncher/Logic/Converter/Date2CalendarWeekStringConverter.cs
deleted file mode 100644
index 338283af3..000000000
--- a/BeWoLauncher/Logic/Converter/Date2CalendarWeekStringConverter.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using System;
-using System.Globalization;
-using System.Windows.Data;
-
-namespace BeWoLauncher.Converter
-{
- public class Date2CalendarWeekStringConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- if (!(value is DateTime))
- {
- return null;
- }
-
- var lDate = (DateTime)value;
- var lCal = DateTimeFormatInfo.CurrentInfo.Calendar;
-
- // TODO Wochenbuchung wegmachen :-)
- return "Leistungen gleicher Zeit und Dauer in dieser Woche buchen";
-
- // return "Leistungen gleicher Zeit und Dauer in dieser Woche buchen ("
- // + lDate.GetLast(DayOfWeek.Monday).ToShortDateString()
- // + " - "
- // + lDate.GetNext(DayOfWeek.Sunday).ToShortDateString()
- // + ")";
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
-}
\ No newline at end of file
diff --git a/BeWoLauncher/Logic/Converter/DateConverter.cs b/BeWoLauncher/Logic/Converter/DateConverter.cs
deleted file mode 100644
index a5228fdf4..000000000
--- a/BeWoLauncher/Logic/Converter/DateConverter.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System;
-using System.Globalization;
-using System.Windows.Data;
-
-namespace BeWoLauncher.Converter
-{
- [ValueConversion(typeof(DateTime?), typeof(string))]
- public class DateConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- string s = string.Empty;
- DateTime? lDateTime = (DateTime?)value;
- if (lDateTime.HasValue)
- {
- s = lDateTime.Value.ToShortDateString();
- }
-
- return s;
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- DateTime temp;
- DateTime.TryParse((string)value, out temp);
- if (temp != DateTime.MinValue)
- {
- return temp;
- }
- else
- {
- return null;
- }
- }
- }
-}
\ No newline at end of file
diff --git a/BeWoLauncher/Logic/Converter/DateNullValueToEmptyStringConverter.cs b/BeWoLauncher/Logic/Converter/DateNullValueToEmptyStringConverter.cs
deleted file mode 100644
index 105cdf72e..000000000
--- a/BeWoLauncher/Logic/Converter/DateNullValueToEmptyStringConverter.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using System;
-using System.Globalization;
-using System.Windows.Data;
-
-namespace BeWoLauncher.Converter
-{
- [ValueConversion(typeof(DateTime?), typeof(string))]
- public class DateNullValueToEmptyStringConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- DateTime? dt = System.Convert.ToDateTime(value);
-
- return (dt == null || dt.Value.Millisecond == 123) ? string.Empty : value;
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
-
- [ValueConversion(typeof(decimal?), typeof(string))]
- public class DecimalNullValueToEmptyStringConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- decimal? dec = System.Convert.ToDecimal(value);
- bool empty = value == null || dec == null || dec.Value == (decimal)0.00123;
- return empty ? string.Empty : value;
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
-}
\ No newline at end of file
diff --git a/BeWoLauncher/Logic/Converter/DecimalConverter.cs b/BeWoLauncher/Logic/Converter/DecimalConverter.cs
deleted file mode 100644
index 0c1df92bf..000000000
--- a/BeWoLauncher/Logic/Converter/DecimalConverter.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-using System;
-using System.Globalization;
-using System.Windows.Data;
-
-namespace BeWoLauncher.Converter
-{
- public class DecimalConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- if (value != null)
- {
- if (string.IsNullOrEmpty(parameter as string))
- {
- string v = value.ToString();
-
- // nachfolgende nullen entfernen
- while (v.Length > 1 && v[v.Length - 1] == '0')
- {
- v = v.Substring(0, v.Length - 1);
- }
-
- if (v.Length > 1 && v[v.Length - 1] == ',')
- {
- v = v.Substring(0, v.Length - 1);
- }
-
- return v;
- }
-
- return string.Format((string)parameter, value);
- }
-
- return string.Empty;
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- if (!string.IsNullOrEmpty((string)value))
- {
- var t = decimal.Parse((string)value);
- return t;
- }
-
- return null;
- }
- }
-}
\ No newline at end of file
diff --git a/BeWoLauncher/Logic/Converter/EnumToDescriptionConverter.cs b/BeWoLauncher/Logic/Converter/EnumToDescriptionConverter.cs
deleted file mode 100644
index 2834847c4..000000000
--- a/BeWoLauncher/Logic/Converter/EnumToDescriptionConverter.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using System;
-using System.ComponentModel;
-using System.Globalization;
-using System.Linq;
-using System.Windows.Data;
-
-namespace BeWoLauncher.Converter
-{
- public class EnumToDescriptionConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- if (value == null)
- return null;
-
- throw new Exception("Hier muss noch was getestet werden");
- //var EnVal = value as DevExpress.Xpf.Core.EnumHelper. EnumItem;
- //var fi2 = EnVal.Id.GetType().GetField(EnVal.Id.ToString());
- //var attrs = (DescriptionAttribute[])fi2.GetCustomAttributes(typeof(DescriptionAttribute), true);
-
- //return !attrs.Any() ? value : attrs[0].Description;
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- return value;
- }
- }
-}
\ No newline at end of file
diff --git a/BeWoLauncher/Logic/Converter/IListT2DataTableConverter.cs b/BeWoLauncher/Logic/Converter/IListT2DataTableConverter.cs
deleted file mode 100644
index c952a1b27..000000000
--- a/BeWoLauncher/Logic/Converter/IListT2DataTableConverter.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-using System;
-using System.Collections;
-using System.Data;
-using System.Globalization;
-using System.Windows.Data;
-
-namespace BeWoLauncher.Converter
-{
- public class IListT2DataTableConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- if (value is IList && value.GetType().IsGenericType)
- {
- DataTable lResult = new DataTable();
-
- Type lGenericType = value.GetType().GetGenericArguments()[0];
-
- lResult.TableName = lGenericType.FullName;
- lResult.Columns.Add("item");
-
- foreach (var iProp in lGenericType.GetProperties())
- {
- lResult.Columns.Add(iProp.Name);
- }
-
- Hashtable lRows2Objects = new Hashtable();
-
- foreach (var iItem in value as IList)
- {
- var iRow = lResult.NewRow();
- iRow["item"] = iItem;
-
- lRows2Objects.Add(iRow, iItem);
-
- foreach (var iProp in lGenericType.GetProperties())
- {
- iRow[iProp.Name] = iProp.GetValue(iItem, null);
- }
-
- lResult.Rows.Add(iRow);
- }
-
- lResult.RowChanged += (s, e) =>
- {
- foreach (var iProp in lGenericType.GetProperties())
- {
- iProp.SetValue(lRows2Objects[e.Row], e.Row[iProp.Name], null);
- }
- };
-
- return lResult;
- }
-
- return null;
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
-}
\ No newline at end of file
diff --git a/BeWoLauncher/Logic/Converter/IndexBoolConverter.cs b/BeWoLauncher/Logic/Converter/IndexBoolConverter.cs
deleted file mode 100644
index 0eac2a5f3..000000000
--- a/BeWoLauncher/Logic/Converter/IndexBoolConverter.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-using System;
-using System.Globalization;
-using System.Windows.Data;
-
-namespace BeWoLauncher.Converter
-{
- [ValueConversion(typeof(int), typeof(bool))]
- public class IndexBoolConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- int lIndex = -1;
- if (parameter != null && parameter is string)
- {
- Int32.TryParse(parameter as string, out lIndex);
- }
-
- return ((int)value) != lIndex;
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
-}
\ No newline at end of file
diff --git a/BeWoLauncher/Logic/Converter/Int2DecimalConverter.cs b/BeWoLauncher/Logic/Converter/Int2DecimalConverter.cs
deleted file mode 100644
index 0bc9d2337..000000000
--- a/BeWoLauncher/Logic/Converter/Int2DecimalConverter.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-using System;
-using System.Globalization;
-using System.Windows.Data;
-using System.Windows.Markup;
-
-namespace BeWoLauncher.Converter
-{
- public class Int2DecimalConverter : IValueConverter
- {
- #region IValueConverter Members
-
- public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- return System.Convert.ToDecimal(value);
- }
- public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- return System.Convert.ToInt32(value);
- }
-
- #endregion
-
-
- }
-}
\ No newline at end of file
diff --git a/BeWoLauncher/Logic/Converter/NullableBoolToBoolConverter.cs b/BeWoLauncher/Logic/Converter/NullableBoolToBoolConverter.cs
deleted file mode 100644
index 4d75a6c12..000000000
--- a/BeWoLauncher/Logic/Converter/NullableBoolToBoolConverter.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Globalization;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace BeWoLauncher.Converter
-{
- public class NullableBoolToBoolConverter : System.Windows.Data.IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- return false;
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
-}
diff --git a/BeWoLauncher/Logic/Converter/ObjectBoolConverter.cs b/BeWoLauncher/Logic/Converter/ObjectBoolConverter.cs
deleted file mode 100644
index 45b7d8716..000000000
--- a/BeWoLauncher/Logic/Converter/ObjectBoolConverter.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-using System;
-using System.Globalization;
-using System.Windows.Data;
-
-namespace BeWoLauncher.Converter
-{
- public class ObjectBoolConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- bool lFalseIfNull = true;
-
- if (parameter != null || parameter is string)
- {
- bool.TryParse((string)parameter, out lFalseIfNull);
- }
-
- if (value is string)
- {
- if (lFalseIfNull)
- {
- return !string.IsNullOrEmpty((string)value);
- }
- else
- {
- return string.IsNullOrEmpty((string)value);
- }
- }
-
- if (lFalseIfNull)
- {
- return value != null;
- }
-
- return value == null;
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
-}
\ No newline at end of file
diff --git a/BeWoLauncher/Logic/Converter/ObjectVisibilityConverter.cs b/BeWoLauncher/Logic/Converter/ObjectVisibilityConverter.cs
deleted file mode 100644
index a343ddb12..000000000
--- a/BeWoLauncher/Logic/Converter/ObjectVisibilityConverter.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-using System;
-using System.Globalization;
-using System.Windows;
-using System.Windows.Data;
-
-namespace BeWoLauncher.Converter
-{
- public class ObjectVisibilityConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- bool lVisibleIfNull = false;
-
- if (parameter != null || parameter is string)
- {
- bool.TryParse((string)parameter, out lVisibleIfNull);
- }
-
- if (value is string)
- {
- if (lVisibleIfNull)
- {
- return !string.IsNullOrEmpty((string)value) ? Visibility.Collapsed : Visibility.Visible;
- }
- else
- {
- return string.IsNullOrEmpty((string)value) ? Visibility.Collapsed : Visibility.Visible;
- }
- }
-
- if (lVisibleIfNull)
- {
- return value != null ? Visibility.Collapsed : Visibility.Visible;
- }
-
- return value == null ? Visibility.Collapsed : Visibility.Visible;
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
-}
\ No newline at end of file
diff --git a/BeWoLauncher/Logic/Converter/OneWayToSourceSwitch.cs b/BeWoLauncher/Logic/Converter/OneWayToSourceSwitch.cs
deleted file mode 100644
index 8148be3e9..000000000
--- a/BeWoLauncher/Logic/Converter/OneWayToSourceSwitch.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-using System;
-using System.Globalization;
-using System.Linq;
-using System.Windows.Data;
-
-namespace BeWoLauncher.Converter
-{
- public class OneWayToSourceSwitch : IMultiValueConverter
- {
- public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
- {
- throw new NotImplementedException();
- }
-
- public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
- {
- return targetTypes.Select(t => value).ToArray();
- }
- }
-}
\ No newline at end of file
diff --git a/BeWoLauncher/Logic/Converter/ReverseValueEqualsParamVisibilityConverter.cs b/BeWoLauncher/Logic/Converter/ReverseValueEqualsParamVisibilityConverter.cs
deleted file mode 100644
index bddfbc0de..000000000
--- a/BeWoLauncher/Logic/Converter/ReverseValueEqualsParamVisibilityConverter.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-using System;
-using System.Globalization;
-using System.Windows;
-using System.Windows.Data;
-
-namespace BeWoLauncher.Converter
-{
- public class ReverseValueEqualsParamVisibilityConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- if (parameter == null || value == null)
- {
- return Visibility.Visible;
- }
-
- if (parameter.Equals(value))
- {
- return Visibility.Collapsed;
- }
-
- return Visibility.Visible;
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
-}
\ No newline at end of file
diff --git a/BeWoLauncher/Logic/Converter/StringBrushConverter.cs b/BeWoLauncher/Logic/Converter/StringBrushConverter.cs
deleted file mode 100644
index 67e1b95c7..000000000
--- a/BeWoLauncher/Logic/Converter/StringBrushConverter.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-using System;
-using System.Globalization;
-using System.Windows.Data;
-using System.Windows.Media;
-
-namespace BeWoLauncher.Converter
-{
- public class StringBrushConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- var lColor = value as string;
-
- return lColor == null ? null : new SolidColorBrush((Color) ColorConverter.ConvertFromString(lColor));
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
-}
\ No newline at end of file
diff --git a/BeWoLauncher/Logic/Converter/StringFormatConverter.cs b/BeWoLauncher/Logic/Converter/StringFormatConverter.cs
deleted file mode 100644
index d979af4d6..000000000
--- a/BeWoLauncher/Logic/Converter/StringFormatConverter.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using System;
-using System.Globalization;
-using System.Windows;
-using System.Windows.Data;
-
-namespace BeWoLauncher.Converter
-{
- public class StringFormatConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- Object val = String.Empty;
-
- if (value != null && value != DependencyProperty.UnsetValue)
- {
- val = value;
- }
-
- if (parameter is string)
- {
- return string.Format(parameter as string, value);
- }
-
- return value;
- }
-
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- throw new NotImplementedException();
- }
-
- }
-}
\ No newline at end of file
diff --git a/BeWoLauncher/Logic/Converter/StringFormatMulitConverter.cs b/BeWoLauncher/Logic/Converter/StringFormatMulitConverter.cs
deleted file mode 100644
index 9c95d2fd7..000000000
--- a/BeWoLauncher/Logic/Converter/StringFormatMulitConverter.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-using System;
-using System.Globalization;
-using System.Windows;
-using System.Windows.Data;
-
-namespace BeWoLauncher.Converter
-{
- public class StringFormatMulitConverter : IMultiValueConverter
- {
- public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
- {
- for (int i = 0; i < values.Length; i++)
- {
- if (values[i] == null || values[i] == DependencyProperty.UnsetValue)
- {
- values[i] = string.Empty;
- }
- }
-
- if (parameter is string)
- {
- return string.Format(parameter as string, values);
- }
-
- return values;
- }
-
- public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
-}
\ No newline at end of file
diff --git a/BeWoLauncher/Logic/Converter/StringLengthVisibilityConverter.cs b/BeWoLauncher/Logic/Converter/StringLengthVisibilityConverter.cs
deleted file mode 100644
index a8e3a1780..000000000
--- a/BeWoLauncher/Logic/Converter/StringLengthVisibilityConverter.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-using System;
-using System.Globalization;
-using System.Windows;
-using System.Windows.Data;
-
-namespace BeWoLauncher.Converter
-{
- public class StringLengthVisibilityConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- if(value == null || value.GetType() != typeof(string) || string.IsNullOrWhiteSpace(value.ToString()))
- {
- return Visibility.Collapsed;
- }
-
- return Visibility.Visible;
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) => throw new NotImplementedException();
- }
-}
diff --git a/BeWoLauncher/Logic/Converter/StringLengthVisibilityMultiConverter.cs b/BeWoLauncher/Logic/Converter/StringLengthVisibilityMultiConverter.cs
deleted file mode 100644
index 5bf2728c7..000000000
--- a/BeWoLauncher/Logic/Converter/StringLengthVisibilityMultiConverter.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-using System;
-using System.Globalization;
-using System.Linq;
-using System.Windows;
-using System.Windows.Data;
-
-namespace BeWoLauncher.Converter
-{
- public class StringLengthVisibilityMultiConverter : IMultiValueConverter
- {
- public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
- {
- if(values == null || values.Length < 2 || values.Any(a => string.IsNullOrWhiteSpace(a?.ToString())))
- {
- return Visibility.Collapsed;
- }
-
- return Visibility.Visible;
- }
-
- public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture) => throw new NotImplementedException();
- }
-}
diff --git a/BeWoLauncher/Logic/Converter/ValueEqualsParamVisibilityConverter.cs b/BeWoLauncher/Logic/Converter/ValueEqualsParamVisibilityConverter.cs
deleted file mode 100644
index 60a850cf9..000000000
--- a/BeWoLauncher/Logic/Converter/ValueEqualsParamVisibilityConverter.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-using System;
-using System.Globalization;
-using System.Windows;
-using System.Windows.Data;
-
-namespace BeWoLauncher.Converter
-{
- public class ValueEqualsParamVisibilityConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- if (parameter == null || value == null)
- {
- return Visibility.Collapsed;
- }
-
- if (parameter.Equals(value))
- {
- return Visibility.Visible;
- }
-
- return Visibility.Collapsed;
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
-}
\ No newline at end of file
diff --git a/BeWoLauncher/Logic/Multitenancy/MultitenancyEndpointBehavior.cs b/BeWoLauncher/Logic/Multitenancy/MultitenancyEndpointBehavior.cs
deleted file mode 100644
index c942971b5..000000000
--- a/BeWoLauncher/Logic/Multitenancy/MultitenancyEndpointBehavior.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-using System;
-using System.ServiceModel.Channels;
-using System.ServiceModel.Description;
-using System.ServiceModel.Dispatcher;
-
-namespace BeWoLauncher.Multitenancy
-{
- public class MultitenancyEndpointBehavior : IEndpointBehavior
- {
- public void AddBindingParameters(ServiceEndpoint endpoint, BindingParameterCollection bindingParameters)
- {
- }
-
- public void ApplyClientBehavior(ServiceEndpoint endpoint, ClientRuntime clientRuntime)
- {
- clientRuntime.MessageInspectors.Add(new MultitenancyInterceptor());
- }
-
- public void ApplyDispatchBehavior(ServiceEndpoint endpoint, EndpointDispatcher endpointDispatcher)
- {
- throw new NotImplementedException("This is a client behavior only");
- }
-
- public void Validate(ServiceEndpoint endpoint)
- {
- }
- }
-}
\ No newline at end of file
diff --git a/BeWoLauncher/Logic/Multitenancy/MultitenancyHeader.cs b/BeWoLauncher/Logic/Multitenancy/MultitenancyHeader.cs
deleted file mode 100644
index 523826d91..000000000
--- a/BeWoLauncher/Logic/Multitenancy/MultitenancyHeader.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-using System.ServiceModel.Channels;
-using System.Xml;
-
-namespace BeWoLauncher.Multitenancy
-{
- public class MultitenancyHeader : MessageHeader
- {
- public override bool MustUnderstand
- {
- get
- {
- return false;
- }
- }
-
- public override string Name
- {
- get
- {
- return "Multitenancy";
- }
- }
-
- public override string Namespace
- {
- get
- {
- return "http://beyondsoft.de/Multitenancy.xsd";
- }
- }
-
- public string Tenant { get; set; }
-
- protected override void OnWriteHeaderContents(XmlDictionaryWriter writer, MessageVersion messageVersion)
- {
- writer.WriteElementString("Tenant", this.Tenant);
- }
- }
-}
\ No newline at end of file
diff --git a/BeWoLauncher/Logic/Multitenancy/MultitenancyInterceptor.cs b/BeWoLauncher/Logic/Multitenancy/MultitenancyInterceptor.cs
deleted file mode 100644
index cc05087b0..000000000
--- a/BeWoLauncher/Logic/Multitenancy/MultitenancyInterceptor.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-using BS.SharedLauncher;
-using BS.SharedLauncher.Information;
-using System.ServiceModel;
-using System.ServiceModel.Channels;
-using System.ServiceModel.Dispatcher;
-
-namespace BeWoLauncher.Multitenancy
-{
- public class MultitenancyInterceptor : IClientMessageInspector
- {
- public void AfterReceiveReply(ref Message reply, object correlationState)
- {
- }
-
- public object BeforeSendRequest(ref Message request, IClientChannel channel)
- {
- request.Headers.Add(new MultitenancyHeader { Tenant = SessionInformation.Login.Tenant });
- return null;
- }
- }
-}
\ No newline at end of file
diff --git a/BeWoLauncher/Logic/Security/LauncherSecurityHeader.cs b/BeWoLauncher/Logic/Security/LauncherSecurityHeader.cs
deleted file mode 100644
index cb8467b32..000000000
--- a/BeWoLauncher/Logic/Security/LauncherSecurityHeader.cs
+++ /dev/null
@@ -1,75 +0,0 @@
-using System.ServiceModel.Channels;
-using System.Xml;
-
-namespace BeWoLauncher.Security
-{
- // TODO: Make it namespace-conform (type Attributes, prefixes, etc)
- // ns:
- public class LauncherSecurityHeader : MessageHeader
- {
- private string mPassword;
-
- private string mUsername;
-
- public override bool MustUnderstand
- {
- get
- {
- return false;
- }
- }
-
- public override string Name
- {
- get
- {
- return "Security";
- }
- }
-
- public override string Namespace
- {
- get
- {
- return "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
- }
- }
-
- public string Password
- {
- get
- {
- return this.mPassword;
- }
-
- set
- {
- this.mPassword = value;
- }
- }
-
- public string Username
- {
- get
- {
- return this.mUsername;
- }
-
- set
- {
- this.mUsername = value;
- }
- }
-
- protected override void OnWriteHeaderContents(XmlDictionaryWriter writer, MessageVersion messageVersion)
- {
- writer.WriteStartElement("UsernameToken");
- writer.WriteElementString("Username", this.mUsername);
- writer.WriteStartElement("Password");
- writer.WriteAttributeString("Type", "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText");
- writer.WriteValue(this.mPassword);
- writer.WriteEndElement();
- writer.WriteEndElement();
- }
- }
-}
\ No newline at end of file
diff --git a/BeWoLauncher/Logic/Security/LauncherSecurityHeaderEndpointBehavior.cs b/BeWoLauncher/Logic/Security/LauncherSecurityHeaderEndpointBehavior.cs
deleted file mode 100644
index d50377b58..000000000
--- a/BeWoLauncher/Logic/Security/LauncherSecurityHeaderEndpointBehavior.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-using System;
-using System.ServiceModel.Channels;
-using System.ServiceModel.Description;
-using System.ServiceModel.Dispatcher;
-
-namespace BeWoLauncher.Security
-{
- public class LauncherSecurityHeaderEndpointBehavior : IEndpointBehavior
- {
- public void AddBindingParameters(ServiceEndpoint endpoint, BindingParameterCollection bindingParameters)
- {
- }
-
- public void ApplyClientBehavior(ServiceEndpoint endpoint, ClientRuntime clientRuntime)
- {
- clientRuntime.MessageInspectors.Add(new LauncherSecurityHeaderInterceptor());
- }
-
- public void ApplyDispatchBehavior(ServiceEndpoint endpoint, EndpointDispatcher endpointDispatcher)
- {
- throw new NotImplementedException("This is a client behavior only");
- }
-
- public void Validate(ServiceEndpoint endpoint)
- {
- }
- }
-}
\ No newline at end of file
diff --git a/BeWoLauncher/Logic/Security/LauncherSecurityHeaderInterceptor.cs b/BeWoLauncher/Logic/Security/LauncherSecurityHeaderInterceptor.cs
deleted file mode 100644
index 8c0e49527..000000000
--- a/BeWoLauncher/Logic/Security/LauncherSecurityHeaderInterceptor.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-using BeWoLauncher;
-using BS.SharedLauncher;
-using BS.SharedLauncher.Information;
-using System.ServiceModel;
-using System.ServiceModel.Channels;
-using System.ServiceModel.Dispatcher;
-
-namespace BeWoLauncher.Security
-{
- public class LauncherSecurityHeaderInterceptor : IClientMessageInspector
- {
- public void AfterReceiveReply(ref Message reply, object correlationState)
- {
- }
-
- public object BeforeSendRequest(ref Message request, IClientChannel channel)
- {
- request.Headers.Add(new LauncherSecurityHeader { Username = SessionInformation.Login.Username, Password = SessionInformation.Login.Password });
- return null;
- }
- }
-}
\ No newline at end of file
diff --git a/BeWoLauncher/Logic/ServiceProxy/LauncherGenerated.cs b/BeWoLauncher/Logic/ServiceProxy/LauncherGenerated.cs
deleted file mode 100644
index 0b2a8cd65..000000000
--- a/BeWoLauncher/Logic/ServiceProxy/LauncherGenerated.cs
+++ /dev/null
@@ -1,403 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// Dieser Code wurde von einem Tool generiert.
-// Laufzeitversion:4.0.30319.42000
-//
-// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
-// der Code erneut generiert wird.
-//
-//------------------------------------------------------------------------------
-
-namespace BeWoLauncher.ServiceProxy
-{
- using System.Runtime.Serialization;
-
-
- [System.Diagnostics.DebuggerStepThroughAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
- [System.Runtime.Serialization.DataContractAttribute(Name = "BeWoFault", Namespace = "http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- public partial class BeWoFault : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged
- {
-
- private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
-
- private BeWoLauncher.ServiceProxy.BeWoFaultType FaultTypeField;
-
- private string InnerExceptionMessageField;
-
- private string InnerExceptionStackTraceField;
-
- private string MessageField;
-
- private string StackTraceField;
-
- public System.Runtime.Serialization.ExtensionDataObject ExtensionData
- {
- get
- {
- return this.extensionDataField;
- }
- set
- {
- this.extensionDataField = value;
- }
- }
-
- [System.Runtime.Serialization.DataMemberAttribute()]
- public BeWoLauncher.ServiceProxy.BeWoFaultType FaultType
- {
- get
- {
- return this.FaultTypeField;
- }
- set
- {
- if ((this.FaultTypeField.Equals(value) != true))
- {
- this.FaultTypeField = value;
- this.RaisePropertyChanged("FaultType");
- }
- }
- }
-
- [System.Runtime.Serialization.DataMemberAttribute()]
- public string InnerExceptionMessage
- {
- get
- {
- return this.InnerExceptionMessageField;
- }
- set
- {
- if ((object.ReferenceEquals(this.InnerExceptionMessageField, value) != true))
- {
- this.InnerExceptionMessageField = value;
- this.RaisePropertyChanged("InnerExceptionMessage");
- }
- }
- }
-
- [System.Runtime.Serialization.DataMemberAttribute()]
- public string InnerExceptionStackTrace
- {
- get
- {
- return this.InnerExceptionStackTraceField;
- }
- set
- {
- if ((object.ReferenceEquals(this.InnerExceptionStackTraceField, value) != true))
- {
- this.InnerExceptionStackTraceField = value;
- this.RaisePropertyChanged("InnerExceptionStackTrace");
- }
- }
- }
-
- [System.Runtime.Serialization.DataMemberAttribute()]
- public string Message
- {
- get
- {
- return this.MessageField;
- }
- set
- {
- if ((object.ReferenceEquals(this.MessageField, value) != true))
- {
- this.MessageField = value;
- this.RaisePropertyChanged("Message");
- }
- }
- }
-
- [System.Runtime.Serialization.DataMemberAttribute()]
- public string StackTrace
- {
- get
- {
- return this.StackTraceField;
- }
- set
- {
- if ((object.ReferenceEquals(this.StackTraceField, value) != true))
- {
- this.StackTraceField = value;
- this.RaisePropertyChanged("StackTrace");
- }
- }
- }
-
- public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
-
- protected void RaisePropertyChanged(string propertyName)
- {
- System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
- if ((propertyChanged != null))
- {
- propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
- }
- }
- }
-
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
- [System.Runtime.Serialization.DataContractAttribute(Name = "BeWoFaultType", Namespace = "http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- public enum BeWoFaultType : int
- {
-
- [System.Runtime.Serialization.EnumMemberAttribute()]
- Unknown = 0,
-
- [System.Runtime.Serialization.EnumMemberAttribute()]
- Concurrency = 1,
-
- [System.Runtime.Serialization.EnumMemberAttribute()]
- DeleteNotPossible = 2,
-
- [System.Runtime.Serialization.EnumMemberAttribute()]
- LoginNameTaken = 3,
-
- [System.Runtime.Serialization.EnumMemberAttribute()]
- CustomWithoutDetails = 4,
- }
-
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
- [System.ServiceModel.ServiceContractAttribute(ConfigurationName = "BeWoLauncher.ServiceProxy.ILauncherService")]
- public interface ILauncherService
- {
-
- [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/ILauncherService/IsUserValid", ReplyAction = "http://tempuri.org/ILauncherService/IsUserValidResponse")]
- [System.ServiceModel.FaultContractAttribute(typeof(BeWoLauncher.ServiceProxy.BeWoFault), Action = "http://tempuri.org/ILauncherService/IsUserValidBeWoFaultFault", Name = "BeWoFault", Namespace = "http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- BS.SharedLauncher.Enums.UserValidationResult IsUserValid(string pUserName, string pPassword, string pPIN, string clientId, bool checkTenant);
-
- [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/ILauncherService/ResetTenant", ReplyAction = "http://tempuri.org/ILauncherService/ResetTenantResponse")]
- [System.ServiceModel.FaultContractAttribute(typeof(BeWoLauncher.ServiceProxy.BeWoFault), Action = "http://tempuri.org/ILauncherService/ResetTenantBeWoFaultFault", Name = "BeWoFault", Namespace = "http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- void ResetTenant(string tenant);
-
- [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/ILauncherService/ResetAllTenant", ReplyAction = "http://tempuri.org/ILauncherService/ResetAllTenantResponse")]
- [System.ServiceModel.FaultContractAttribute(typeof(BeWoLauncher.ServiceProxy.BeWoFault), Action = "http://tempuri.org/ILauncherService/ResetAllTenantBeWoFaultFault", Name = "BeWoFault", Namespace = "http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- void ResetAllTenant();
-
- [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/ILauncherService/GetEmailForUserName", ReplyAction = "http://tempuri.org/ILauncherService/GetEmailForUserNameResponse")]
- [System.ServiceModel.FaultContractAttribute(typeof(BeWoLauncher.ServiceProxy.BeWoFault), Action = "http://tempuri.org/ILauncherService/GetEmailForUserNameBeWoFaultFault", Name = "BeWoFault", Namespace = "http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- bool GetEmailForUserName(out string email, string pUserName, System.Uri serverName);
-
- [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/ILauncherService/CheckPassword", ReplyAction = "http://tempuri.org/ILauncherService/CheckPasswordResponse")]
- [System.ServiceModel.FaultContractAttribute(typeof(BeWoLauncher.ServiceProxy.BeWoFault), Action = "http://tempuri.org/ILauncherService/CheckPasswordBeWoFaultFault", Name = "BeWoFault", Namespace = "http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- BS.SharedLauncher.Enums.PasswordValidationResult CheckPassword(long userOid, string pOldPassword, string pNewPassword);
-
- [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/ILauncherService/CheckPassword2", ReplyAction = "http://tempuri.org/ILauncherService/CheckPassword2Response")]
- [System.ServiceModel.FaultContractAttribute(typeof(BeWoLauncher.ServiceProxy.BeWoFault), Action = "http://tempuri.org/ILauncherService/CheckPassword2BeWoFaultFault", Name = "BeWoFault", Namespace = "http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- BS.SharedLauncher.Enums.PasswordValidationResult CheckPassword2(string username, string pOldPassword, string pNewPassword);
-
- [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/ILauncherService/ChangePassword", ReplyAction = "http://tempuri.org/ILauncherService/ChangePasswordResponse")]
- [System.ServiceModel.FaultContractAttribute(typeof(BeWoLauncher.ServiceProxy.BeWoFault), Action = "http://tempuri.org/ILauncherService/ChangePasswordBeWoFaultFault", Name = "BeWoFault", Namespace = "http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- long ChangePassword(string pUserName, string pOldPassword, string pNewPassword);
-
- [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/ILauncherService/ResetPasswordInfo", ReplyAction = "http://tempuri.org/ILauncherService/ResetPasswordInfoResponse")]
- [System.ServiceModel.FaultContractAttribute(typeof(BeWoLauncher.ServiceProxy.BeWoFault), Action = "http://tempuri.org/ILauncherService/ResetPasswordInfoBeWoFaultFault", Name = "BeWoFault", Namespace = "http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- void ResetPasswordInfo(string pUserName, string pPassword);
- }
-
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
- public interface ILauncherServiceChannel : BeWoLauncher.ServiceProxy.ILauncherService, System.ServiceModel.IClientChannel
- {
- }
-
- [System.Diagnostics.DebuggerStepThroughAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
- public partial class LauncherServiceClient : System.ServiceModel.ClientBase, BeWoLauncher.ServiceProxy.ILauncherService
- {
-
- public LauncherServiceClient()
- {
- }
-
- public LauncherServiceClient(string endpointConfigurationName) :
- base(endpointConfigurationName)
- {
- }
-
- public LauncherServiceClient(string endpointConfigurationName, string remoteAddress) :
- base(endpointConfigurationName, remoteAddress)
- {
- }
-
- public LauncherServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
- base(endpointConfigurationName, remoteAddress)
- {
- }
-
- public LauncherServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
- base(binding, remoteAddress)
- {
- }
-
- public BS.SharedLauncher.Enums.UserValidationResult IsUserValid(string pUserName, string pPassword, string pPIN, string clientId, bool checkTenant)
- {
- return base.Channel.IsUserValid(pUserName, pPassword, pPIN, clientId, checkTenant);
- }
-
- public void ResetTenant(string tenant)
- {
- base.Channel.ResetTenant(tenant);
- }
-
- public void ResetAllTenant()
- {
- base.Channel.ResetAllTenant();
- }
-
- public bool GetEmailForUserName(out string email, string pUserName, System.Uri serverName)
- {
- return base.Channel.GetEmailForUserName(out email, pUserName, serverName);
- }
-
- public BS.SharedLauncher.Enums.PasswordValidationResult CheckPassword(long userOid, string pOldPassword, string pNewPassword)
- {
- return base.Channel.CheckPassword(userOid, pOldPassword, pNewPassword);
- }
-
- public BS.SharedLauncher.Enums.PasswordValidationResult CheckPassword2(string username, string pOldPassword, string pNewPassword)
- {
- return base.Channel.CheckPassword2(username, pOldPassword, pNewPassword);
- }
-
- public long ChangePassword(string pUserName, string pOldPassword, string pNewPassword)
- {
- return base.Channel.ChangePassword(pUserName, pOldPassword, pNewPassword);
- }
-
- public void ResetPasswordInfo(string pUserName, string pPassword)
- {
- base.Channel.ResetPasswordInfo(pUserName, pPassword);
- }
- }
-
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
- [System.ServiceModel.ServiceContractAttribute(ConfigurationName = "BeWoLauncher.ServiceProxy.IEnumTranslationService")]
- public interface IEnumTranslationService
- {
-
- [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IEnumTranslationService/GetTranslation", ReplyAction = "http://tempuri.org/IEnumTranslationService/GetTranslationResponse")]
- [System.ServiceModel.FaultContractAttribute(typeof(BeWoLauncher.ServiceProxy.BeWoFault), Action = "http://tempuri.org/IEnumTranslationService/GetTranslationBeWoFaultFault", Name = "BeWoFault", Namespace = "http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- string GetTranslation(string e, short value);
- }
-
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
- public interface IEnumTranslationServiceChannel : BeWoLauncher.ServiceProxy.IEnumTranslationService, System.ServiceModel.IClientChannel
- {
- }
-
- [System.Diagnostics.DebuggerStepThroughAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
- public partial class EnumTranslationServiceClient : System.ServiceModel.ClientBase, BeWoLauncher.ServiceProxy.IEnumTranslationService
- {
-
- public EnumTranslationServiceClient()
- {
- }
-
- public EnumTranslationServiceClient(string endpointConfigurationName) :
- base(endpointConfigurationName)
- {
- }
-
- public EnumTranslationServiceClient(string endpointConfigurationName, string remoteAddress) :
- base(endpointConfigurationName, remoteAddress)
- {
- }
-
- public EnumTranslationServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
- base(endpointConfigurationName, remoteAddress)
- {
- }
-
- public EnumTranslationServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
- base(binding, remoteAddress)
- {
- }
-
- public string GetTranslation(string e, short value)
- {
- return base.Channel.GetTranslation(e, value);
- }
- }
-
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
- [System.ServiceModel.ServiceContractAttribute(ConfigurationName = "BeWoLauncher.ServiceProxy.IDownloadBeWoService")]
- public interface IDownloadBeWoService
- {
-
- [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IDownloadBeWoService/Download2", ReplyAction = "http://tempuri.org/IDownloadBeWoService/Download2Response")]
- [System.ServiceModel.FaultContractAttribute(typeof(BeWoLauncher.ServiceProxy.BeWoFault), Action = "http://tempuri.org/IDownloadBeWoService/Download2BeWoFaultFault", Name = "BeWoFault", Namespace = "http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- BS.SharedLauncher.DataContract.UpdateFileResponse Download2(BS.SharedLauncher.DataContract.UpdatePlanRequest request);
-
- [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IDownloadBeWoService/DownloadInfo", ReplyAction = "http://tempuri.org/IDownloadBeWoService/DownloadInfoResponse")]
- [System.ServiceModel.FaultContractAttribute(typeof(BeWoLauncher.ServiceProxy.BeWoFault), Action = "http://tempuri.org/IDownloadBeWoService/DownloadInfoBeWoFaultFault", Name = "BeWoFault", Namespace = "http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- BS.SharedLauncher.DataContract.UpdatePlanResponse DownloadInfo(BS.SharedLauncher.DataContract.UpdatePlanRequest request);
-
- [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IDownloadBeWoService/GetUpdatePlan", ReplyAction = "http://tempuri.org/IDownloadBeWoService/GetUpdatePlanResponse")]
- [System.ServiceModel.FaultContractAttribute(typeof(BeWoLauncher.ServiceProxy.BeWoFault), Action = "http://tempuri.org/IDownloadBeWoService/GetUpdatePlanBeWoFaultFault", Name = "BeWoFault", Namespace = "http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- BS.SharedLauncher.DataContract.UpdatePlanResponse GetUpdatePlan(BS.SharedLauncher.DataContract.UpdatePlanRequest request);
-
- [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IDownloadBeWoService/GetUpdateFile", ReplyAction = "http://tempuri.org/IDownloadBeWoService/GetUpdateFileResponse")]
- [System.ServiceModel.FaultContractAttribute(typeof(BeWoLauncher.ServiceProxy.BeWoFault), Action = "http://tempuri.org/IDownloadBeWoService/GetUpdateFileBeWoFaultFault", Name = "BeWoFault", Namespace = "http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- BS.SharedLauncher.DataContract.UpdateFileResponse GetUpdateFile(BS.SharedLauncher.DataContract.UpdateFileRequest request);
- }
-
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
- public interface IDownloadBeWoServiceChannel : BeWoLauncher.ServiceProxy.IDownloadBeWoService, System.ServiceModel.IClientChannel
- {
- }
-
- [System.Diagnostics.DebuggerStepThroughAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
- public partial class DownloadBeWoServiceClient : System.ServiceModel.ClientBase, BeWoLauncher.ServiceProxy.IDownloadBeWoService
- {
-
- public DownloadBeWoServiceClient()
- {
- }
-
- public DownloadBeWoServiceClient(string endpointConfigurationName) :
- base(endpointConfigurationName)
- {
- }
-
- public DownloadBeWoServiceClient(string endpointConfigurationName, string remoteAddress) :
- base(endpointConfigurationName, remoteAddress)
- {
- }
-
- public DownloadBeWoServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
- base(endpointConfigurationName, remoteAddress)
- {
- }
-
- public DownloadBeWoServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
- base(binding, remoteAddress)
- {
- }
-
- public BS.SharedLauncher.DataContract.UpdateFileResponse Download2(BS.SharedLauncher.DataContract.UpdatePlanRequest request)
- {
- return base.Channel.Download2(request);
- }
-
- public BS.SharedLauncher.DataContract.UpdatePlanResponse DownloadInfo(BS.SharedLauncher.DataContract.UpdatePlanRequest request)
- {
- return base.Channel.DownloadInfo(request);
- }
-
- public BS.SharedLauncher.DataContract.UpdatePlanResponse GetUpdatePlan(BS.SharedLauncher.DataContract.UpdatePlanRequest request)
- {
- return base.Channel.GetUpdatePlan(request);
- }
-
- public BS.SharedLauncher.DataContract.UpdateFileResponse GetUpdateFile(BS.SharedLauncher.DataContract.UpdateFileRequest request)
- {
- return base.Channel.GetUpdateFile(request);
- }
- }
-}
diff --git a/BeWoLauncher/Logic/ServiceProxy/LauncherServiceFacade.cs b/BeWoLauncher/Logic/ServiceProxy/LauncherServiceFacade.cs
deleted file mode 100644
index c8dbe9637..000000000
--- a/BeWoLauncher/Logic/ServiceProxy/LauncherServiceFacade.cs
+++ /dev/null
@@ -1,500 +0,0 @@
-using BeWoLauncher.Multitenancy;
-using BeWoLauncher.Security;
-using BS.SharedLauncher.Information;
-using System;
-using System.Collections.Generic;
-using System.ServiceModel;
-using System.Threading;
-using System.Windows;
-
-namespace BeWoLauncher.ServiceProxy
-{
- public static class LauncherServiceFacade
- {
- public static object _Lock = string.Empty;
-
- private static Dictionary _EndpointAddresses;
- private static readonly Dictionary _ProxyCache;
-
- private static readonly int _RunningAsyncs;
-
- public static void UpdateServerAddresses()
- {
- var download = SessionInformation.Connection.DownloadServerAddressExact;
- var core = SessionInformation.Connection.CoreServerAddressExact;
-
- if (download.Substring(download.Length - 1, 1) != "/")
- download += "/";
- if (core.Substring(core.Length - 1, 1) != "/")
- core += "/";
-
- _EndpointAddresses = new Dictionary
- {
- { typeof(ILauncherService), new EndpointAddress(core + "LauncherService.svc") },
- { typeof(IEnumTranslationService), new EndpointAddress(core + "EnumTranslationService.svc") },
- { typeof(IDownloadBeWoService), new EndpointAddress(download + "DownloadBeWoService.svc") }
- };
- }
-
- static LauncherServiceFacade()
- {
- _ProxyCache = new Dictionary();
- }
-
- #region Launcher
- public static void DoLauncherServiceSync(Action pAction)
- {
- try
- {
- pAction.Invoke(GetInstance());
- }
- catch (Exception e)
- {
- // if (HandleServiceProxyException(e))
- // throw e;
- ShowErrorMessage(e);
- }
- }
- public static T DoLauncherServiceSync(Func pFunc)
- {
- try
- {
- return pFunc.Invoke(GetInstance());
- }
- catch (Exception e)
- {
- ShowErrorMessage(e);
- }
- return default(T);
- }
- public static void DoLauncherServiceAsync(Func pFunc, Action pCallBack)
- {
- DoAsync(pFunc, pCallBack, true);
- }
- public static void DoLauncherServiceAsync(Func pFunc, Action pCallBack, bool showWaitDialog)
- {
- DoAsync(pFunc, pCallBack, showWaitDialog);
- }
- public static void DoLauncherServiceAsync(Action pAction)
- {
- DoAsync(pAction, true);
- }
- public static void DoLauncherServiceAsync(Action pAction, Action pCallBack)
- {
- DoAsync(pAction, pCallBack, true);
- }
- public static void DoMultipleLauncherServicesAsync(List> pActions, Action pAllDoneCallBack)
- {
- DoMulitpleAsync(pActions, pAllDoneCallBack, true);
- }
- public static void DoMultipleLauncherServicesSync(List> pActions)
- {
- DoMulitpleSync(pActions, true);
- }
- #endregion
- #region EnumTranslation
-
- public static void DoEnumTranslationServiceSync(Action pAction)
- {
- try
- {
- pAction.Invoke(GetInstance());
- }
- catch (Exception e)
- {
- // if (HandleServiceProxyException(e))
- // throw e;
- ShowErrorMessage(e);
- }
- }
- public static T DoEnumTranslationServiceSync(Func pFunc)
- {
- try
- {
- return pFunc.Invoke(GetInstance());
- }
- catch (Exception e)
- {
- ShowErrorMessage(e);
- }
- return default(T);
- }
- public static void DoEnumTranslationServiceAsync(Func pFunc, Action pCallBack)
- {
- DoAsync(pFunc, pCallBack, true);
- }
- public static void DoEnumTranslationServiceAsync(Func pFunc, Action pCallBack, bool showWaitDialog)
- {
- DoAsync(pFunc, pCallBack, showWaitDialog);
- }
- public static void DoEnumTranslationServiceAsync(Action pAction)
- {
- DoAsync(pAction, true);
- }
- public static void DoEnumTranslationServiceAsync(Action pAction, Action pCallBack)
- {
- DoAsync(pAction, pCallBack, true);
- }
- public static void DoMultipleEnumTranslationServicesAsync(List> pActions, Action pAllDoneCallBack)
- {
- DoMulitpleAsync(pActions, pAllDoneCallBack, true);
- }
- public static void DoMultipleEnumTranslationServicesSync(List> pActions)
- {
- DoMulitpleSync(pActions, true);
- }
-
- #endregion
- #region DownloadBeWo
- public static void DoDownloadBeWoServiceSync(Action pAction)
- {
- try
- {
- pAction.Invoke(GetInstance());
- }
- catch (Exception e)
- {
- // if (HandleServiceProxyException(e))
- // throw e;
- ShowErrorMessage(e);
- }
- }
- public static T DoDownloadBeWoServiceSyncWithException(Func pFunc)
- {
- try
- {
- return pFunc.Invoke(GetInstance());
- }
- catch (Exception e)
- {
- throw e;
- }
- return default(T);
- }
- public static T DoDownloadBeWoServiceSync(Func pFunc)
- {
- try
- {
- return pFunc.Invoke(GetInstance());
- }
- catch (Exception e)
- {
- ShowErrorMessage(e);
- }
- return default(T);
- }
- public static void DoDownloadBeWoServiceAsync(Func pFunc, Action pCallBack)
- {
- DoAsync(pFunc, pCallBack, true);
- }
- public static void DoDownloadBeWoServiceAsync(Func pFunc, Action pCallBack, bool showWaitDialog)
- {
- DoAsync(pFunc, pCallBack, showWaitDialog);
- }
- public static void DoDownloadBeWoServiceAsync(Action pAction)
- {
- DoAsync(pAction, true);
- }
- public static void DoDownloadBeWoServiceAsync(Action pAction, Action pCallBack)
- {
- DoAsync(pAction, pCallBack, true);
- }
- #endregion
-
- private static void DoAsync(Func pFunc, Action pCallback, bool showWaitDialog)
- where TClient : ClientBase, TInterface, new()
- where TInterface : class
- {
- DoAsync(pFunc, pCallback, null, showWaitDialog);
- }
- private static void DoAsync(Func pFunc, Action pCallback, Action pErrorCallback, bool showWaitDialog)
- where TClient : ClientBase, TInterface, new()
- where TInterface : class
- {
- try
- {
- if (showWaitDialog)
- {
- StartWaiting();
- }
-
- pFunc.BeginInvoke(
- GetInstance(),
- cb =>
- {
- try
- {
- T lResult = pFunc.EndInvoke(cb);
- if (pCallback != null)
- {
- pCallback(lResult);
- }
-
- if (showWaitDialog)
- {
- EndWaiting();
- }
- }
- catch (Exception e)
- {
- // bool lThrow = ShowErrorMessage(e);
- // if (showWaitDialog) EndWaiting();
- // if (lThrow)
- // throw e;
- if (showWaitDialog)
- {
- EndWaiting();
- }
-
- ShowErrorMessage(e);
- if (pErrorCallback != null)
- {
- pErrorCallback();
- }
- }
- },
- null);
- }
- catch (Exception e)
- {
- // bool lThrow = ShowErrorMessage(e);
- // if (showWaitDialog) EndWaiting();
- // if (lThrow)
- // throw e;
- if (showWaitDialog)
- {
- EndWaiting();
- }
-
- ShowErrorMessage(e);
- }
- }
- private static void DoAsync(Action pAction, bool showWaitDialog)
- where TClient : ClientBase, TInterface, new()
- where TInterface : class
- {
- DoAsync(pAction, null, showWaitDialog);
- }
- private static void DoAsync(Action pAction, Action pCallback, bool showWaitDialog)
- where TClient : ClientBase, TInterface, new()
- where TInterface : class
- {
- try
- {
- if (showWaitDialog)
- {
- StartWaiting();
- }
-
- pAction.BeginInvoke(
- GetInstance(),
- cb =>
- {
- try
- {
- pAction.EndInvoke(cb);
- if (pCallback != null)
- {
- pCallback();
- }
-
- if (showWaitDialog)
- {
- EndWaiting();
- }
- }
- catch (Exception e)
- {
- // bool lThrow = ShowErrorMessage(e);
- // if (showWaitDialog) EndWaiting();
- // if (lThrow)
- // throw e;
- if (showWaitDialog)
- {
- EndWaiting();
- }
-
- ShowErrorMessage(e);
- }
- },
- null);
- }
- catch (Exception e)
- {
- // bool lThrow = ShowErrorMessage(e);
- // if (showWaitDialog) EndWaiting();
- // if (lThrow)
- // throw e;
- if (showWaitDialog)
- {
- EndWaiting();
- }
-
- ShowErrorMessage(e);
- }
- }
- private static void DoMulitpleSync(List> pActions, bool showWaitDialog)
- where TClient : ClientBase, TInterface, new()
- where TInterface : class
- {
- int lCount = pActions.Count;
-
- if (showWaitDialog)
- {
- StartWaiting();
- }
- foreach (var iAction in pActions)
- {
- iAction.Invoke(GetInstance());
- }
- if (showWaitDialog)
- {
- EndWaiting();
- }
- }
- private static void DoMulitpleAsync(List> pActions, Action pAllDoneCallBack, bool showWaitDialog)
- where TClient : ClientBase, TInterface, new()
- where TInterface : class
- {
- int lCount = pActions.Count;
- if (lCount == 0)
- {
- pAllDoneCallBack();
- }
-
- foreach (var iAction in pActions)
- {
- DoAsync(
- iAction,
- delegate
- {
- Monitor.Enter(_Lock);
- lCount--;
- Monitor.Exit(_Lock);
- if (lCount == 0)
- {
- pAllDoneCallBack();
- }
- },
- showWaitDialog);
- }
- }
- private static TInterface GetInstance()
- where TClient : ClientBase, TInterface, new()
- where TInterface : class
- {
- TClient lClient = null;
- if (_ProxyCache.ContainsKey(typeof(TClient)))
- {
- lClient = (TClient)_ProxyCache[typeof(TClient)];
-
- if (lClient.State == CommunicationState.Closing || lClient.State == CommunicationState.Closed || lClient.State == CommunicationState.Faulted)
- {
- if (lClient.State == CommunicationState.Faulted)
- {
- lClient.Abort();
- }
-
- lClient = null;
- _ProxyCache.Remove(typeof(TClient));
- }
- }
-
- if (lClient != null)
- {// EndpointAddresses aktualisieren
- if (!lClient.Endpoint.Address.Equals(_EndpointAddresses[typeof(TInterface)]))
- {
- if (lClient.State == CommunicationState.Opened)
- lClient.Close();
-
- if (_ProxyCache.ContainsKey(typeof(TClient)))
- _ProxyCache.Remove(typeof(TClient));
- lClient = null;
- }
- }
-
- if (lClient == null)
- {
- lClient = new TClient();
-
- if (!_ProxyCache.ContainsKey(lClient.GetType()))
- {
- _ProxyCache.Add(typeof(TClient), lClient);
- }
-
-
- lClient.Endpoint.Behaviors.Add(new LauncherSecurityHeaderEndpointBehavior());
- lClient.Endpoint.Behaviors.Add(new MultitenancyEndpointBehavior());
-
- lClient.Endpoint.Address = _EndpointAddresses[typeof(TInterface)];
- }
-
- return lClient;
- }
- private static void ShowErrorMessage(Exception e)
- {
- if (e is FaultException)
- {
- var lBeWoFault = (e as FaultException).Detail;
-
- String rowUpdated = "Der Datensatz wurde in der Zwischenzeit von einem anderen Benutzer geändert. Ihre Änderungen konnten leider NICHT gespeichert werden. Das Problem tritt auf, wenn mehrere Benutzer gleichzeitig den gleichen Datensatz bearbeiten.\n\nSie müssen den Datensatz schließen und erneut öffnen, um die Änderungen vornehmen zu können.";
- switch (lBeWoFault.FaultType)
- {
- case BeWoFaultType.Concurrency:
- LauncherApp.ShowError(rowUpdated, e, false);
- break;
- case BeWoFaultType.DeleteNotPossible:
- MessageBox.Show(lBeWoFault.Message, "Fehler", MessageBoxButton.OK, MessageBoxImage.Asterisk);
- break;
- case BeWoFaultType.LoginNameTaken:
- MessageBox.Show(lBeWoFault.Message, "Warnung", MessageBoxButton.OK, MessageBoxImage.Asterisk);
- return;
- case BeWoFaultType.CustomWithoutDetails:
- LauncherApp.ShowError(lBeWoFault.Message, e, false);
- break;
- default:
- if (!string.IsNullOrEmpty(e.Message) && e.Message.IndexOf("Row was updated or deleted by another transaction") >= 0)
- {
- LauncherApp.ShowError(rowUpdated, e, false);
- }
- else
- {
- if (!string.IsNullOrEmpty(lBeWoFault.Message))
- {
- LauncherApp.ShowError(lBeWoFault.Message, e, true);
- }
- else
- {
- LauncherApp.ShowError(null, e, true);
- }
- }
- break;
- }
- }
- else
- {
- LauncherApp.ShowError(null, e, true);
- }
- }
- private static void StartWaiting()
- {
- //Monitor.Enter(_Lock);
- //if ((++_RunningAsyncs) == 1)
- //{
- // LauncherApp.Window.StartWaiting();
- //}
-
- //Monitor.Exit(_Lock);
- }
- private static void EndWaiting()
- {
- //Monitor.Enter(_Lock);
- //if ((--_RunningAsyncs) == 0)
- //{
- // LauncherApp.Window.EndWaiting();
- //}
-
- //Monitor.Exit(_Lock);
- }
- }
-}
diff --git a/BeWoLauncher/Logic/Utils/Download/DownloadManager.cs b/BeWoLauncher/Logic/Utils/Download/DownloadManager.cs
deleted file mode 100644
index af73ba4b8..000000000
--- a/BeWoLauncher/Logic/Utils/Download/DownloadManager.cs
+++ /dev/null
@@ -1,212 +0,0 @@
-using BeWoLauncher.ServiceProxy;
-using BS.SharedLauncher;
-using BS.SharedLauncher.DataContract;
-using BS.SharedLauncher.Enums;
-using BS.SharedLauncher.Exceptions;
-using BS.SharedLauncher.Extensions;
-using BS.SharedLauncher.Information;
-using BS.SharedLauncher.Logic;
-using BS.SharedLauncher.Update;
-using BS.SharedLauncher.Utils;
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.IO;
-using System.IO.Compression;
-using System.Linq;
-using System.Text;
-using System.Threading;
-using System.Threading.Tasks;
-using System.Windows;
-using System.Xml.Serialization;
-
-namespace BeWoLauncher.Logic.Utils.Download
-{
- public class DownloadManager
- {
- public UpdatePlanRequest UpdatePlanRequest { get; set; }
- public UpdatePlanResponse UpdatePlanResponse { get; set; }
-
- public string RootFolder => LauncherPaths.GetRootPath();
- public string DownloadFolder => LauncherPaths.GetDownloadPath();
- public string ApplyFolder => LauncherPaths.GetApplyPath();
-
- public bool SkipLock { get; set; }
- public Action Feedback { get; set; }
-
- public int FilesToDownloadCount => UpdatePlanResponse.FilesToRequest?.Count ?? 0;
- public int FilesToApplyCount => FilesToDownloadCount + (UpdatePlanResponse.FilesToApply?.Count ?? 0);
- public int FilesToDeleteInApplyCount => UpdatePlanResponse.FilesToDeleteInApply?.Count ?? 0;
- public int FilesToProcessTotal => FilesToDownloadCount + FilesToApplyCount + FilesToDeleteInApplyCount;
-
- public DownloadManager()
- {
-
- }
-
- public void GetUpdatePlan()
- {
- CreateUpdatePlanRequest();
-
- GetUpdatePlanResponse();
-
- SessionInformation.Session.Version = UpdatePlanResponse.CurrentPackage.Version;
- }
-
- public void StartProcess(BackgroundWorker worker)
- {
- var report = new Action((progress, waitms) =>
- {
- worker.ReportProgress((int)progress);
- Thread.Sleep(waitms);
- });
-
- report(LauncherProgress.ProgressStart, 1000);
-
- if (FilesToDownloadCount > 0)
- {
- report(LauncherProgress.DownloadStart, 500);
-
- Download();
-
- report(LauncherProgress.DownloadFinish, 1000);
- }
-
- if (FilesToApplyCount > 0)
- {
- report(LauncherProgress.ApplyStart, 500);
-
- Apply();
-
- report(LauncherProgress.ApplyFinished, 1000);
- }
-
- if (FilesToDeleteInApplyCount > 0)
- {
- report(LauncherProgress.DeleteStart, 500);
-
- Delete();
-
- report(LauncherProgress.DeleteFinished, 1000);
- }
-
- report(LauncherProgress.CleanupStart, 500);
-
- Cleanup();
-
- report(LauncherProgress.CleanupFinished, 1000);
-
- // report(LauncherProgress.ProgressEnd, 500);
- }
-
- public void Download()
- {
- DownloadFolder.CreateFolder();
-
- DownloadFolder.Lock(SkipLock);
-
- DownloadFolder.SaveCurrentInfo("current");
-
- UpdateFileRequest req = new UpdateFileRequest(UpdatePlanResponse.CurrentPackage.Version);
- foreach (var file2request in UpdatePlanResponse.FilesToRequest)
- {
- req.UpdateFile = file2request;
-
- var res = AskForFile(req);
-
- var download_path = DownloadFolder.Combine(file2request.RelativePath);
-
- Path.GetDirectoryName(download_path).CreateFolder();
- download_path.SaveFile(res.FileData);
-
- var size = NonspecificTools.SizeSuffix((ulong)res.FileData.Length);
-
- Feedback((int)LauncherProgress.DownloadUpdate, new DownloadProgressEventArgs(size, file2request));
- }
-
- DownloadFolder.Unlock();
- }
- public void Apply()
- {
- ApplyFolder.CreateFolder();
-
- ApplyFolder.Lock(SkipLock);
-
- if (UpdatePlanResponse.FilesToApply is object)
- UpdatePlanResponse.FilesToApply.ForEach(ApplyFile);
-
- if (UpdatePlanResponse.FilesToRequest is object)
- UpdatePlanResponse.FilesToRequest.ForEach(ApplyFile);
-
- ApplyFolder.SaveCurrentInfo("current");
- }
- public void ApplyFile(UpdateFileDC file2apply)
- {
- var apply_path = ApplyFolder.Combine(file2apply.RelativePath);
- var download_path = DownloadFolder.Combine(file2apply.RelativePath);
-
- Path.GetDirectoryName(apply_path).CreateFolder();
- download_path.CopyFileTo(apply_path);
-
- Feedback((int)LauncherProgress.ApplyUpdate, new ApplyFileEventArgs(file2apply.RelativePath));
- }
- public void Delete()
- {
- foreach (var file2delete in UpdatePlanResponse.FilesToDeleteInApply)
- {
- var delete_path = ApplyFolder.Combine(file2delete.RelativePath);
-
- delete_path.DeleteFile();
-
- Feedback((int)LauncherProgress.DeleteUpdate, file2delete.RelativePath);
- }
- }
- public void Cleanup()
- {
- ApplyFolder.DeleteEmptyDirectories();
-
- DownloadFolder.ClearFolder();
-
- ApplyFolder.Unlock();
- }
-
- private void CreateUpdatePlanRequest()
- {
- UpdatePlanRequest = new UpdatePlanRequest();
-
- if (UpdatePlanRequest.PlanerRootFolderExists = LauncherPaths.ActualPlanerLocation.Exists())
- {
- if (UpdatePlanRequest.DownloadFolderExists = DownloadFolder.Exists())
- if (!(UpdatePlanRequest.DownloadFolderIsEmpty = DownloadFolder.IsFolderEmpty()))
- UpdatePlanRequest.DownloadedFiles = FileController.GetDownloadedFiles(DownloadFolder);
-
- if (UpdatePlanRequest.ApplyFolderExists = ApplyFolder.Exists())
- if (!(UpdatePlanRequest.ApplyFolderIsEmpty = ApplyFolder.IsFolderEmpty()))
- UpdatePlanRequest.ApplyPackage = FileController.GetApplyPackage(ApplyFolder);
- }
-
- UpdatePlanRequest.Login = new LoginDC()
- {
- Username = SessionInformation.Login.Username,
- Password = SessionInformation.Login.Password,
- CoreServerAddress = SessionInformation.Connection.CoreServerAddress,
- Pin = SessionInformation.Login.Pin,
- ClientID = SessionInformation.Login.ClientId,
- CheckTenant = true,
- TempUsername = SessionInformation.Login.TempUsername,
- };
- }
-
- private UpdateFileResponse AskForFile(UpdateFileRequest request)
- {
- return LauncherServiceFacade.DoDownloadBeWoServiceSyncWithException(x => x.GetUpdateFile(request));
- }
-
- private void GetUpdatePlanResponse()
- {
- UpdatePlanResponse = LauncherServiceFacade.DoDownloadBeWoServiceSyncWithException(x => x.GetUpdatePlan(UpdatePlanRequest));
-
- // UpdatePlanResponse.FilesToApply.AddRange(UpdatePlanResponse.FilesToRequest);
- }
- }
-}
diff --git a/BeWoLauncher/Logic/Utils/LauncherAppdataConfig.cs b/BeWoLauncher/Logic/Utils/LauncherAppdataConfig.cs
deleted file mode 100644
index 81d3f4e92..000000000
--- a/BeWoLauncher/Logic/Utils/LauncherAppdataConfig.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace BeWoLauncher.Logic.Utils
-{
- public static class LauncherAppdataConfig
- {
- public static string GetInstallLocation()
- {
- return Properties.Settings.Default.InstallLocation;
- }
-
- public static void SetInstallLocation(string path)
- {
- Properties.Settings.Default.InstallLocation = path;
- Properties.Settings.Default.Save();
- }
-
- public static bool GetFirstInstallationSuccess()
- {
- return Properties.Settings.Default.FirstInstallationSuccess;
- }
-
- public static void SetFirstInstallationSuccess(bool b)
- {
- Properties.Settings.Default.FirstInstallationSuccess = b;
- Properties.Settings.Default.Save();
- }
- }
-}
diff --git a/BeWoLauncher/Logic/Utils/LauncherPaths.cs b/BeWoLauncher/Logic/Utils/LauncherPaths.cs
deleted file mode 100644
index ac145715e..000000000
--- a/BeWoLauncher/Logic/Utils/LauncherPaths.cs
+++ /dev/null
@@ -1,127 +0,0 @@
-using BeWoLauncher.Logic.Controller;
-using BS.SharedLauncher.Extensions;
-using BS.SharedLauncher.Information;
-using BS.SharedLauncher.Logic;
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows;
-
-namespace BeWoLauncher.Logic.Utils
-{
- public static class LauncherPaths
- {
- private static readonly string planerExeName = "BeWoPlaner.exe";
-
- //private static readonly string versionXml = "bewo.version";
-
- public static string LoginSelectionPlanerLocation { get; set; }
- public static string ActualPlanerLocation { get; set; }
-
- ///
- /// Holt den Install Ort aus den Properties Settings.
- /// Sollte dieser nicht verfügbar sein, wird als default - "CurrentBaseDir"/BeWoPlaner - verwendet
- ///
- ///
- public static string GetInstallLocationFromSettingOrDefault()
- {
- var installLocation = GetInstallLocationFromSetting();
-
- if (string.IsNullOrWhiteSpace(installLocation))
- {
- installLocation = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, BeWoPathFileConfig.SubDirectory);
- }
-
- return installLocation;
- }
-
- public static string GetInstallLocationFromSetting()
- {
- return LauncherAppdataConfig.GetInstallLocation();
- }
-
- ///
- ///
- ///
- ///
- /// Gibt true aus, wenn der Path sich verändert hat.
- public static bool ChangePath(string newLocation)
- {
- var info = new DirectoryInfo(newLocation);
-
- if (LoginSelectionPlanerLocation == newLocation)
- {
- return false;
- }
-
- //if (newLocation.Exists() && (info.GetDirectories().Any() || info.GetFiles().Any()))
- //{
- // MessageBox.Show($"Ordner muss leer sein! Es sind {info.GetDirectories().Count()} Ordner und {info.GetFiles().Count()} Datei(en) enthalten");
- // return false;
- //}
-
- // Annahme: Ordner ist leer und neuer Ort
- LoginSelectionPlanerLocation = newLocation;
-
- return true;
- }
-
- public static void SetAndSaveInstallLocation(string path)
- {
- ActualPlanerLocation = path;
-
- LauncherAppdataConfig.SetInstallLocation(path);
- }
-
-
- public static string GetRootPath()
- {
- return ActualPlanerLocation;
- }
- public static string GetLoggerPath()
- {
- return Path.Combine(new string[] { GetRootPath(), "log" });
- }
- public static string GetDownloadPath()
- {
- return Path.Combine(new string[] { GetRootPath(), "download" });
- }
- public static string GetApplyPath()
- {
- return Path.Combine(new string[] { GetRootPath(), "apply" });
- }
- public static string GetPlanerExeName() => planerExeName;
- public static string GetPlanerExePath()
- {
- return Path.Combine(GetApplyPath(), GetPlanerExeName());
- }
-
- public static void SaveCurrentInfo(this string path, string file)
- {
- FileController.SaveInfo(path.Combine(file), DownloadController.Manager.UpdatePlanResponse.CurrentPackage);
- }
-
- public static void SaveFile(this string path, byte[] data)
- {
- FileController.SaveFile(path, data);
- }
-
- public static void CopyFileTo(this string source, string destination)
- {
- FileController.CopyFile(source, destination);
- }
-
- public static void DeleteFile(this string file)
- {
- FileController.DeleteFile(file);
- }
-
- public static void DeleteEmptyDirectories(this string dir)
- {
- FileController.DeleteEmptyDirectories(dir);
- }
- }
-}
\ No newline at end of file
diff --git a/BeWoLauncher/Logic/Utils/LauncherUtils.cs b/BeWoLauncher/Logic/Utils/LauncherUtils.cs
deleted file mode 100644
index 4b33d7fce..000000000
--- a/BeWoLauncher/Logic/Utils/LauncherUtils.cs
+++ /dev/null
@@ -1,81 +0,0 @@
-using BeWoLauncher.ServiceProxy;
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Reflection;
-using System.ServiceModel;
-using System.Text;
-using System.Text.RegularExpressions;
-using System.Threading.Tasks;
-using System.Windows;
-
-namespace BeWoLauncher.Logic.Utils
-{
- public static class LauncherUtils
- {
- public static Dictionary ParseQuery(string query)
- {
- try
- {
- if (query.IndexOf('?') >= 0)
- {
- query = query.Split('?')[1];
-
- var valueArray = Regex.Split(query, @"[\&]{0,1}[A-Za-z0-9]+[\=]{1}");
- var paramArray = Regex.Split(query, @"[\=][A-Za-z0-9;]+");
-
- valueArray = valueArray.Where(t => !string.IsNullOrWhiteSpace(t)).ToArray();
- paramArray = paramArray.Where(t => !string.IsNullOrWhiteSpace(t)).ToArray();
-
- var queryDictionary = new Dictionary();
-
- int ixg = 0;
- foreach (var item in paramArray)
- {
- queryDictionary.Add(item.Contains("&") ? Regex.Split(item, @"[\?]|[\&]")[1] : item,
- valueArray[ixg]);
- ixg++;
- if (ixg >= valueArray.Length)
- break;
- }
-
- return queryDictionary;
- }
- return new Dictionary();
- }
- catch (Exception ex)
- {
- throw new Exception(String.Format("Error while parsing query '{0}'\n{1}", query, ex.Message), ex);
- }
- }
- public static string GetAndCreateUserAppDataPath()
- {
- try
- {
- string localAppData = Environment.GetFolderPath(
- Environment.SpecialFolder.LocalApplicationData);
- string companyFilePath
- = Path.Combine(localAppData, "beyondSoft");
-
- if (!Directory.Exists(companyFilePath))
- Directory.CreateDirectory(companyFilePath);
-
- string bewoFilePath
- = Path.Combine(companyFilePath, "BeWoPlaner");
-
- if (!Directory.Exists(bewoFilePath))
- Directory.CreateDirectory(bewoFilePath);
-
- return bewoFilePath;
- }
- catch (Exception ex)
- {
- MessageBox.Show(
- "Fehler beim Anlegen des Anwendungsordners. Sie besitzen nicht die erforderlichen Rechte, bitte wenden Sie sich an Ihren Systemadministrator.\n" +
- ex.Message, "BeWoPlaner", MessageBoxButton.OK, MessageBoxImage.Exclamation);
- }
- return Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
- }
- }
-}
diff --git a/BeWoLauncher/Logic/ViewBuilder.cs b/BeWoLauncher/Logic/ViewBuilder.cs
deleted file mode 100644
index b9c41357a..000000000
--- a/BeWoLauncher/Logic/ViewBuilder.cs
+++ /dev/null
@@ -1,218 +0,0 @@
-using BeWoLauncher.Logic.Behavior;
-using BeWoLauncher.Logic.Controller;
-using BeWoLauncher.View;
-using BeWoLauncher.View.Frames;
-using BS.SharedLauncher.Enums;
-using System;
-using System.Threading.Tasks;
-using System.Windows.Controls;
-using static BeWoLauncher.Logic.Controller.ViewController;
-
-namespace BeWoLauncher.Logic
-{
- public class ViewBuilder
- {
- public ViewBuilder()
- {
-
- }
-
- public UserControl GetNewView(ViewType type)
- {
- switch (type)
- {
- case ViewType.LoginView:
- return getLoginView();
- }
-
- throw new NotImplementedException("ViewBuilder: View nicht implementiert");
- }
-
- public FrameBase GetNewFrame(FrameType type)
- {
- switch (type)
- {
- case FrameType.GenericFail:
- return getGenericFailedFrame();
- case FrameType.InstallInfo:
- return getInstallInfoFrame();
- case FrameType.InstallProgress:
- return getInstallProgressFrame();
- case FrameType.InstallFailed:
- return getInstallFailedFrame();
- case FrameType.UpdateInfo:
- return getUpdateInfoFrame();
- case FrameType.UpdateProgress:
- return getUpdateProgressFrame();
- case FrameType.UpdateFailed:
- return getUpdateFailedFrame();
- case FrameType.UninstallInfo:
- return getUninstallInfoFrame();
- case FrameType.UninstallProgress:
- return getUninstallProgressFrame();
- case FrameType.UninstallFailed:
- return getUninstallFailedFrame();
- case FrameType.UninstallSuccessful:
- return getUninstallSuccessfulFrame();
- case FrameType.LoadingScreen:
- return getLoadingScreenFrame();
- case FrameType.NoPermissionInfo:
- return getNoPermissionInfoFrame();
- }
-
- throw new NotImplementedException("ViewBuilder: Frame nicht implementiert");
- }
-
- private UserControl getLoginView()
- {
- var login = new LoginView();
-
- login.Loaded += CheckForAutoLogin;
- login.LoginSuccessful += ViewBehavior.LoginSuccessful;
-
- return login;
- }
-
- private FrameBase getNoPermissionInfoFrame()
- {
- var noper = new InfoFrame();
-
- noper.Title = "Keine Rechte auf Speicherort!";
- noper.Text = "Es liegt eine neue Version. Sie besitzen aber nicht die benötigten Rechte, um diese anzuwenden. Bitte wenden Sie sich an Ihren System-Administrator!";
-
- noper.Button1Click += ViewBehavior.BackToLogin;
-
- return noper;
- }
-
- private FrameBase getLoadingScreenFrame()
- {
- var loading = new LoadingScreen();
-
- loading.Loaded += (s,e)=> ViewController.LaunchBehavior.LaunchPlaner();
-
- return loading;
- }
-
- private FrameBase getUninstallSuccessfulFrame()
- {
- var uninstallSuccessful = new InfoFrame();
-
- uninstallSuccessful.Title = "Deinstallation erfolgreich!";
- uninstallSuccessful.Text = "Kehre zum Login zurück...";
- uninstallSuccessful.CollapseCopyButton();
-
- uninstallSuccessful.Button1Click += ViewBehavior.BackToLogin;
-
- return uninstallSuccessful;
- }
-
- private FrameBase getUninstallFailedFrame()
- {
- var uninstallFailed = new InfoFrame();
-
- uninstallFailed.Title = "Deinstallation fehlgeschlagen!";
- uninstallFailed.Text = Error.ToString();
-
- uninstallFailed.Button1Click += ViewBehavior.BackToLogin;
-
- return uninstallFailed;
- }
-
- private FrameBase getUninstallProgressFrame()
- {
- var progress = new ProgressFrame(LauncherMode.Update);
-
- progress.Successful += ViewBehavior.UninstallSuccess;
- progress.Exception += ViewBehavior.UninstallFailed;
-
- return progress;
- }
-
- private FrameBase getUninstallInfoFrame()
- {
- var uninstall = new UninstallInfoFrame();
-
- uninstall.Accept += ViewBehavior.UninstallStarting;
- uninstall.Abort += ViewBehavior.BackToLogin;
-
- return uninstall;
- }
-
- private FrameBase getUpdateFailedFrame()
- {
- var updateError = new InfoFrame();
-
- updateError.Title = "Update fehlgeschlagen!";
- updateError.Text = Error.ToString();
-
- updateError.Button1Click += ViewBehavior.BackToLogin;
-
- return updateError;
- }
-
- private FrameBase getUpdateProgressFrame()
- {
- var progress = new ProgressFrame(LauncherMode.Update);
-
- progress.Successful += ViewBehavior.UpdateSuccess;
- progress.Exception += ViewBehavior.UpdateFailed;
-
- return progress;
- }
-
- private FrameBase getUpdateInfoFrame()
- {
- var update = new UpdateInfoFrame();
-
- update.Accept += ViewBehavior.UpdateStarting;
- update.Abort += ViewBehavior.BackToLogin;
-
- return update;
- }
-
- private FrameBase getInstallFailedFrame()
- {
- var installError = new InfoFrame();
-
- installError.Title = "Installation fehlgeschlagen!";
- installError.Text = Error.ToString();
-
- installError.Button1Click += ViewBehavior.BackToLogin;
-
- return installError;
- }
-
- private FrameBase getGenericFailedFrame()
- {
- var genError = new InfoFrame();
-
- genError.Title = "Loader fehlgeschlagen!";
- genError.Text = Error.ToString();
-
- genError.Button1Click += ViewBehavior.BackToLogin;
-
- return genError;
- }
-
- private FrameBase getInstallProgressFrame()
- {
- var progress = new ProgressFrame(LauncherMode.Install);
-
- progress.Successful += ViewBehavior.InstallSuccesss;
- progress.Exception += ViewBehavior.InstallFailed;
-
- return progress;
- }
-
- private FrameBase getInstallInfoFrame()
- {
- var install = new InstallInfoFrame();
-
- install.Accept += ViewBehavior.InstallInfoAccept;
- install.Abort += ViewBehavior.BackToLogin;
-
- return install;
- }
- }
-}
diff --git a/BeWoLauncher/Models/ConnectionProfile.cs b/BeWoLauncher/Models/ConnectionProfile.cs
deleted file mode 100644
index 4fa6ee9c9..000000000
--- a/BeWoLauncher/Models/ConnectionProfile.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace BeWoLauncher.Models
-{
- public class ConnectionProfile
- {
- public string Name { get; set; }
- public string Server { get; set; }
- public string Tenant { get; set; }
-
- public ConnectionProfile(string pname, string pserver, string ptenant)
- {
- Name = pname;
- Server = pserver;
- Tenant = ptenant;
- if (Name == null)
- Name = String.Empty;
- }
-
- public override string ToString()
- {
- return Name;
- }
-
- // Mistery Bug:
- //public override int GetHashCode()
- //{
- // String key = String.Format("{0}_{1}_{2}", Name, Server, Tenant);
- // return key.GetHashCode();
- //}
-
- //public override bool Equals(object obj)
- //{
- // var profile = obj as ConnectionProfile;
- // if (profile == null)
- // {
- // return false;
- // }
- // String key1 = String.Format("{0}_{1}_{2}", Name, Server, Tenant);
- // String key2 = String.Format("{0}_{1}_{2}", profile.Name, profile.Server, profile.Tenant);
- // return key1.Equals(key2);
- //}
- }
-}
diff --git a/BeWoLauncher/Properties/AssemblyInfo.cs b/BeWoLauncher/Properties/AssemblyInfo.cs
deleted file mode 100644
index 305c95649..000000000
--- a/BeWoLauncher/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-using System.Reflection;
-using System.Resources;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-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("BeWoLauncher")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("beyondSoft GmbH")]
-[assembly: AssemblyProduct("BeWoPlaner")]
-[assembly: AssemblyCopyright("Copyright © 2013 beyondSoft GmbH")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly
-// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von
-// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen.
-[assembly: ComVisible(false)]
-
-//Um mit dem Erstellen lokalisierbarer Anwendungen zu beginnen, legen Sie
-//ImCodeVerwendeteKultur in der .csproj-Datei
-//in einer fest. Wenn Sie in den Quelldateien beispielsweise Deutsch
-//(Deutschland) verwenden, legen Sie auf \"de-DE\" fest. Heben Sie dann die Auskommentierung
-//des nachstehenden NeutralResourceLanguage-Attributs auf. Aktualisieren Sie "en-US" in der nachstehenden Zeile,
-//sodass es mit der UICulture-Einstellung in der Projektdatei übereinstimmt.
-
-//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
-
-
-[assembly: ThemeInfo(
- ResourceDictionaryLocation.None, //Speicherort der designspezifischen Ressourcenwörterbücher
- //(wird verwendet, wenn eine Ressource auf der Seite nicht gefunden wird,
- // oder in den Anwendungsressourcen-Wörterbüchern nicht gefunden werden kann.)
- ResourceDictionaryLocation.SourceAssembly //Speicherort des generischen Ressourcenwörterbuchs
- //(wird verwendet, wenn eine Ressource auf der Seite nicht gefunden wird,
- // designspezifischen Ressourcenwörterbuch nicht gefunden werden kann.)
-)]
-
-
-// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
-//
-// Hauptversion
-// Nebenversion
-// Buildnummer
-// Revision
-//
-// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
-// übernehmen, indem Sie "*" eingeben:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("2.0.0.0")]
-[assembly: AssemblyFileVersion("2.0.0.0")]
diff --git a/BeWoLauncher/Properties/Resources.Designer.cs b/BeWoLauncher/Properties/Resources.Designer.cs
deleted file mode 100644
index e934e4469..000000000
--- a/BeWoLauncher/Properties/Resources.Designer.cs
+++ /dev/null
@@ -1,71 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// Dieser Code wurde von einem Tool generiert.
-// Laufzeitversion: 4.0.30319.42000
-//
-// Änderungen an dieser Datei können fehlerhaftes Verhalten verursachen und gehen verloren, wenn
-// der Code neu generiert wird.
-//
-//------------------------------------------------------------------------------
-
-namespace BeWoLauncher.Properties
-{
-
-
- ///
- /// 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.
- // 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.
- [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
- {
-
- 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()
- {
- }
-
- ///
- /// 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("BeWoLauncher.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.
- ///
- [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/BeWoLauncher/Properties/Resources.resx b/BeWoLauncher/Properties/Resources.resx
deleted file mode 100644
index af7dbebba..000000000
--- a/BeWoLauncher/Properties/Resources.resx
+++ /dev/null
@@ -1,117 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
\ No newline at end of file
diff --git a/BeWoLauncher/Properties/Settings.Designer.cs b/BeWoLauncher/Properties/Settings.Designer.cs
deleted file mode 100644
index 3dbb00994..000000000
--- a/BeWoLauncher/Properties/Settings.Designer.cs
+++ /dev/null
@@ -1,50 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// Dieser Code wurde von einem Tool generiert.
-// Laufzeitversion:4.0.30319.42000
-//
-// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
-// der Code erneut generiert wird.
-//
-//------------------------------------------------------------------------------
-
-namespace BeWoLauncher.Properties {
-
-
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.9.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 {
- return defaultInstance;
- }
- }
-
- [global::System.Configuration.UserScopedSettingAttribute()]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Configuration.DefaultSettingValueAttribute("")]
- public string InstallLocation {
- get {
- return ((string)(this["InstallLocation"]));
- }
- set {
- this["InstallLocation"] = value;
- }
- }
-
- [global::System.Configuration.UserScopedSettingAttribute()]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Configuration.DefaultSettingValueAttribute("False")]
- public bool FirstInstallationSuccess {
- get {
- return ((bool)(this["FirstInstallationSuccess"]));
- }
- set {
- this["FirstInstallationSuccess"] = value;
- }
- }
- }
-}
diff --git a/BeWoLauncher/Properties/Settings.settings b/BeWoLauncher/Properties/Settings.settings
deleted file mode 100644
index f4fc75103..000000000
--- a/BeWoLauncher/Properties/Settings.settings
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
- False
-
-
-
\ No newline at end of file
diff --git a/BeWoLauncher/Properties/licenses.licx b/BeWoLauncher/Properties/licenses.licx
deleted file mode 100644
index e69de29bb..000000000
diff --git a/BeWoLauncher/ServiceProxy/LauncherGenerated.cs b/BeWoLauncher/ServiceProxy/LauncherGenerated.cs
deleted file mode 100644
index f096a7629..000000000
--- a/BeWoLauncher/ServiceProxy/LauncherGenerated.cs
+++ /dev/null
@@ -1,403 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// Dieser Code wurde von einem Tool generiert.
-// Laufzeitversion:4.0.30319.42000
-//
-// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
-// der Code erneut generiert wird.
-//
-//------------------------------------------------------------------------------
-
-namespace BeWoLauncher.ServiceProxy
-{
- using System.Runtime.Serialization;
-
-
- [System.Diagnostics.DebuggerStepThroughAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
- [System.Runtime.Serialization.DataContractAttribute(Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- public partial class BeWoFault : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged
- {
-
- private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
-
- private BeWoLauncher.ServiceProxy.BeWoFaultType FaultTypeField;
-
- private string InnerExceptionMessageField;
-
- private string InnerExceptionStackTraceField;
-
- private string MessageField;
-
- private string StackTraceField;
-
- public System.Runtime.Serialization.ExtensionDataObject ExtensionData
- {
- get
- {
- return this.extensionDataField;
- }
- set
- {
- this.extensionDataField = value;
- }
- }
-
- [System.Runtime.Serialization.DataMemberAttribute()]
- public BeWoLauncher.ServiceProxy.BeWoFaultType FaultType
- {
- get
- {
- return this.FaultTypeField;
- }
- set
- {
- if ((this.FaultTypeField.Equals(value) != true))
- {
- this.FaultTypeField = value;
- this.RaisePropertyChanged("FaultType");
- }
- }
- }
-
- [System.Runtime.Serialization.DataMemberAttribute()]
- public string InnerExceptionMessage
- {
- get
- {
- return this.InnerExceptionMessageField;
- }
- set
- {
- if ((object.ReferenceEquals(this.InnerExceptionMessageField, value) != true))
- {
- this.InnerExceptionMessageField = value;
- this.RaisePropertyChanged("InnerExceptionMessage");
- }
- }
- }
-
- [System.Runtime.Serialization.DataMemberAttribute()]
- public string InnerExceptionStackTrace
- {
- get
- {
- return this.InnerExceptionStackTraceField;
- }
- set
- {
- if ((object.ReferenceEquals(this.InnerExceptionStackTraceField, value) != true))
- {
- this.InnerExceptionStackTraceField = value;
- this.RaisePropertyChanged("InnerExceptionStackTrace");
- }
- }
- }
-
- [System.Runtime.Serialization.DataMemberAttribute()]
- public string Message
- {
- get
- {
- return this.MessageField;
- }
- set
- {
- if ((object.ReferenceEquals(this.MessageField, value) != true))
- {
- this.MessageField = value;
- this.RaisePropertyChanged("Message");
- }
- }
- }
-
- [System.Runtime.Serialization.DataMemberAttribute()]
- public string StackTrace
- {
- get
- {
- return this.StackTraceField;
- }
- set
- {
- if ((object.ReferenceEquals(this.StackTraceField, value) != true))
- {
- this.StackTraceField = value;
- this.RaisePropertyChanged("StackTrace");
- }
- }
- }
-
- public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
-
- protected void RaisePropertyChanged(string propertyName)
- {
- System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
- if ((propertyChanged != null))
- {
- propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
- }
- }
- }
-
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
- [System.Runtime.Serialization.DataContractAttribute(Name="BeWoFaultType", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- public enum BeWoFaultType : int
- {
-
- [System.Runtime.Serialization.EnumMemberAttribute()]
- Unknown = 0,
-
- [System.Runtime.Serialization.EnumMemberAttribute()]
- Concurrency = 1,
-
- [System.Runtime.Serialization.EnumMemberAttribute()]
- DeleteNotPossible = 2,
-
- [System.Runtime.Serialization.EnumMemberAttribute()]
- LoginNameTaken = 3,
-
- [System.Runtime.Serialization.EnumMemberAttribute()]
- CustomWithoutDetails = 4,
- }
-
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
- [System.ServiceModel.ServiceContractAttribute(ConfigurationName="BeWoLauncher.ServiceProxy.ILauncherService")]
- public interface ILauncherService
- {
-
- [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ILauncherService/IsUserValid", ReplyAction="http://tempuri.org/ILauncherService/IsUserValidResponse")]
- [System.ServiceModel.FaultContractAttribute(typeof(BeWoLauncher.ServiceProxy.BeWoFault), Action="http://tempuri.org/ILauncherService/IsUserValidBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- BS.SharedLauncher.Enums.UserValidationResult IsUserValid(string pUserName, string pPassword, string pPIN, string clientId, bool checkTenant);
-
- [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ILauncherService/ResetTenant", ReplyAction="http://tempuri.org/ILauncherService/ResetTenantResponse")]
- [System.ServiceModel.FaultContractAttribute(typeof(BeWoLauncher.ServiceProxy.BeWoFault), Action="http://tempuri.org/ILauncherService/ResetTenantBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- void ResetTenant(string tenant);
-
- [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ILauncherService/ResetAllTenant", ReplyAction="http://tempuri.org/ILauncherService/ResetAllTenantResponse")]
- [System.ServiceModel.FaultContractAttribute(typeof(BeWoLauncher.ServiceProxy.BeWoFault), Action="http://tempuri.org/ILauncherService/ResetAllTenantBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- void ResetAllTenant();
-
- [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ILauncherService/GetEmailForUserName", ReplyAction="http://tempuri.org/ILauncherService/GetEmailForUserNameResponse")]
- [System.ServiceModel.FaultContractAttribute(typeof(BeWoLauncher.ServiceProxy.BeWoFault), Action="http://tempuri.org/ILauncherService/GetEmailForUserNameBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- bool GetEmailForUserName(out string email, string pUserName, System.Uri serverName);
-
- [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ILauncherService/CheckPassword", ReplyAction="http://tempuri.org/ILauncherService/CheckPasswordResponse")]
- [System.ServiceModel.FaultContractAttribute(typeof(BeWoLauncher.ServiceProxy.BeWoFault), Action="http://tempuri.org/ILauncherService/CheckPasswordBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- BS.SharedLauncher.Enums.PasswordValidationResult CheckPassword(long userOid, string pOldPassword, string pNewPassword);
-
- [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ILauncherService/CheckPassword2", ReplyAction="http://tempuri.org/ILauncherService/CheckPassword2Response")]
- [System.ServiceModel.FaultContractAttribute(typeof(BeWoLauncher.ServiceProxy.BeWoFault), Action="http://tempuri.org/ILauncherService/CheckPassword2BeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- BS.SharedLauncher.Enums.PasswordValidationResult CheckPassword2(string username, string pOldPassword, string pNewPassword);
-
- [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ILauncherService/ChangePassword", ReplyAction="http://tempuri.org/ILauncherService/ChangePasswordResponse")]
- [System.ServiceModel.FaultContractAttribute(typeof(BeWoLauncher.ServiceProxy.BeWoFault), Action="http://tempuri.org/ILauncherService/ChangePasswordBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- long ChangePassword(string pUserName, string pOldPassword, string pNewPassword);
-
- [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ILauncherService/ResetPasswordInfo", ReplyAction="http://tempuri.org/ILauncherService/ResetPasswordInfoResponse")]
- [System.ServiceModel.FaultContractAttribute(typeof(BeWoLauncher.ServiceProxy.BeWoFault), Action="http://tempuri.org/ILauncherService/ResetPasswordInfoBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- void ResetPasswordInfo(string pUserName, string pPassword);
- }
-
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
- public interface ILauncherServiceChannel : BeWoLauncher.ServiceProxy.ILauncherService, System.ServiceModel.IClientChannel
- {
- }
-
- [System.Diagnostics.DebuggerStepThroughAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
- public partial class LauncherServiceClient : System.ServiceModel.ClientBase, BeWoLauncher.ServiceProxy.ILauncherService
- {
-
- public LauncherServiceClient()
- {
- }
-
- public LauncherServiceClient(string endpointConfigurationName) :
- base(endpointConfigurationName)
- {
- }
-
- public LauncherServiceClient(string endpointConfigurationName, string remoteAddress) :
- base(endpointConfigurationName, remoteAddress)
- {
- }
-
- public LauncherServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
- base(endpointConfigurationName, remoteAddress)
- {
- }
-
- public LauncherServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
- base(binding, remoteAddress)
- {
- }
-
- public BS.SharedLauncher.Enums.UserValidationResult IsUserValid(string pUserName, string pPassword, string pPIN, string clientId, bool checkTenant)
- {
- return base.Channel.IsUserValid(pUserName, pPassword, pPIN, clientId, checkTenant);
- }
-
- public void ResetTenant(string tenant)
- {
- base.Channel.ResetTenant(tenant);
- }
-
- public void ResetAllTenant()
- {
- base.Channel.ResetAllTenant();
- }
-
- public bool GetEmailForUserName(out string email, string pUserName, System.Uri serverName)
- {
- return base.Channel.GetEmailForUserName(out email, pUserName, serverName);
- }
-
- public BS.SharedLauncher.Enums.PasswordValidationResult CheckPassword(long userOid, string pOldPassword, string pNewPassword)
- {
- return base.Channel.CheckPassword(userOid, pOldPassword, pNewPassword);
- }
-
- public BS.SharedLauncher.Enums.PasswordValidationResult CheckPassword2(string username, string pOldPassword, string pNewPassword)
- {
- return base.Channel.CheckPassword2(username, pOldPassword, pNewPassword);
- }
-
- public long ChangePassword(string pUserName, string pOldPassword, string pNewPassword)
- {
- return base.Channel.ChangePassword(pUserName, pOldPassword, pNewPassword);
- }
-
- public void ResetPasswordInfo(string pUserName, string pPassword)
- {
- base.Channel.ResetPasswordInfo(pUserName, pPassword);
- }
- }
-
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
- [System.ServiceModel.ServiceContractAttribute(ConfigurationName="BeWoLauncher.ServiceProxy.IEnumTranslationService")]
- public interface IEnumTranslationService
- {
-
- [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEnumTranslationService/GetTranslation", ReplyAction="http://tempuri.org/IEnumTranslationService/GetTranslationResponse")]
- [System.ServiceModel.FaultContractAttribute(typeof(BeWoLauncher.ServiceProxy.BeWoFault), Action="http://tempuri.org/IEnumTranslationService/GetTranslationBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- string GetTranslation(string e, short value);
- }
-
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
- public interface IEnumTranslationServiceChannel : BeWoLauncher.ServiceProxy.IEnumTranslationService, System.ServiceModel.IClientChannel
- {
- }
-
- [System.Diagnostics.DebuggerStepThroughAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
- public partial class EnumTranslationServiceClient : System.ServiceModel.ClientBase, BeWoLauncher.ServiceProxy.IEnumTranslationService
- {
-
- public EnumTranslationServiceClient()
- {
- }
-
- public EnumTranslationServiceClient(string endpointConfigurationName) :
- base(endpointConfigurationName)
- {
- }
-
- public EnumTranslationServiceClient(string endpointConfigurationName, string remoteAddress) :
- base(endpointConfigurationName, remoteAddress)
- {
- }
-
- public EnumTranslationServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
- base(endpointConfigurationName, remoteAddress)
- {
- }
-
- public EnumTranslationServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
- base(binding, remoteAddress)
- {
- }
-
- public string GetTranslation(string e, short value)
- {
- return base.Channel.GetTranslation(e, value);
- }
- }
-
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
- [System.ServiceModel.ServiceContractAttribute(ConfigurationName="BeWoLauncher.ServiceProxy.IDownloadBeWoService")]
- public interface IDownloadBeWoService
- {
-
- [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IDownloadBeWoService/Download2", ReplyAction="http://tempuri.org/IDownloadBeWoService/Download2Response")]
- [System.ServiceModel.FaultContractAttribute(typeof(BeWoLauncher.ServiceProxy.BeWoFault), Action="http://tempuri.org/IDownloadBeWoService/Download2BeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- BS.SharedLauncher.DataContract.UpdateFileResponse Download2(BS.SharedLauncher.DataContract.UpdateRequest request);
-
- [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IDownloadBeWoService/DownloadInfo", ReplyAction="http://tempuri.org/IDownloadBeWoService/DownloadInfoResponse")]
- [System.ServiceModel.FaultContractAttribute(typeof(BeWoLauncher.ServiceProxy.BeWoFault), Action="http://tempuri.org/IDownloadBeWoService/DownloadInfoBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- BS.SharedLauncher.DataContract.UpdateResponse DownloadInfo(BS.SharedLauncher.DataContract.UpdateRequest request);
-
- [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IDownloadBeWoService/GetUpdatePlan", ReplyAction="http://tempuri.org/IDownloadBeWoService/GetUpdatePlanResponse")]
- [System.ServiceModel.FaultContractAttribute(typeof(BeWoLauncher.ServiceProxy.BeWoFault), Action="http://tempuri.org/IDownloadBeWoService/GetUpdatePlanBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- BS.SharedLauncher.DataContract.UpdateResponse GetUpdatePlan(BS.SharedLauncher.DataContract.UpdateRequest request);
-
- [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IDownloadBeWoService/GetUpdateFile", ReplyAction="http://tempuri.org/IDownloadBeWoService/GetUpdateFileResponse")]
- [System.ServiceModel.FaultContractAttribute(typeof(BeWoLauncher.ServiceProxy.BeWoFault), Action="http://tempuri.org/IDownloadBeWoService/GetUpdateFileBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- BS.SharedLauncher.DataContract.UpdateFileResponse GetUpdateFile(BS.SharedLauncher.DataContract.UpdateFileRequest request);
- }
-
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
- public interface IDownloadBeWoServiceChannel : BeWoLauncher.ServiceProxy.IDownloadBeWoService, System.ServiceModel.IClientChannel
- {
- }
-
- [System.Diagnostics.DebuggerStepThroughAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
- public partial class DownloadBeWoServiceClient : System.ServiceModel.ClientBase, BeWoLauncher.ServiceProxy.IDownloadBeWoService
- {
-
- public DownloadBeWoServiceClient()
- {
- }
-
- public DownloadBeWoServiceClient(string endpointConfigurationName) :
- base(endpointConfigurationName)
- {
- }
-
- public DownloadBeWoServiceClient(string endpointConfigurationName, string remoteAddress) :
- base(endpointConfigurationName, remoteAddress)
- {
- }
-
- public DownloadBeWoServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
- base(endpointConfigurationName, remoteAddress)
- {
- }
-
- public DownloadBeWoServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
- base(binding, remoteAddress)
- {
- }
-
- public BS.SharedLauncher.DataContract.UpdateFileResponse Download2(BS.SharedLauncher.DataContract.UpdateRequest request)
- {
- return base.Channel.Download2(request);
- }
-
- public BS.SharedLauncher.DataContract.UpdateResponse DownloadInfo(BS.SharedLauncher.DataContract.UpdateRequest request)
- {
- return base.Channel.DownloadInfo(request);
- }
-
- public BS.SharedLauncher.DataContract.UpdateResponse GetUpdatePlan(BS.SharedLauncher.DataContract.UpdateRequest request)
- {
- return base.Channel.GetUpdatePlan(request);
- }
-
- public BS.SharedLauncher.DataContract.UpdateFileResponse GetUpdateFile(BS.SharedLauncher.DataContract.UpdateFileRequest request)
- {
- return base.Channel.GetUpdateFile(request);
- }
- }
-}
diff --git a/BeWoLauncher/Styles/OrangeBlack.xaml b/BeWoLauncher/Styles/OrangeBlack.xaml
deleted file mode 100644
index 5bbf9aa49..000000000
--- a/BeWoLauncher/Styles/OrangeBlack.xaml
+++ /dev/null
@@ -1,4088 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- M 0 0 L 3.5 4 L 7 0 Z
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/BeWoLauncher/SvcUtil.exe b/BeWoLauncher/SvcUtil.exe
deleted file mode 100644
index c81ea03b1..000000000
Binary files a/BeWoLauncher/SvcUtil.exe and /dev/null differ
diff --git a/BeWoLauncher/View/Components/ConfirmDemoDialog.xaml b/BeWoLauncher/View/Components/ConfirmDemoDialog.xaml
deleted file mode 100644
index 4db57510c..000000000
--- a/BeWoLauncher/View/Components/ConfirmDemoDialog.xaml
+++ /dev/null
@@ -1,43 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- WICHTIG! Bitte tragen Sie keine echten Daten bei Ihren Tests ein, da es sich um einen öffentlichen Testzugang handelt, auf den jeder Zugriff hat!
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/BeWoLauncher/View/Components/ConfirmDemoDialog.xaml.cs b/BeWoLauncher/View/Components/ConfirmDemoDialog.xaml.cs
deleted file mode 100644
index b4799bd0e..000000000
--- a/BeWoLauncher/View/Components/ConfirmDemoDialog.xaml.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-using System;
-using System.Windows;
-using System.Windows.Threading;
-
-namespace BeWoLauncher.Components
-{
- ///
- /// Interaktionslogik für ConfirmDemoDialog.xaml
- ///
- public partial class ConfirmDemoDialog : Window
- {
- public ConfirmDemoDialog()
- {
- InitializeComponent();
- CountButton.Content = "Bitte warten (10 sek.)";
- CountButton.IsEnabled = false;
-
- this.Loaded += new RoutedEventHandler(ConfirmDemoDialog_Loaded);
-
- }
-
- void ConfirmDemoDialog_Loaded(object sender, RoutedEventArgs e)
- {
-
- int count = 9;
-
- new DispatcherTimer(
- TimeSpan.FromMilliseconds(1000),
- DispatcherPriority.Background,
- (s1, e1) =>
- {
- CountButton.Content = String.Format("Bitte warten ({0} sek.)", count);
-
- if (count-- == 0)
- {
- CountButton.Content = "OK";
- CountButton.IsEnabled = true;
- ((DispatcherTimer) s1).Stop();
- }
- },
- this.Dispatcher).Start();
- }
-
-
- private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
- {
- //DialogResult = true;
- Close();
- }
- }
-}
diff --git a/BeWoLauncher/View/Components/EnterTenantDialog.xaml b/BeWoLauncher/View/Components/EnterTenantDialog.xaml
deleted file mode 100644
index e85c35812..000000000
--- a/BeWoLauncher/View/Components/EnterTenantDialog.xaml
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Bitte geben Sie Ihre 10-stellige Kundennummer ein:
-
-
-
- Demo Zugang nutzen
-
-
-
-
-
-
-
-
diff --git a/BeWoLauncher/View/Components/EnterTenantDialog.xaml.cs b/BeWoLauncher/View/Components/EnterTenantDialog.xaml.cs
deleted file mode 100644
index 1e01692b1..000000000
--- a/BeWoLauncher/View/Components/EnterTenantDialog.xaml.cs
+++ /dev/null
@@ -1,58 +0,0 @@
-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.Shapes;
-
-namespace BeWoLauncher.Components
-{
- ///
- /// Interaktionslogik für EnterTenantDialog.xaml
- ///
- public partial class EnterTenantDialog : Window
- {
- public EnterTenantDialog()
- {
- InitializeComponent();
- }
-
- private String oldTenant = String.Empty;
-
- public String Tenant
- {
- get { return txtTenant.Text; }
- set
- {
- txtTenant.Text = value;
- txtTenant.Focus();
- txtTenant.SelectAll();
- }
- }
-
- private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
- {
- DialogResult = true;
- }
-
- private void ToggleButton_OnChecked(object sender, RoutedEventArgs e)
- {
- oldTenant = txtTenant.Text;
- txtTenant.Text = "demo";
- txtTenant.IsEnabled = false;
- }
-
- private void ToggleButton_OnUnchecked(object sender, RoutedEventArgs e)
- {
- txtTenant.Text = oldTenant;
- txtTenant.IsEnabled = true;
- }
- }
-}
diff --git a/BeWoLauncher/View/Components/ExceptionMessageBox.xaml b/BeWoLauncher/View/Components/ExceptionMessageBox.xaml
deleted file mode 100644
index 9603a27e2..000000000
--- a/BeWoLauncher/View/Components/ExceptionMessageBox.xaml
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/BeWoLauncher/View/Components/ExceptionMessageBox.xaml.cs b/BeWoLauncher/View/Components/ExceptionMessageBox.xaml.cs
deleted file mode 100644
index 4aba2dbb1..000000000
--- a/BeWoLauncher/View/Components/ExceptionMessageBox.xaml.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-using BeWoLauncher.Logic;
-using BeWoLauncher.Logic.Controller;
-using System;
-using System.Windows;
-using System.Windows.Controls;
-
-namespace BeWoLauncher.Components
-{
- public partial class ExceptionMessageBox : UserControl
- {
- public ExceptionMessageBox(string message, Exception ex, bool showDetails) : this(message, ex?.ToString(), showDetails) { }
-
- public ExceptionMessageBox(string message, string submessage, bool showDetails)
- {
- InitializeComponent();
-
- if (!String.IsNullOrEmpty(message) && !showDetails)
- tb_message.Text = message;
- else
- {
- tb_message.Text =
- "Es ist leider ein unbekannter Fehler aufgetreten. Prüfen Sie Ihre Internetverbindung oder versuchen Sie es später erneut. Wir sind stets bemüht das Programm zu verbessern, daher freuen wir uns auch, wenn Sie die Fehlerdetails unten in einer Mail an support@bewoplaner.de senden.";
- }
-
- if (!showDetails)
- {
- lblError.Visibility = Visibility.Collapsed;
- contentError.Visibility = Visibility.Collapsed;
- }
- else
- {
- tb_stack.Text = String.Empty;
- if (!String.IsNullOrEmpty(message))
- {
- tb_stack.Text = message + System.Environment.NewLine + System.Environment.NewLine + tb_stack.Text;
- }
- tb_stack.Text += submessage ?? string.Empty;
- lblError.Visibility = Visibility.Visible;
- contentError.Visibility = Visibility.Visible;
- }
- }
-
- private void Button_Click(object sender, RoutedEventArgs e)
- {
- if(ViewController.CurrentWindow != null)
- {
- ViewController.CurrentWindow.CloseCurrentPopUp();
- }
- }
- }
-}
\ No newline at end of file
diff --git a/BeWoLauncher/View/Components/MessageDialog.xaml b/BeWoLauncher/View/Components/MessageDialog.xaml
deleted file mode 100644
index e0f4040f1..000000000
--- a/BeWoLauncher/View/Components/MessageDialog.xaml
+++ /dev/null
@@ -1,79 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/BeWoLauncher/View/Components/MessageDialog.xaml.cs b/BeWoLauncher/View/Components/MessageDialog.xaml.cs
deleted file mode 100644
index 2fcce003c..000000000
--- a/BeWoLauncher/View/Components/MessageDialog.xaml.cs
+++ /dev/null
@@ -1,122 +0,0 @@
-using BeWoLauncher.ServiceProxy;
-using BS.SharedLauncher;
-using BS.SharedLauncher.Enums;
-using BS.SharedLauncher.Information;
-using System;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Threading;
-using System.Xaml;
-using XamlReader = System.Windows.Markup.XamlReader;
-
-namespace BeWoLauncher.Components
-{
- public partial class MessageDialog
- {
- public MessageDialog()
- {
- InitializeComponent();
- DataContext = this;
-
- OkayButton.Visibility = Visibility.Collapsed;
- }
-
- public MessageDialog(Action pAfterPasswordConfirmationCallBack)
- {
- IsInConfirmationWithPasswordMode = true;
-
- AfterPasswordConfirmationCallBack = pAfterPasswordConfirmationCallBack;
-
- InitializeComponent();
- DataContext = this;
-
- OkayButton.IsDefault = true;
- CountButton.IsDefault = false;
- }
-
- public Action AfterPasswordConfirmationCallBack { get; set; }
-
- public bool IsInConfirmationWithPasswordMode { get; set; }
-
- private ICommand _OpenBrowserCommand;
- public ICommand OpenBrowserCommand => _OpenBrowserCommand ?? (_OpenBrowserCommand = new OpenBrowserCommandImpl());
-
- public class OpenBrowserCommandImpl : ICommand
- {
- public bool CanExecute(object parameter)
- {
- return true;
- }
-
- public event EventHandler CanExecuteChanged;
-
- public void Execute(object parameter)
- {
- if (parameter != null)
- {
- System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo(parameter.ToString()));
- }
- }
- }
-
- public void SetXaml(string xamlCode)
- {
- try
- {
- if(XamlReader.Parse(xamlCode) is UIElement element)
- {
- txtMessage.Visibility = Visibility.Collapsed;
- rootGrid.Children.Add(element);
- }
- }
- catch(Exception e)
- {
- //ignore
- }
- }
-
- public string Message
- {
- get => txtMessage.Text;
- set => txtMessage.Text = value;
- }
-
- private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
- {
- //DialogResult = true;
- Close();
- }
- private void OpenBrowserCommand_Executed(object sender, ExecutedRoutedEventArgs e)
- {
- if (e.OriginalSource is Hyperlink)
- {
- System.Diagnostics.Process.Start(
- new System.Diagnostics.ProcessStartInfo((e.OriginalSource as Hyperlink).NavigateUri.ToString()));
- }
- }
-
- private void OpenBrowserCommand_CanExecute(object sender, CanExecuteRoutedEventArgs e)
- {
- e.CanExecute = true;
- e.Handled = true;
- }
-
- private void OkayButton_OnClick(object sender, RoutedEventArgs e)
- {
- LauncherServiceFacade.DoLauncherServiceAsync(u => u.IsUserValid(SessionInformation.Login.Username, PasswordBox.Password, null, null, false), result =>
- {
- if(result == UserValidationResult.UserValid)
- {
- AfterPasswordConfirmationCallBack?.Invoke();
- Dispatcher.BeginInvoke(DispatcherPriority.Normal, (Action)Close);
- }
- else
- {
- MessageBox.Show("Anmeldeinformationen nicht bekannt. Bitte überprüfen Sie den Benutzernamen und das Passwort!", "Fehler bei der Anmeldung", MessageBoxButton.OK, MessageBoxImage.Exclamation);
- }
- }, true);
- }
- }
-}
diff --git a/BeWoLauncher/View/Components/PasswortAenderungsView.xaml b/BeWoLauncher/View/Components/PasswortAenderungsView.xaml
deleted file mode 100644
index aead48f68..000000000
--- a/BeWoLauncher/View/Components/PasswortAenderungsView.xaml
+++ /dev/null
@@ -1,45 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/BeWoLauncher/View/Components/PasswortAenderungsView.xaml.cs b/BeWoLauncher/View/Components/PasswortAenderungsView.xaml.cs
deleted file mode 100644
index f158e3b5e..000000000
--- a/BeWoLauncher/View/Components/PasswortAenderungsView.xaml.cs
+++ /dev/null
@@ -1,120 +0,0 @@
-using BeWoLauncher.ServiceProxy;
-using BeWoLauncher.WindowImp;
-using BS.SharedLauncher;
-using BS.SharedLauncher.Enums;
-using BS.SharedLauncher.Information;
-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;
-using System.Windows.Threading;
-
-namespace BeWoLauncher.Components
-{
- ///
- /// Interaktionslogik für UserControl1.xaml
- ///
- public partial class PasswortAenderungsView : UserControl
- {
- public PopUpWindow PopUp { get; set; }
-
- public PasswortAenderungsView(PopUpWindow pop)
- {
- InitializeComponent();
-
- PopUp = pop;
- }
-
- private void RootGroupBox_OnMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
- {
- try
- {
- PopUp.DragMove();
- }
- catch (Exception) { }
- }
-
- private void AendernClick(object sender, RoutedEventArgs e)
- {
- textblock_editFailures.Foreground = new SolidColorBrush(Colors.Red);
- //if (ViewModel.CheckOldPassword(AltesPwBox.Password))
- //{
- // textblock_editFailures.Text = "Das alte Passwort ist nicht korrekt!";
- // MessageBox.Show("Das alte Passwort ist nicht korrekt!", "Ändern des Passworts fehlgeschlagen", MessageBoxButton.OK, MessageBoxImage.Information);
- // return;
- //}
- if (string.IsNullOrEmpty(NeuesPwBox.Password))
- {
- textblock_editFailures.Text = "Bitte geben Sie ein neues Passwort ein!";
- MessageBox.Show("Bitte geben Sie ein neues Passwort ein!", "Ändern des Passworts fehlgeschlagen", MessageBoxButton.OK, MessageBoxImage.Information);
- return;
- }
-
- if (NeuesPwBox.Password != NeuesPwBox2.Password)
- {
- textblock_editFailures.Text = "Die Passwörter stimmen nicht überein!";
- MessageBox.Show("Die Passwörter stimmen nicht überein!", "Ändern des Passworts fehlgeschlagen", MessageBoxButton.OK, MessageBoxImage.Information);
- return;
- }
-
- var lOld = AltesPwBox.Password;
- var lNew = NeuesPwBox.Password;
-
- LauncherServiceFacade.DoLauncherServiceAsync(x => x.CheckPassword2(SessionInformation.Login.Username, lOld, lNew),
- result => CheckPasswordResult(result, lOld, lNew), true);
- }
-
- private void CheckPasswordResult(PasswordValidationResult result, String oldPassword, String newPassword)
- {
- if (result == PasswordValidationResult.Succesful)
- {
- LauncherServiceFacade.DoLauncherServiceSync(x => x.ChangePassword(SessionInformation.Login.Username, oldPassword, newPassword));
-
- SessionInformation.Login.Password = newPassword;
-
- Dispatcher.BeginInvoke(DispatcherPriority.Normal, (Action)PopUp.Close);
- }
- else
- {
- var trans = LauncherServiceFacade.DoEnumTranslationServiceSync(x => x.GetTranslation(nameof(PasswordValidationResult), (short)result));
-
- LauncherApp.ShowError("Ändern des Passworts fehlgeschlagen", trans, true);
- }
- }
-
- private void AltesPWgeaendert(object sender, RoutedEventArgs e)
- {
- //textblock_editFailures.Text = string.Empty;
- }
-
- //PasswortSicherheit pwS = new PasswortSicherheit();
-
- private void NeuesPwBox_OnPasswordChanged(object sender, RoutedEventArgs e)
- {
- //passwortprüfer = pwS.ErmittleUndZeigePasswortStaerke(NeuesPwBox.Password, passwortprüfer);
-
-
- //var fehlermeldung = string.Empty;
-
- //textblock_editFailures.Foreground = new SolidColorBrush(Color.FromRgb(255, 72, 0));
-
- //if (!(NeuesPwBox.Password.Any(x => sonderzeichen.Contains(x)) && NeuesPwBox.Password.Any(x => zahlen.Contains(x)) && NeuesPwBox.Password.Any(x => grossBuchstaben.Contains(x)) && NeuesPwBox.Password.Any(x => kleinBuchstaben.Contains(x))))
- // fehlermeldung = "Das Passwort sollte Sonderzeichen, Zahlen, Groß- und Kleinbuchstaben enthalten";
-
- //if (NeuesPwBox.Password.Length < 8)
- // fehlermeldung = "Das Passwort sollte mindestens 8 Zeichen lang sein";
-
- //textblock_editFailures.Text = fehlermeldung;
- }
- }
-}
diff --git a/BeWoLauncher/View/Components/ProfileEditView.xaml b/BeWoLauncher/View/Components/ProfileEditView.xaml
deleted file mode 100644
index c56fd52f5..000000000
--- a/BeWoLauncher/View/Components/ProfileEditView.xaml
+++ /dev/null
@@ -1,76 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/BeWoLauncher/View/Components/ProfileEditView.xaml.cs b/BeWoLauncher/View/Components/ProfileEditView.xaml.cs
deleted file mode 100644
index 000673f76..000000000
--- a/BeWoLauncher/View/Components/ProfileEditView.xaml.cs
+++ /dev/null
@@ -1,68 +0,0 @@
-using BeWoLauncher.Logic;
-using BeWoLauncher.Models;
-using BS.SharedLauncher;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Media;
-
-namespace BeWoLauncher.Components
-{
- ///
- /// Interaktionslogik für ProfileEditView.xaml
- ///
- public partial class ProfileEditView : UserControl
- {
- private ObservableCollection _Profiles;
-
- public ObservableCollection Profiles
- {
- get { return _Profiles; }
- set
- {
- _Profiles = value;
- profileControl.ItemsSource = value;
- }
- }
-
- public ProfileEditView()
- {
- InitializeComponent();
- Profiles = new ObservableCollection();
- }
-
- private void ProfileAddClick(object sender, RoutedEventArgs e)
- {
- var bp = new ConnectionProfile("", string.Empty, string.Empty);
-
- if (Profiles.Contains(bp))
- return;
-
- Profiles.Add(bp);
- }
-
- private void ProfileDeleteClick(object sender, RoutedEventArgs e)
- {
- if (Profiles.Count == 1)
- {
- MessageBox.Show("Es muss mindestens ein Profil vorhanden sein.\nLöschen nicht möglich",
- "Löschen nicht möglich", MessageBoxButton.OK, MessageBoxImage.Warning);
- return;
- }
- if(profileControl.SelectedItem is null)
- {
- MessageBox.Show("Wählen Sie ein Profil aus",
- "Löschen nicht möglich", MessageBoxButton.OK);
- return;
- }
-
- Profiles.Remove(profileControl.SelectedItem as ConnectionProfile);
- }
-
- private void ProfileControl_CellEditEnding(object sender, DataGridCellEditEndingEventArgs e)
- {
-
- }
- }
-}
diff --git a/BeWoLauncher/View/Components/ProxyLoginView.xaml b/BeWoLauncher/View/Components/ProxyLoginView.xaml
deleted file mode 100644
index 766ca6191..000000000
--- a/BeWoLauncher/View/Components/ProxyLoginView.xaml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/BeWoLauncher/View/Components/ProxyLoginView.xaml.cs b/BeWoLauncher/View/Components/ProxyLoginView.xaml.cs
deleted file mode 100644
index c9edce243..000000000
--- a/BeWoLauncher/View/Components/ProxyLoginView.xaml.cs
+++ /dev/null
@@ -1,120 +0,0 @@
-using BeWoLauncher.Logic.Utils;
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Reflection;
-using System.Security.Cryptography;
-using System.Text;
-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.Shapes;
-
-namespace BeWoLauncher.Components
-{
- ///
- /// Interaktionslogik für ProxyLoginView.xaml
- ///
- internal partial class ProxyLoginView : Window
- {
- public ProxyLoginView()
- {
- InitializeComponent();
-
-
- überprüfe();
- }
-
-
- private void überprüfe() {
-
- if (proxynametxt.Text.Equals("") && proxybenutzer.Text.Equals("") && proxypasswort.Password.Equals("")) {
-
- int counter = 0;
- string line;
-
- string[] datai= new string[3];
-
- try
- {
- var filePath = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\proxy.dat";
- if (!File.Exists(filePath))
- {
- filePath = System.IO.Path.Combine(LauncherUtils.GetAndCreateUserAppDataPath(), "proxy.dat");
- }
-
- var file = new System.IO.StreamReader(filePath);
- while ((line = file.ReadLine()) != null)
- {
-
- byte[] decbuff = Convert.FromBase64String(line);
- var x= System.Text.Encoding.UTF8.GetString(decbuff);
- datai[counter] = x;
-
- counter++;
- }
-
- file.Close();
-
- proxynametxt.Text = datai[0];
- proxybenutzer.Text = datai[1];
- proxypasswort.Password = datai[2];
- }catch(IOException){
- //Fehlermeldung
- }
- }
-
- }
-
- private void proxyOK_Click(object sender, RoutedEventArgs e)
- {
- string ptname = proxynametxt.Text;
- string ptbenutzer = proxybenutzer.Text;
- string ptpasswd = proxypasswort.Password;
-
- string[] lines = { ptname, ptbenutzer, ptpasswd };
-
- try
- {
- var filePath = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\proxy.dat";
- if (!File.Exists(filePath))
- {
- filePath = System.IO.Path.Combine(LauncherUtils.GetAndCreateUserAppDataPath(), "proxy.dat");
- }
-
- using (System.IO.StreamWriter file =
- new System.IO.StreamWriter(filePath))
- {
- foreach (string line in lines)
- {
- byte[] encData_byte = new byte[line.Length];
- encData_byte = System.Text.Encoding.UTF8.GetBytes(line);
- string encodedData = Convert.ToBase64String(encData_byte);
-
- file.WriteLine(encodedData);
- }
- }
-
- ptname = "";
- ptbenutzer = "";
- ptpasswd = "";
-
- this.Close();
-
- }catch(IOException){
- //Fehlermeldung
- }
- }
-
-
- private void proxyAbbr_Click(object sender, RoutedEventArgs e)
- {
- this.Close();
- }
- }
-}
diff --git a/BeWoLauncher/View/Components/PwVergessenView.xaml b/BeWoLauncher/View/Components/PwVergessenView.xaml
deleted file mode 100644
index 8dfa7efd2..000000000
--- a/BeWoLauncher/View/Components/PwVergessenView.xaml
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/BeWoLauncher/View/Components/PwVergessenView.xaml.cs b/BeWoLauncher/View/Components/PwVergessenView.xaml.cs
deleted file mode 100644
index 98382b38a..000000000
--- a/BeWoLauncher/View/Components/PwVergessenView.xaml.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-using System;
-using System.Windows;
-using System.Windows.Input;
-
-namespace BeWoLauncher.Components
-{
- internal partial class PwVergessenView
- {
- private string email = "";
- public PwVergessenView()
- {
- InitializeComponent();
- CommandBindings.Add(new CommandBinding(ApplicationCommands.Close, (s, e) => Close()));
- }
-
- private void RootGroupBox_OnMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
- {
- try
- {
- DragMove();
- }
- catch (Exception) { }
- }
-
- private void AnfordernClick(object sender, RoutedEventArgs e)
- {
- var benutzername = BenutzernamenTextBox.Text;
- if (benutzername.Equals(""))
- {
- MessageBox.Show("Bitte geben Sie einen Benutzernamen an", "Passwort anfordern fehlgeschlagen", MessageBoxButton.OK, MessageBoxImage.Information);
- return;
- }
-
- //ServiceFacade.DoUserServiceAsync(s => s.GetEmailForUserName(out email, benutzername, ConnectionInformation.CoreServerAddressOrigin), CallBack, true);
- }
-
- private void CallBack(bool hatEmail)
- {
- if(email.Equals("") || !hatEmail)
- {
- MessageBox.Show("Es konnte kein Benutzer mit diesem Namen gefunden werden oder der Benutzer hat keine E-Mail Adresse hinterlegt\nBitte wenden Sie sich an Ihren Systemadministrator", "Passwort anfordern fehlgeschlagen", MessageBoxButton.OK, MessageBoxImage.Information);
- return;
- }
-
- MessageBox.Show("Es wurde eine E-Mail an " + email + " gesendet");
- this.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Normal, (Action)Close);
- }
- }
-}
diff --git a/BeWoLauncher/View/Components/WaitLayer2.xaml b/BeWoLauncher/View/Components/WaitLayer2.xaml
deleted file mode 100644
index d98548752..000000000
--- a/BeWoLauncher/View/Components/WaitLayer2.xaml
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/BeWoLauncher/View/Components/WaitLayer2.xaml.cs b/BeWoLauncher/View/Components/WaitLayer2.xaml.cs
deleted file mode 100644
index e59a80721..000000000
--- a/BeWoLauncher/View/Components/WaitLayer2.xaml.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using System.Windows;
-using System.Windows.Controls;
-
-namespace BeWoLauncher.Components
-{
- ///
- /// Interaction logic for WaitLayer.xaml
- ///
- internal partial class WaitLayer2 : UserControl
- {
- public WaitLayer2()
- {
- this.InitializeComponent();
- }
- }
-}
\ No newline at end of file
diff --git a/BeWoLauncher/View/FrameView.xaml b/BeWoLauncher/View/FrameView.xaml
deleted file mode 100644
index 98c31b4a3..000000000
--- a/BeWoLauncher/View/FrameView.xaml
+++ /dev/null
@@ -1,79 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- www.beyondsoft.de
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/BeWoLauncher/View/FrameView.xaml.cs b/BeWoLauncher/View/FrameView.xaml.cs
deleted file mode 100644
index 898b7ce1f..000000000
--- a/BeWoLauncher/View/FrameView.xaml.cs
+++ /dev/null
@@ -1,66 +0,0 @@
-using BeWoLauncher.Logic;
-using BeWoLauncher.Logic.Controller;
-using BeWoLauncher.View.Frames;
-using BeWoLauncher.WindowImp;
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-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 BeWoLauncher.View
-{
- ///
- /// Interaktionslogik für BeWoLoginBorder.xaml
- ///
- public partial class FrameView : UserControl
- {
- public FrameView()
- {
- InitializeComponent();
-
- DateTime dt = new DateTime(2017, 1, 1);
- if (DateTime.Now > dt)
- dt = DateTime.Now;
-
- txtCopyright.Text = String.Format("Copyright {0:yyyy} | beyondSoft GmbH", dt);
-
- lblVersion.Content = LauncherApp.Version;
- }
-
- public FrameView(FrameBase frame) : this()
- {
- SetFrame(frame);
- }
-
- private void Hyperlink_OnRequestNavigate(object sender, RequestNavigateEventArgs e)
- {
- System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo((sender as Hyperlink).NavigateUri.ToString()));
- }
- public FrameBase GetFrame()
- {
- return contentGrid.Children?[0] as FrameBase;
- }
-
- public void SetFrame(FrameBase uc)
- {
- ClearFrame();
- contentGrid.Children.Add(uc);
- }
-
- public void ClearFrame()
- {
- contentGrid.Children.Clear();
- }
- }
-}
diff --git a/BeWoLauncher/View/Frames/FrameBase.cs b/BeWoLauncher/View/Frames/FrameBase.cs
deleted file mode 100644
index 6b889a5b1..000000000
--- a/BeWoLauncher/View/Frames/FrameBase.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Controls;
-
-namespace BeWoLauncher.View.Frames
-{
- public class FrameBase : UserControl
- {
- }
-}
diff --git a/BeWoLauncher/View/Frames/InfoFrame.xaml b/BeWoLauncher/View/Frames/InfoFrame.xaml
deleted file mode 100644
index 8d07f6b16..000000000
--- a/BeWoLauncher/View/Frames/InfoFrame.xaml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-
-
-
-
- Hier könnte ihre Fehlermeldung stehen!
-
-
-
-
diff --git a/BeWoLauncher/View/Frames/InfoFrame.xaml.cs b/BeWoLauncher/View/Frames/InfoFrame.xaml.cs
deleted file mode 100644
index 37ddb3978..000000000
--- a/BeWoLauncher/View/Frames/InfoFrame.xaml.cs
+++ /dev/null
@@ -1,54 +0,0 @@
-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 BeWoLauncher.View.Frames
-{
- ///
- /// Interaktionslogik für ErrorScreen.xaml
- ///
- public partial class InfoFrame : FrameBase
- {
- public event EventHandler Button1Click;
-
- public InfoFrame()
- {
- InitializeComponent();
- }
-
- public string Title
- {
- get => lblTitle.Content as string;
- set => lblTitle.Content = value;
- }
-
- public string Text
- {
- get => txtField2.Text;
- set => txtField2.Text = value;
- }
-
- public void CollapseCopyButton() => btnCopy.Visibility = Visibility.Collapsed;
-
- private void Button_Click(object sender, RoutedEventArgs e)
- {
- System.Windows.Clipboard.SetText(Text);
- }
-
- private void Button_Click_1(object sender, RoutedEventArgs e)
- {
- Button1Click.Invoke(this, new EventArgs());
- }
- }
-}
diff --git a/BeWoLauncher/View/Frames/InstallInfoFrame.xaml b/BeWoLauncher/View/Frames/InstallInfoFrame.xaml
deleted file mode 100644
index dba8bed7e..000000000
--- a/BeWoLauncher/View/Frames/InstallInfoFrame.xaml
+++ /dev/null
@@ -1,63 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/BeWoLauncher/View/Frames/InstallInfoFrame.xaml.cs b/BeWoLauncher/View/Frames/InstallInfoFrame.xaml.cs
deleted file mode 100644
index 767912151..000000000
--- a/BeWoLauncher/View/Frames/InstallInfoFrame.xaml.cs
+++ /dev/null
@@ -1,105 +0,0 @@
-using BeWoLauncher.Logic.Controller;
-using BeWoLauncher.Logic.Utils;
-using BS.SharedLauncher.Information;
-using BS.SharedLauncher.Utils;
-using System;
-using System.IO;
-using System.Windows;
-using Path = System.IO.Path;
-
-namespace BeWoLauncher.View.Frames
-{
- ///
- /// Interaktionslogik für UpdateInfo1.xaml
- ///
- public partial class InstallInfoFrame : FrameBase
- {
- public event EventHandler Accept;
- public event EventHandler Abort;
-
- public InstallInfoFrame()
- {
- InitializeComponent();
-
- InstallLocation = LauncherPaths.GetInstallLocationFromSettingOrDefault();
-
- var size = NonspecificTools.SizeSuffix((ulong)DownloadController.Manager.UpdatePlanResponse.DownloadSize).Split(' ');
-
- lblErforderlich.Content = size[0];
- lblErforderlichSize.Content = size[1];
-
- lblversion.Content = DownloadController.Manager.UpdatePlanResponse.CurrentPackage.Version;
- }
-
- public string InstallLocation
- {
- get
- {
- return LauncherPaths.LoginSelectionPlanerLocation;
- }
- set
- {
- if (!endPathWithSubDir(value))
- value = Path.Combine(value, BeWoPathFileConfig.SubDirectory);
-
- if (LauncherPaths.ChangePath(value))
- {
- txtLoc.Text = value;
-
- var size2 = DownloadController.UpdateDiskSpace(LauncherPaths.LoginSelectionPlanerLocation).Split(' ');
-
- if (size2.Length > 1)
- {
- lblVerfuegbar.Content = size2[0];
- lblVerfuegbarSize.Content = size2[1];
- }
- else
- {
- lblVerfuegbar.Content = size2[0] ?? "error#87";
- lblVerfuegbarSize.Content = string.Empty;
- }
- }
- }
- }
-
- private void button_installLoc_Click(object sender, RoutedEventArgs rea)
- {
- // https://stackoverflow.com/questions/11624298/how-to-use-openfiledialog-to-select-a-folder
- using (var fbd = new System.Windows.Forms.FolderBrowserDialog())
- {
- fbd.SelectedPath = getPathWithoutSubDir(InstallLocation);
-
- System.Windows.Forms.DialogResult result = fbd.ShowDialog();
-
- if (result == System.Windows.Forms.DialogResult.OK && !string.IsNullOrWhiteSpace(fbd.SelectedPath))
- {
- InstallLocation = fbd.SelectedPath;
- }
- }
- }
-
- private bool endPathWithSubDir(string path)
- {
- var dirName = new DirectoryInfo(path).Name;
-
- return (dirName == BeWoPathFileConfig.SubDirectory);
- }
-
- private string getPathWithoutSubDir(string path)
- {
- if (endPathWithSubDir(path))
- return Directory.GetParent(path).FullName;
- return path;
- }
-
- private void Button_Click(object sender, RoutedEventArgs e)
- {
- Abort.Invoke(this, new EventArgs());
- }
-
- private void Button_Click_1(object sender, RoutedEventArgs e)
- {
- Accept.Invoke(this, new EventArgs());
- }
- }
-}
diff --git a/BeWoLauncher/View/Frames/LoadingFrame.xaml b/BeWoLauncher/View/Frames/LoadingFrame.xaml
deleted file mode 100644
index 11ff9f3dc..000000000
--- a/BeWoLauncher/View/Frames/LoadingFrame.xaml
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/BeWoLauncher/View/Frames/LoadingFrame.xaml.cs b/BeWoLauncher/View/Frames/LoadingFrame.xaml.cs
deleted file mode 100644
index 90bcc89cc..000000000
--- a/BeWoLauncher/View/Frames/LoadingFrame.xaml.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-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 BeWoLauncher.View.Frames
-{
- ///
- /// Interaktionslogik für LoadingScreen.xaml
- ///
- public partial class LoadingScreen : FrameBase
- {
- public LoadingScreen()
- {
- InitializeComponent();
- }
-
- private void UserControl_Loaded(object sender, RoutedEventArgs e)
- {
-
- }
- }
-}
diff --git a/BeWoLauncher/View/Frames/ProgressFrame.xaml b/BeWoLauncher/View/Frames/ProgressFrame.xaml
deleted file mode 100644
index c1c426bdc..000000000
--- a/BeWoLauncher/View/Frames/ProgressFrame.xaml
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/BeWoLauncher/View/Frames/ProgressFrame.xaml.cs b/BeWoLauncher/View/Frames/ProgressFrame.xaml.cs
deleted file mode 100644
index ac1a86671..000000000
--- a/BeWoLauncher/View/Frames/ProgressFrame.xaml.cs
+++ /dev/null
@@ -1,237 +0,0 @@
-using BeWoLauncher.Logic.Controller;
-using BS.SharedLauncher.Enums;
-using BS.SharedLauncher.Update;
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Configuration;
-using System.Threading;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Media.Animation;
-
-namespace BeWoLauncher.View.Frames
-{
- ///
- /// Interaktionslogik für UpdateView.xaml
- ///
- public partial class ProgressFrame : FrameBase
- {
- private static TimeSpan duration = TimeSpan.FromSeconds(1);
-
- private int lastStep = -1;
-
- private string[][] keywords = new string[][]
- {
- new string[]{"Installation", "Ungebrauchte Datei(en) gefunden." },
- new string[]{"Update", "Ungebrauchte Datei(en) gefunden."},
- new string[]{"Deinstallation", "Deinstallation startet..."},
- };
- private int keyword_mode;
-
- public readonly BackgroundWorker Worker = new BackgroundWorker();
- public event EventHandler Successful;
- public event EventHandler Exception;
-
- public LauncherMode LauncherMode { get; set; }
-
- public ProgressFrame(LauncherMode mode)
- {
- InitializeComponent();
-
- proBar1.IsIndeterminate = false;
- proBar1.Minimum = 0;
- proBar1.Maximum = 100;
-
- proBar2.IsIndeterminate = false;
- proBar2.Minimum = 0;
- proBar2.Maximum = DownloadController.Manager.FilesToProcessTotal;
-
- LauncherMode = mode;
-
- keyword_mode = (int)mode;
-
- Loaded += (s, e) => Start();
- }
-
- private string getKeyword(int pos) => keywords[keyword_mode][pos];
-
- public string Message
- {
- get { return lblMessage.Content as string; }
- set { lblMessage.Content = value; }
- }
- public string SubMessage
- {
- get { return lblSubmessage.Content as string; }
- set { lblSubmessage.Content = value; }
- }
-
- public void Start()
- {
- var skipLock = bool.TryParse(ConfigurationManager.AppSettings.Get("SkipLock"), out bool c) && c;
-
- Worker.DoWork += worker_DoWork;
- Worker.ProgressChanged += worker_ProgressChanged;
- Worker.RunWorkerCompleted += worker_completed;
-
- Worker.WorkerReportsProgress = true;
-
- Worker.RunWorkerAsync(skipLock);
- }
-
- void worker_DoWork(object sender, DoWorkEventArgs e)
- {
- var skipLock = (bool)e.Argument;
- var worker = sender as BackgroundWorker;
-
- DownloadController.Manager.SkipLock = skipLock;
- DownloadController.Manager.Feedback = worker.ReportProgress;
-
- DownloadController.Manager.StartProcess(worker);
- }
-
- private void worker_completed(object sender, RunWorkerCompletedEventArgs e)
- {
- if (e.Error != null)
- {
- ViewController.Error = e.Error;
-
- Exception.Invoke(this, new EventArgs());
- }
- else
- {
- Successful.Invoke(this, new EventArgs());
- }
- }
-
- private void worker_ProgressChanged(object sender, ProgressChangedEventArgs e)
- {
- var progress = (LauncherProgress)e.ProgressPercentage;
- var obj = e.UserState;
-
- switch (progress)
- {
- case LauncherProgress.ProgressStart:
- Message = $"{getKeyword(0)} wird vorbereitet...";
- SubMessage = "";
- Bar2Activate();
- break;
-
- case LauncherProgress.DownloadStart:
- Message = "Download startet...";
- SubMessage = "";
- Bar1Show();
- Bar1Activate();
- Bar1Reset();
- Bar1SetLimit(DownloadController.Manager.FilesToDownloadCount);
- break;
-
- case LauncherProgress.DownloadUpdate:
- var args = obj as DownloadProgressEventArgs;
- Message = "Download wird ausgeführt...";
- SubMessage = $"{args.File.RelativePath} ({args.Size})\n wurde heruntergeladen...";
- Bar1MakeStep();
- Bar2MakeStep();
- break;
-
- case LauncherProgress.DownloadFinish:
- Message = "Download abgeschlossen!";
- SubMessage = "";
- Bar1Hide();
- break;
-
- case LauncherProgress.ApplyStart:
- Message = "Füge Pakete hinzu...";
- SubMessage = "";
- Bar1Show();
- Bar1Activate();
- Bar1Reset();
- Bar1SetLimit(DownloadController.Manager.FilesToApplyCount);
- break;
-
- case LauncherProgress.ApplyUpdate:
- var args2 = obj as ApplyFileEventArgs;
- SubMessage = $"{args2.RelativePath}\n wurde installiert...";
- Bar1MakeStep();
- Bar2MakeStep();
- break;
-
- case LauncherProgress.ApplyFinished:
- Message = "Hinzufügen abgeschlossen!";
- SubMessage = "";
- Bar1Hide();
- break;
-
- case LauncherProgress.DeleteStart:
- Message = getKeyword(1);
- SubMessage = "";
- Bar1Show();
- Bar1Activate();
- Bar1Reset();
- Bar1SetLimit(DownloadController.Manager.FilesToDeleteInApplyCount);
- break;
- case LauncherProgress.DeleteUpdate:
- var args3 = obj as string;
- SubMessage = $"{args3}\n wurde entfernt!";
- Bar1MakeStep();
- Bar2MakeStep();
- break;
-
- case LauncherProgress.DeleteFinished:
- Message = "Säuberung abgeschlossen!";
- SubMessage = "";
- Bar1Hide();
- break;
-
- case LauncherProgress.CleanupStart:
- Message = "Räume hier noch eben auf...";
- SubMessage = "";
- Bar1Show();
- Bar1Deactivate();
- break;
-
- case LauncherProgress.CleanupUpdate:
- break;
-
- case LauncherProgress.CleanupFinished:
- Message = "Blitze blank...";
- SubMessage = "";
- break;
-
- case LauncherProgress.ProgressEnd:
- Message = $"{getKeyword(0)} abgeschlossen!";
- SubMessage = "";
- Bar2Fill();
- break;
- default:
- break;
- }
- }
-
- #region a
- public void Bar1Activate() => proBar1.IsIndeterminate = false;
- public void Bar1Deactivate() => proBar1.IsIndeterminate = true;
- public void Bar1SetLimit(int max) => proBar1.Maximum = max;
- public void Bar1Reset() => proBar1.Value = 0;
- public void Bar1MakeStep() => proBar1.Value++;
- public void Bar1Hide() => proBar1.Visibility = Visibility.Hidden;
- public void Bar1Show() => proBar1.Visibility = Visibility.Visible;
-
- public void Bar2Activate() => proBar2.IsIndeterminate = false;
- public void Bar2Deactivate() => proBar2.IsIndeterminate = true;
- public void Bar2SetLimit(int max) => proBar2.Maximum = max;
- public void Bar2MakeStep() => proBar2.Value++;
- public void Bar2MakeStep(int val) => proBar2.Value += val;
- public void Bar2Fill() => proBar2.Value = proBar2.Maximum;
- public void Bar2Hide() => proBar2.Visibility = Visibility.Hidden;
- public void Bar2Show() => proBar2.Visibility = Visibility.Visible;
-
- public void Bar2SetPercent(double percentage)
- {
- DoubleAnimation animation = new DoubleAnimation(percentage, duration);
- proBar2.BeginAnimation(ProgressBar.ValueProperty, animation);
- }
- #endregion
- }
-}
diff --git a/BeWoLauncher/View/Frames/UninstallInfoFrame.xaml b/BeWoLauncher/View/Frames/UninstallInfoFrame.xaml
deleted file mode 100644
index 6eff23561..000000000
--- a/BeWoLauncher/View/Frames/UninstallInfoFrame.xaml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/BeWoLauncher/View/Frames/UninstallInfoFrame.xaml.cs b/BeWoLauncher/View/Frames/UninstallInfoFrame.xaml.cs
deleted file mode 100644
index 898d450b6..000000000
--- a/BeWoLauncher/View/Frames/UninstallInfoFrame.xaml.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-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 BeWoLauncher.View.Frames
-{
- ///
- /// Interaktionslogik für UpdateInfo3.xaml
- ///
- public partial class UninstallInfoFrame : FrameBase
- {
- public event EventHandler Accept;
- public event EventHandler Abort;
-
- public UninstallInfoFrame()
- {
- InitializeComponent();
- }
-
- private void Button_Click(object sender, RoutedEventArgs e)
- {
- Abort.Invoke(this, new EventArgs());
- }
-
- private void Button_Click_1(object sender, RoutedEventArgs e)
- {
- Accept.Invoke(this, new EventArgs());
- }
- }
-}
diff --git a/BeWoLauncher/View/Frames/UpdateInfoFrame.xaml b/BeWoLauncher/View/Frames/UpdateInfoFrame.xaml
deleted file mode 100644
index 95a2b0c54..000000000
--- a/BeWoLauncher/View/Frames/UpdateInfoFrame.xaml
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/BeWoLauncher/View/Frames/UpdateInfoFrame.xaml.cs b/BeWoLauncher/View/Frames/UpdateInfoFrame.xaml.cs
deleted file mode 100644
index fc2cb2cd9..000000000
--- a/BeWoLauncher/View/Frames/UpdateInfoFrame.xaml.cs
+++ /dev/null
@@ -1,67 +0,0 @@
-using BeWoLauncher.Logic.Controller;
-using BeWoLauncher.Logic.Utils;
-using BS.SharedLauncher.Utils;
-using System;
-using System.Collections.Generic;
-using System.IO;
-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 BeWoLauncher.View.Frames
-{
- ///
- /// Interaktionslogik für UpdateInfo2.xaml
- ///
- public partial class UpdateInfoFrame : FrameBase
- {
- public event EventHandler Accept;
- public event EventHandler Abort;
-
- public UpdateInfoFrame()
- {
- InitializeComponent();
-
- LauncherPaths.ActualPlanerLocation = LauncherPaths.GetInstallLocationFromSetting();
-
- var size = NonspecificTools.SizeSuffix((ulong)DownloadController.Manager.UpdatePlanResponse.DownloadSize).Split(' ');
-
- lblErforderlich.Content = size[0];
- lblErforderlichSize.Content = size[1];
-
- var size2 = DownloadController.UpdateDiskSpace(LauncherPaths.ActualPlanerLocation).Split(' ');
-
- if(size2.Length > 1)
- {
- lblVerfuegbar.Content = size2[0];
- lblVerfuegbarSize.Content = size2[1];
- }
- else
- {
- lblVerfuegbar.Content = size2[0] ?? "error#87";
- lblVerfuegbarSize.Content = string.Empty;
- }
-
- lblversion.Content = DownloadController.Manager.UpdatePlanResponse.CurrentPackage.Version;
- }
-
- private void Button_Click(object sender, RoutedEventArgs e)
- {
- Abort.Invoke(this, new EventArgs());
- }
-
- private void Button_Click_1(object sender, RoutedEventArgs e)
- {
- Accept.Invoke(this, new EventArgs());
- }
- }
-}
diff --git a/BeWoLauncher/View/Icons/16_bulleted_list.png b/BeWoLauncher/View/Icons/16_bulleted_list.png
deleted file mode 100644
index 8b0f4a583..000000000
Binary files a/BeWoLauncher/View/Icons/16_bulleted_list.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/16_employee.png b/BeWoLauncher/View/Icons/16_employee.png
deleted file mode 100644
index 947bd4b62..000000000
Binary files a/BeWoLauncher/View/Icons/16_employee.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/16_euro.png b/BeWoLauncher/View/Icons/16_euro.png
deleted file mode 100644
index b322ba929..000000000
Binary files a/BeWoLauncher/View/Icons/16_euro.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/16_female.png b/BeWoLauncher/View/Icons/16_female.png
deleted file mode 100644
index 7c71de03b..000000000
Binary files a/BeWoLauncher/View/Icons/16_female.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/16_male.png b/BeWoLauncher/View/Icons/16_male.png
deleted file mode 100644
index 79f35ccbd..000000000
Binary files a/BeWoLauncher/View/Icons/16_male.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/16_report.png b/BeWoLauncher/View/Icons/16_report.png
deleted file mode 100644
index 779ad58ef..000000000
Binary files a/BeWoLauncher/View/Icons/16_report.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Add24.png b/BeWoLauncher/View/Icons/Add24.png
deleted file mode 100644
index f4a806e26..000000000
Binary files a/BeWoLauncher/View/Icons/Add24.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Alarm.png b/BeWoLauncher/View/Icons/Alarm.png
deleted file mode 100644
index 5082af3df..000000000
Binary files a/BeWoLauncher/View/Icons/Alarm.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/AlertsDisabled.png b/BeWoLauncher/View/Icons/AlertsDisabled.png
deleted file mode 100644
index 929d236c5..000000000
Binary files a/BeWoLauncher/View/Icons/AlertsDisabled.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/AnonymousUserDisabled.png b/BeWoLauncher/View/Icons/AnonymousUserDisabled.png
deleted file mode 100644
index 9eb735e53..000000000
Binary files a/BeWoLauncher/View/Icons/AnonymousUserDisabled.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Archiv.png b/BeWoLauncher/View/Icons/Archiv.png
deleted file mode 100644
index d12c7dbd0..000000000
Binary files a/BeWoLauncher/View/Icons/Archiv.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/ArrowLeft.png b/BeWoLauncher/View/Icons/ArrowLeft.png
deleted file mode 100644
index 577630b62..000000000
Binary files a/BeWoLauncher/View/Icons/ArrowLeft.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/ArrowRight.png b/BeWoLauncher/View/Icons/ArrowRight.png
deleted file mode 100644
index 026782670..000000000
Binary files a/BeWoLauncher/View/Icons/ArrowRight.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Calendar 1.png b/BeWoLauncher/View/Icons/Calendar 1.png
deleted file mode 100644
index 180e75d67..000000000
Binary files a/BeWoLauncher/View/Icons/Calendar 1.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Calendar1Day24.png b/BeWoLauncher/View/Icons/Calendar1Day24.png
deleted file mode 100644
index bec8d2e26..000000000
Binary files a/BeWoLauncher/View/Icons/Calendar1Day24.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Calendar31Day24.png b/BeWoLauncher/View/Icons/Calendar31Day24.png
deleted file mode 100644
index 850c6d492..000000000
Binary files a/BeWoLauncher/View/Icons/Calendar31Day24.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Calendar5Day24.png b/BeWoLauncher/View/Icons/Calendar5Day24.png
deleted file mode 100644
index 1fe969339..000000000
Binary files a/BeWoLauncher/View/Icons/Calendar5Day24.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Calendar7Day24.png b/BeWoLauncher/View/Icons/Calendar7Day24.png
deleted file mode 100644
index 091ceeaa0..000000000
Binary files a/BeWoLauncher/View/Icons/Calendar7Day24.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/CalendarDisabled.png b/BeWoLauncher/View/Icons/CalendarDisabled.png
deleted file mode 100644
index a04d1d2d0..000000000
Binary files a/BeWoLauncher/View/Icons/CalendarDisabled.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/CashStackDisabled.png b/BeWoLauncher/View/Icons/CashStackDisabled.png
deleted file mode 100644
index 93ea36baa..000000000
Binary files a/BeWoLauncher/View/Icons/CashStackDisabled.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/ChartBarDisabled.png b/BeWoLauncher/View/Icons/ChartBarDisabled.png
deleted file mode 100644
index 2afee3948..000000000
Binary files a/BeWoLauncher/View/Icons/ChartBarDisabled.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/ChartLineDisabled.png b/BeWoLauncher/View/Icons/ChartLineDisabled.png
deleted file mode 100644
index 9ef0a0acd..000000000
Binary files a/BeWoLauncher/View/Icons/ChartLineDisabled.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/ClipboardDisabled.png b/BeWoLauncher/View/Icons/ClipboardDisabled.png
deleted file mode 100644
index 9cbc0e462..000000000
Binary files a/BeWoLauncher/View/Icons/ClipboardDisabled.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/CoinsDisabled.png b/BeWoLauncher/View/Icons/CoinsDisabled.png
deleted file mode 100644
index 9f95a56cb..000000000
Binary files a/BeWoLauncher/View/Icons/CoinsDisabled.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/ConfigurationDisabled.png b/BeWoLauncher/View/Icons/ConfigurationDisabled.png
deleted file mode 100644
index 423c28b46..000000000
Binary files a/BeWoLauncher/View/Icons/ConfigurationDisabled.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/ConfigurationToolsDisabled.png b/BeWoLauncher/View/Icons/ConfigurationToolsDisabled.png
deleted file mode 100644
index 26dade83f..000000000
Binary files a/BeWoLauncher/View/Icons/ConfigurationToolsDisabled.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/ContactCardDisabled.png b/BeWoLauncher/View/Icons/ContactCardDisabled.png
deleted file mode 100644
index 7ac357b16..000000000
Binary files a/BeWoLauncher/View/Icons/ContactCardDisabled.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/ContactCardWebDisabled.png b/BeWoLauncher/View/Icons/ContactCardWebDisabled.png
deleted file mode 100644
index a2453fe0c..000000000
Binary files a/BeWoLauncher/View/Icons/ContactCardWebDisabled.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Copy.png b/BeWoLauncher/View/Icons/Copy.png
deleted file mode 100644
index ccba8fdcb..000000000
Binary files a/BeWoLauncher/View/Icons/Copy.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Cut.png b/BeWoLauncher/View/Icons/Cut.png
deleted file mode 100644
index 158de4eb0..000000000
Binary files a/BeWoLauncher/View/Icons/Cut.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Delete24.png b/BeWoLauncher/View/Icons/Delete24.png
deleted file mode 100644
index d64b98f5d..000000000
Binary files a/BeWoLauncher/View/Icons/Delete24.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Document48.png b/BeWoLauncher/View/Icons/Document48.png
deleted file mode 100644
index 23e7ddf36..000000000
Binary files a/BeWoLauncher/View/Icons/Document48.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/DocumentWithAdd.png b/BeWoLauncher/View/Icons/DocumentWithAdd.png
deleted file mode 100644
index 184b22700..000000000
Binary files a/BeWoLauncher/View/Icons/DocumentWithAdd.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/DocumentWithAdd2.png b/BeWoLauncher/View/Icons/DocumentWithAdd2.png
deleted file mode 100644
index 21a36eb6e..000000000
Binary files a/BeWoLauncher/View/Icons/DocumentWithAdd2.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Email.png b/BeWoLauncher/View/Icons/Email.png
deleted file mode 100644
index 437e48193..000000000
Binary files a/BeWoLauncher/View/Icons/Email.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Favorites16.png b/BeWoLauncher/View/Icons/Favorites16.png
deleted file mode 100644
index 459af3f89..000000000
Binary files a/BeWoLauncher/View/Icons/Favorites16.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Favorites32.png b/BeWoLauncher/View/Icons/Favorites32.png
deleted file mode 100644
index f169f537b..000000000
Binary files a/BeWoLauncher/View/Icons/Favorites32.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/FavoritesDisabled32.png b/BeWoLauncher/View/Icons/FavoritesDisabled32.png
deleted file mode 100644
index 3ba8055e7..000000000
Binary files a/BeWoLauncher/View/Icons/FavoritesDisabled32.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Folder.png b/BeWoLauncher/View/Icons/Folder.png
deleted file mode 100644
index 41b8bcb37..000000000
Binary files a/BeWoLauncher/View/Icons/Folder.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Haeckchen.png b/BeWoLauncher/View/Icons/Haeckchen.png
deleted file mode 100644
index d4379ecab..000000000
Binary files a/BeWoLauncher/View/Icons/Haeckchen.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Help.png b/BeWoLauncher/View/Icons/Help.png
deleted file mode 100644
index ea265cf09..000000000
Binary files a/BeWoLauncher/View/Icons/Help.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/HelpDisabled.png b/BeWoLauncher/View/Icons/HelpDisabled.png
deleted file mode 100644
index d3d65e323..000000000
Binary files a/BeWoLauncher/View/Icons/HelpDisabled.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/History24.png b/BeWoLauncher/View/Icons/History24.png
deleted file mode 100644
index 1c3dc5a7d..000000000
Binary files a/BeWoLauncher/View/Icons/History24.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/HistoryDisabled - Kopie.png b/BeWoLauncher/View/Icons/HistoryDisabled - Kopie.png
deleted file mode 100644
index 773bff47b..000000000
Binary files a/BeWoLauncher/View/Icons/HistoryDisabled - Kopie.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/HistoryDisabled.png b/BeWoLauncher/View/Icons/HistoryDisabled.png
deleted file mode 100644
index 773bff47b..000000000
Binary files a/BeWoLauncher/View/Icons/HistoryDisabled.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Home.png b/BeWoLauncher/View/Icons/Home.png
deleted file mode 100644
index 44836a6e9..000000000
Binary files a/BeWoLauncher/View/Icons/Home.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/HomeDisabled - Kopie.png b/BeWoLauncher/View/Icons/HomeDisabled - Kopie.png
deleted file mode 100644
index 64bd35ad7..000000000
Binary files a/BeWoLauncher/View/Icons/HomeDisabled - Kopie.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/HomeDisabled.png b/BeWoLauncher/View/Icons/HomeDisabled.png
deleted file mode 100644
index 64bd35ad7..000000000
Binary files a/BeWoLauncher/View/Icons/HomeDisabled.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/IDBadgeDisabled - Kopie.png b/BeWoLauncher/View/Icons/IDBadgeDisabled - Kopie.png
deleted file mode 100644
index f6fd97fdc..000000000
Binary files a/BeWoLauncher/View/Icons/IDBadgeDisabled - Kopie.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/IDBadgeDisabled.png b/BeWoLauncher/View/Icons/IDBadgeDisabled.png
deleted file mode 100644
index f6fd97fdc..000000000
Binary files a/BeWoLauncher/View/Icons/IDBadgeDisabled.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/InternetDisabled - Kopie.png b/BeWoLauncher/View/Icons/InternetDisabled - Kopie.png
deleted file mode 100644
index ed4dfdb9b..000000000
Binary files a/BeWoLauncher/View/Icons/InternetDisabled - Kopie.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/InternetDisabled.png b/BeWoLauncher/View/Icons/InternetDisabled.png
deleted file mode 100644
index ed4dfdb9b..000000000
Binary files a/BeWoLauncher/View/Icons/InternetDisabled.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Keywords.png b/BeWoLauncher/View/Icons/Keywords.png
deleted file mode 100644
index 0f3ba25f1..000000000
Binary files a/BeWoLauncher/View/Icons/Keywords.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/KeywordsDisabled.png b/BeWoLauncher/View/Icons/KeywordsDisabled.png
deleted file mode 100644
index 34a87be27..000000000
Binary files a/BeWoLauncher/View/Icons/KeywordsDisabled.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Light Bulb.png b/BeWoLauncher/View/Icons/Light Bulb.png
deleted file mode 100644
index 48aae85f8..000000000
Binary files a/BeWoLauncher/View/Icons/Light Bulb.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Logout - Kopie.png b/BeWoLauncher/View/Icons/Logout - Kopie.png
deleted file mode 100644
index 46f6a3b14..000000000
Binary files a/BeWoLauncher/View/Icons/Logout - Kopie.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Logout.png b/BeWoLauncher/View/Icons/Logout.png
deleted file mode 100644
index 46f6a3b14..000000000
Binary files a/BeWoLauncher/View/Icons/Logout.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/LogoutDisabled.png b/BeWoLauncher/View/Icons/LogoutDisabled.png
deleted file mode 100644
index b7004fc33..000000000
Binary files a/BeWoLauncher/View/Icons/LogoutDisabled.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/ManufacturingDisabled - Kopie.png b/BeWoLauncher/View/Icons/ManufacturingDisabled - Kopie.png
deleted file mode 100644
index 11a1e7e09..000000000
Binary files a/BeWoLauncher/View/Icons/ManufacturingDisabled - Kopie.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/ManufacturingDisabled.png b/BeWoLauncher/View/Icons/ManufacturingDisabled.png
deleted file mode 100644
index 11a1e7e09..000000000
Binary files a/BeWoLauncher/View/Icons/ManufacturingDisabled.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/MenuDisabled.png b/BeWoLauncher/View/Icons/MenuDisabled.png
deleted file mode 100644
index 32f0dc05f..000000000
Binary files a/BeWoLauncher/View/Icons/MenuDisabled.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Newspaper.png b/BeWoLauncher/View/Icons/Newspaper.png
deleted file mode 100644
index 23c121daa..000000000
Binary files a/BeWoLauncher/View/Icons/Newspaper.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/ObjectsDisabled.png b/BeWoLauncher/View/Icons/ObjectsDisabled.png
deleted file mode 100644
index bbd629bf3..000000000
Binary files a/BeWoLauncher/View/Icons/ObjectsDisabled.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/OfficeBulidingBlackDisabled.png b/BeWoLauncher/View/Icons/OfficeBulidingBlackDisabled.png
deleted file mode 100644
index a762d5836..000000000
Binary files a/BeWoLauncher/View/Icons/OfficeBulidingBlackDisabled.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Paste.png b/BeWoLauncher/View/Icons/Paste.png
deleted file mode 100644
index 24976137e..000000000
Binary files a/BeWoLauncher/View/Icons/Paste.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Paste24.png b/BeWoLauncher/View/Icons/Paste24.png
deleted file mode 100644
index f63ea0480..000000000
Binary files a/BeWoLauncher/View/Icons/Paste24.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/RSS Newsfeed - Kopie.png b/BeWoLauncher/View/Icons/RSS Newsfeed - Kopie.png
deleted file mode 100644
index 558ef075b..000000000
Binary files a/BeWoLauncher/View/Icons/RSS Newsfeed - Kopie.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/RSS Newsfeed.png b/BeWoLauncher/View/Icons/RSS Newsfeed.png
deleted file mode 100644
index 558ef075b..000000000
Binary files a/BeWoLauncher/View/Icons/RSS Newsfeed.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Redo - Kopie.png b/BeWoLauncher/View/Icons/Redo - Kopie.png
deleted file mode 100644
index 7f52beef7..000000000
Binary files a/BeWoLauncher/View/Icons/Redo - Kopie.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Redo.png b/BeWoLauncher/View/Icons/Redo.png
deleted file mode 100644
index 7f52beef7..000000000
Binary files a/BeWoLauncher/View/Icons/Redo.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Rename24 - Kopie.png b/BeWoLauncher/View/Icons/Rename24 - Kopie.png
deleted file mode 100644
index 24fe40d39..000000000
Binary files a/BeWoLauncher/View/Icons/Rename24 - Kopie.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Rename24.png b/BeWoLauncher/View/Icons/Rename24.png
deleted file mode 100644
index 24fe40d39..000000000
Binary files a/BeWoLauncher/View/Icons/Rename24.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/SMS24_2.png b/BeWoLauncher/View/Icons/SMS24_2.png
deleted file mode 100644
index f964d970d..000000000
Binary files a/BeWoLauncher/View/Icons/SMS24_2.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Save - Kopie.png b/BeWoLauncher/View/Icons/Save - Kopie.png
deleted file mode 100644
index 3f0d3cd68..000000000
Binary files a/BeWoLauncher/View/Icons/Save - Kopie.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Save.png b/BeWoLauncher/View/Icons/Save.png
deleted file mode 100644
index 3f0d3cd68..000000000
Binary files a/BeWoLauncher/View/Icons/Save.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Search - Kopie.png b/BeWoLauncher/View/Icons/Search - Kopie.png
deleted file mode 100644
index f43310d41..000000000
Binary files a/BeWoLauncher/View/Icons/Search - Kopie.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Search.png b/BeWoLauncher/View/Icons/Search.png
deleted file mode 100644
index f43310d41..000000000
Binary files a/BeWoLauncher/View/Icons/Search.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Symbol Delete.png b/BeWoLauncher/View/Icons/Symbol Delete.png
deleted file mode 100644
index a5d7d4ce2..000000000
Binary files a/BeWoLauncher/View/Icons/Symbol Delete.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Symbol Edit.png b/BeWoLauncher/View/Icons/Symbol Edit.png
deleted file mode 100644
index efed87db3..000000000
Binary files a/BeWoLauncher/View/Icons/Symbol Edit.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Symbol Help.png b/BeWoLauncher/View/Icons/Symbol Help.png
deleted file mode 100644
index 52c0f34a4..000000000
Binary files a/BeWoLauncher/View/Icons/Symbol Help.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/SymbolRefresh32.png b/BeWoLauncher/View/Icons/SymbolRefresh32.png
deleted file mode 100644
index 566137591..000000000
Binary files a/BeWoLauncher/View/Icons/SymbolRefresh32.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/SymbolRefresh32Disabled - Kopie.png b/BeWoLauncher/View/Icons/SymbolRefresh32Disabled - Kopie.png
deleted file mode 100644
index ae2e6bc75..000000000
Binary files a/BeWoLauncher/View/Icons/SymbolRefresh32Disabled - Kopie.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/SymbolRefresh32Disabled.png b/BeWoLauncher/View/Icons/SymbolRefresh32Disabled.png
deleted file mode 100644
index ae2e6bc75..000000000
Binary files a/BeWoLauncher/View/Icons/SymbolRefresh32Disabled.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/TechSupportWhiteDisabled.png b/BeWoLauncher/View/Icons/TechSupportWhiteDisabled.png
deleted file mode 100644
index 5addf8ba1..000000000
Binary files a/BeWoLauncher/View/Icons/TechSupportWhiteDisabled.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Undo - Kopie.png b/BeWoLauncher/View/Icons/Undo - Kopie.png
deleted file mode 100644
index ba6633eaf..000000000
Binary files a/BeWoLauncher/View/Icons/Undo - Kopie.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/Undo.png b/BeWoLauncher/View/Icons/Undo.png
deleted file mode 100644
index ba6633eaf..000000000
Binary files a/BeWoLauncher/View/Icons/Undo.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/User Business Male.png b/BeWoLauncher/View/Icons/User Business Male.png
deleted file mode 100644
index de97570ec..000000000
Binary files a/BeWoLauncher/View/Icons/User Business Male.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/User Home Boy.png b/BeWoLauncher/View/Icons/User Home Boy.png
deleted file mode 100644
index e5074afbe..000000000
Binary files a/BeWoLauncher/View/Icons/User Home Boy.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/User Home Girl.png b/BeWoLauncher/View/Icons/User Home Girl.png
deleted file mode 100644
index 983ae1da9..000000000
Binary files a/BeWoLauncher/View/Icons/User Home Girl.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/UserBusinessMaleDisabled - Kopie.png b/BeWoLauncher/View/Icons/UserBusinessMaleDisabled - Kopie.png
deleted file mode 100644
index 57fe51bcc..000000000
Binary files a/BeWoLauncher/View/Icons/UserBusinessMaleDisabled - Kopie.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/UserBusinessMaleDisabled.png b/BeWoLauncher/View/Icons/UserBusinessMaleDisabled.png
deleted file mode 100644
index 57fe51bcc..000000000
Binary files a/BeWoLauncher/View/Icons/UserBusinessMaleDisabled.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/UserGroupBusinessDisabled - Kopie.png b/BeWoLauncher/View/Icons/UserGroupBusinessDisabled - Kopie.png
deleted file mode 100644
index c3bc5d090..000000000
Binary files a/BeWoLauncher/View/Icons/UserGroupBusinessDisabled - Kopie.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/UserGroupBusinessDisabled.png b/BeWoLauncher/View/Icons/UserGroupBusinessDisabled.png
deleted file mode 100644
index c3bc5d090..000000000
Binary files a/BeWoLauncher/View/Icons/UserGroupBusinessDisabled.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/UserGroupDisabled - Kopie.png b/BeWoLauncher/View/Icons/UserGroupDisabled - Kopie.png
deleted file mode 100644
index 70d2e28ac..000000000
Binary files a/BeWoLauncher/View/Icons/UserGroupDisabled - Kopie.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/UserGroupDisabled.png b/BeWoLauncher/View/Icons/UserGroupDisabled.png
deleted file mode 100644
index 70d2e28ac..000000000
Binary files a/BeWoLauncher/View/Icons/UserGroupDisabled.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/UserGroupHome24bw.png b/BeWoLauncher/View/Icons/UserGroupHome24bw.png
deleted file mode 100644
index 90ec8f94e..000000000
Binary files a/BeWoLauncher/View/Icons/UserGroupHome24bw.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/UserHomeBoyDisabled.png b/BeWoLauncher/View/Icons/UserHomeBoyDisabled.png
deleted file mode 100644
index 0096e46c0..000000000
Binary files a/BeWoLauncher/View/Icons/UserHomeBoyDisabled.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/UserHomeMaleDisabled.png b/BeWoLauncher/View/Icons/UserHomeMaleDisabled.png
deleted file mode 100644
index 7b86cb36a..000000000
Binary files a/BeWoLauncher/View/Icons/UserHomeMaleDisabled.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/UserHomeMaleDisabled32.png b/BeWoLauncher/View/Icons/UserHomeMaleDisabled32.png
deleted file mode 100644
index 97a5e870e..000000000
Binary files a/BeWoLauncher/View/Icons/UserHomeMaleDisabled32.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/UserMaleBlackDisabled.png b/BeWoLauncher/View/Icons/UserMaleBlackDisabled.png
deleted file mode 100644
index 243afc91b..000000000
Binary files a/BeWoLauncher/View/Icons/UserMaleBlackDisabled.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/WeitereNachrichtLaden.png b/BeWoLauncher/View/Icons/WeitereNachrichtLaden.png
deleted file mode 100644
index cf7110d2f..000000000
Binary files a/BeWoLauncher/View/Icons/WeitereNachrichtLaden.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/adobe-pdf-icon.png b/BeWoLauncher/View/Icons/adobe-pdf-icon.png
deleted file mode 100644
index c12e0a9a3..000000000
Binary files a/BeWoLauncher/View/Icons/adobe-pdf-icon.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/bewologo_big.gif b/BeWoLauncher/View/Icons/bewologo_big.gif
deleted file mode 100644
index 82ab9f061..000000000
Binary files a/BeWoLauncher/View/Icons/bewologo_big.gif and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/bewoplaner_logo_big.png b/BeWoLauncher/View/Icons/bewoplaner_logo_big.png
deleted file mode 100644
index a5874eb7a..000000000
Binary files a/BeWoLauncher/View/Icons/bewoplaner_logo_big.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/bewoplaner_logo_small.png b/BeWoLauncher/View/Icons/bewoplaner_logo_small.png
deleted file mode 100644
index b1925160e..000000000
Binary files a/BeWoLauncher/View/Icons/bewoplaner_logo_small.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/bslogo.gif b/BeWoLauncher/View/Icons/bslogo.gif
deleted file mode 100644
index 489c58519..000000000
Binary files a/BeWoLauncher/View/Icons/bslogo.gif and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/delete.png b/BeWoLauncher/View/Icons/delete.png
deleted file mode 100644
index a8462cf15..000000000
Binary files a/BeWoLauncher/View/Icons/delete.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/edit.png b/BeWoLauncher/View/Icons/edit.png
deleted file mode 100644
index 04426005a..000000000
Binary files a/BeWoLauncher/View/Icons/edit.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/excel.png b/BeWoLauncher/View/Icons/excel.png
deleted file mode 100644
index 54667e757..000000000
Binary files a/BeWoLauncher/View/Icons/excel.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/glucklicher.png b/BeWoLauncher/View/Icons/glucklicher.png
deleted file mode 100644
index 5464d2670..000000000
Binary files a/BeWoLauncher/View/Icons/glucklicher.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/klient-avatar.png b/BeWoLauncher/View/Icons/klient-avatar.png
deleted file mode 100644
index d6b59083e..000000000
Binary files a/BeWoLauncher/View/Icons/klient-avatar.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/massnahme.png b/BeWoLauncher/View/Icons/massnahme.png
deleted file mode 100644
index 26fd4e390..000000000
Binary files a/BeWoLauncher/View/Icons/massnahme.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/mitarbeiter-avatar.png b/BeWoLauncher/View/Icons/mitarbeiter-avatar.png
deleted file mode 100644
index 34a3a8bf0..000000000
Binary files a/BeWoLauncher/View/Icons/mitarbeiter-avatar.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/mitarbeiter-team-avatar.png b/BeWoLauncher/View/Icons/mitarbeiter-team-avatar.png
deleted file mode 100644
index dac4e73e3..000000000
Binary files a/BeWoLauncher/View/Icons/mitarbeiter-team-avatar.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/new.png b/BeWoLauncher/View/Icons/new.png
deleted file mode 100644
index fcf44f25c..000000000
Binary files a/BeWoLauncher/View/Icons/new.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/sortiert.png b/BeWoLauncher/View/Icons/sortiert.png
deleted file mode 100644
index 400b5333b..000000000
Binary files a/BeWoLauncher/View/Icons/sortiert.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/trauriges-smiley.png b/BeWoLauncher/View/Icons/trauriges-smiley.png
deleted file mode 100644
index 3ddb7368e..000000000
Binary files a/BeWoLauncher/View/Icons/trauriges-smiley.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/unsortiert.png b/BeWoLauncher/View/Icons/unsortiert.png
deleted file mode 100644
index 7900b8320..000000000
Binary files a/BeWoLauncher/View/Icons/unsortiert.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/warning-16x16.png b/BeWoLauncher/View/Icons/warning-16x16.png
deleted file mode 100644
index 0cdf9eb89..000000000
Binary files a/BeWoLauncher/View/Icons/warning-16x16.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/word.png b/BeWoLauncher/View/Icons/word.png
deleted file mode 100644
index 3169c4195..000000000
Binary files a/BeWoLauncher/View/Icons/word.png and /dev/null differ
diff --git a/BeWoLauncher/View/Icons/ziel.png b/BeWoLauncher/View/Icons/ziel.png
deleted file mode 100644
index c8db1f45e..000000000
Binary files a/BeWoLauncher/View/Icons/ziel.png and /dev/null differ
diff --git a/BeWoLauncher/View/LoginView.xaml b/BeWoLauncher/View/LoginView.xaml
deleted file mode 100644
index 4566a26ee..000000000
--- a/BeWoLauncher/View/LoginView.xaml
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- www.beyondsoft.de
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/BeWoLauncher/View/LoginView.xaml.cs b/BeWoLauncher/View/LoginView.xaml.cs
deleted file mode 100644
index 293cf130c..000000000
--- a/BeWoLauncher/View/LoginView.xaml.cs
+++ /dev/null
@@ -1,1218 +0,0 @@
-using BeWoLauncher.Components;
-using BeWoLauncher.Logic.Controller;
-using BeWoLauncher.Logic.Utils;
-using BeWoLauncher.Models;
-using BeWoLauncher.ServiceProxy;
-using BeWoLauncher.WindowImp;
-using BS.SharedLauncher.Enums;
-using BS.SharedLauncher.Information;
-
-using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.Collections.Specialized;
-using System.ComponentModel;
-using System.IO;
-using System.Linq;
-using System.Net;
-using System.Net.Security;
-using System.Reflection;
-using System.Security.Cryptography.X509Certificates;
-using System.Text;
-using System.Threading;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Navigation;
-using System.Windows.Threading;
-
-namespace BeWoLauncher.View
-{
- ///
- /// Interaktionslogik für LoginView.xaml
- ///
- public partial class LoginView : UserControl, INotifyPropertyChanged
- {
- public event EventHandler LoginSuccessful;
- public event PropertyChangedEventHandler PropertyChanged;
-
- private static String PUB_KEY_X3 = "3082010A02820101009CD30CF05AE52E47B7725D3783B3686330EAD735261925E1BDBE35F170922FB7B84B4105ABA99E350858ECB12AC468870BA3E375E4E6F3A76271BA7981601FD7919A9FF3D0786771C8690E9591CFFEE699E9603C48CC7ECA4D7712249D471B5AEBB9EC1E37001C9CAC7BA705EACE4AEBBD41E53698B9CBFD6D3C9668DF232A42900C867467C87FA59AB8526114133F65E98287CBDBFA0E56F68689F3853F9786AFB0DC1AEF6B0D95167DC42BA065B299043675806BAC4AF31B9049782FA2964F2A20252904C674C0D031CD8F31389516BAA833B843F1B11FC3307FA27931133D2D36F8E3FCF2336AB93931C5AFC48D0D1D641633AAFA8429B6D40BC0D87DC3930203010001";
-
- private static String PUB_KEY_R3 = "3082010A0282010100BB021528CCF6A094D30F12EC8D5592C3F882F199A67A4288A75D26AAB52BB9C54CB1AF8E6BF975C8A3D70F4794145535578C9EA8A23919F5823C42A94E6EF53BC32EDB8DC0B05CF35938E7EDCF69F05A0B1BBEC094242587FA3771B313E71CACE19BEFDBE43B45524596A9C153CE34C852EEB5AEED8FDE6070E2A554ABB66D0E97A540346B2BD3BC66EB66347CFA6B8B8F572999F830175DBA726FFB81C5ADD286583D17C7E709BBF12BF786DCC1DA715DD446E3CCAD25C188BC60677566B3F118F7A25CE653FF3A88B647A5FF1318EA9809773F9D53F9CF01E5F5A6701714AF63A4FF99B3939DDC53A706FE48851DA169AE2575BB13CC5203F5ED51A18BDB150203010001";
-
- private static String PUB_KEY_E1 = "04245C2DA22AFD1C4BA65D97732731ACB2A06962EF65E8A6B0F0AC4B9FFF1C0B700FD3982F4DFC0F009B37F074055732972E05EF2A4325A3FB6E342713F64F7E69D302995EEB244792C1249BE6B1218FC12481FC68CC1F69BA58F51922F774C616";
-
-
- private readonly Stack _ModalPopUpControls;
-
- private string _ProfilesFilePath;
- private string _ConfigFilePath;
-
- private bool isNet45OrNewer = false;
- private bool pwvViewOffen;
-
- private double lineYCoordTo;
- private double lineYCoordFrom;
- private double heightFrom;
- private double heightTo;
-
- private string GETSERVER_URL = "https://support.bewoplaner.de/api/getserver.php?k={0}&t=1";
- private string GETSTATUSMESSAGE_URL = "https://support.bewoplaner.de/api/getstate.php?k={0}&t=1&v={1}";
- private string GETNETMESSAGE_URL = "https://support.bewoplaner.de/api/getxmlstate.php?k={0}&t=1";
-
- public LoginView()
- {
- InitializeComponent();
-
- _ModalPopUpControls = new Stack();
- ViewController.LaunchBehavior.UninstallMode = false;
-
- DoTooMuchInitStuffIDontHaveANameForThisMethod();
- }
-
- public List ProfileList { get; set; }
-
- public double HeightFrom
- {
- get { return heightFrom; }
- set
- {
- heightFrom = value;
- OnPropertyChanged("HeightFrom");
- }
- }
- public double HeightTo
- {
- get { return heightTo; }
- set
- {
- heightTo = value;
- OnPropertyChanged("HeightTo");
- }
- }
- public double LineYCoordFrom
- {
- get { return lineYCoordFrom; }
- set
- {
- lineYCoordFrom = value;
- OnPropertyChanged("LineYCoordFrom");
- }
- }
- public double LineYCoordTo
- {
- get { return lineYCoordTo; }
- set
- {
- lineYCoordTo = value;
- OnPropertyChanged("LineYCoordTo");
- }
- }
-
- private void button_login_Click(object sender, RoutedEventArgs e)
- {
- if (!String.IsNullOrEmpty(SessionInformation.Connection.ProxyName))
- {
- var webProxy = WebProxy.GetDefaultProxy();
- webProxy.UseDefaultCredentials = true;
- System.Net.WebRequest.DefaultWebProxy = new WebProxy(SessionInformation.Connection.ProxyName, true);
-
- if (String.IsNullOrEmpty(SessionInformation.Connection.ProxyUsername))
- {
- WebRequest.DefaultWebProxy.Credentials = CredentialCache.DefaultNetworkCredentials;
- }
- else
- {
- WebRequest.DefaultWebProxy.Credentials = new NetworkCredential(SessionInformation.Connection.ProxyUsername, SessionInformation.Connection.ProxyPassword);
- }
- }
-
- if (ProfileList.Count == 0 || profileSelectionComboBox.SelectedItem == null)
- {
- MessageBox.Show(
- "Es wurde kein gültiges Profil gefunden. Bitte erstellen Sie zunächst ein Profil. Klicken Sie dazu auf 'Erweitert' und anschließend auf den Button 'Profile bearbeiten'",
- "Ungültiges Profil", MessageBoxButton.OK, MessageBoxImage.Warning);
- }
- else
- {
- var profile = profileSelectionComboBox.SelectedItem as ConnectionProfile;
-
- isNet45OrNewer = IsNet45OrNewer();
-
- if (!isNet45OrNewer)
- {
- if (!CheckStatusMessage(profile, String.Format(GETNETMESSAGE_URL, profile.Tenant, LauncherApp.Version)))
- {
- return;
- }
- }
-
-#if DEBUG
- if (!CheckStatusMessage(profile, String.Format(GETSTATUSMESSAGE_URL, profile.Tenant, LauncherApp.ShortVersion)))
- {
- return;
- }
-#else
- if (!CheckStatusMessage(profile, String.Format(GETSTATUSMESSAGE_URL, profile.Tenant, LauncherApp.ShortVersion)))
- {
- return;
- }
-#endif
-
-
- ChangeServerAndTenant(profile);
- //var lWaitLayer = new WaitLayer2();
- //grid_root.Children.Add(lWaitLayer);
-
- ViewController.StartWaiting();
-
- SessionInformation.Login.Username = TextBox_Username.Text;
- SessionInformation.Login.Password = PasswordBox_Password.Password;
- SessionInformation.Login.Pin = PINTextBox.Text;
-
- LauncherServiceFacade.UpdateServerAddresses();
-
- if (!String.IsNullOrEmpty(SessionInformation.Login.Pin))
- {
- SessionInformation.Login.Pin += "_" + System.Environment.MachineName;
- }
- Action action = Login;
- action.BeginInvoke(cb => { }, null);
- }
- }
- private void Hyperlink_OnRequestNavigate(object sender, RequestNavigateEventArgs e)
- {
- System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo((sender as Hyperlink).NavigateUri.ToString()));
- }
- private void TextBox_Username_OnGotFocus(object sender, RoutedEventArgs e)
- {
- TextBox_Username.SelectAll();
- }
- private void PasswordBox_Password_OnGotFocus(object sender, RoutedEventArgs e)
- {
- PasswordBox_Password.SelectAll();
- }
- private void button_addProfile_Click(object sender, RoutedEventArgs rea)
- {
- var newProfileList = new ObservableCollection(ProfileList);
-
- try
- {
- Mouse.OverrideCursor = Cursors.Wait;
-
- var p = new ProfileEditView() { Profiles = newProfileList };
-
- profileEditPopUp.Child = p;
-
- if (p.CommandBindings.Count != 0)
- return;
-
- p.CommandBindings.Add(
- new CommandBinding(
- ApplicationCommands.Close,
- (s, e) =>
- {
- profileEditPopUp.Child = null;
- }));
- p.CommandBindings.Add(
- new CommandBinding(
- ApplicationCommands.Save,
- (s, e) =>
- {
- ProfileList = p.Profiles.ToList();
- SaveProfileListToFile();
- profileEditPopUp.Child = null;
-
- //BeWoProfile profile = profileSelectionComboBox.SelectedItem as BeWoProfile;
- //ChangeServerAndTenant(profile);
- }));
- }
- catch (Exception e)
- {
-
- }
- finally
- {
- Mouse.OverrideCursor = null;
- }
- }
- private void button_configureProxy_Click(object sender, RoutedEventArgs rea)
- {
- ProxyLoginView proxyLogin = new ProxyLoginView();
- proxyLogin.WindowStartupLocation = WindowStartupLocation.CenterScreen;
-
- proxyLogin.ShowDialog();
- ReadProxyName();
- }
-
- private void PasswortVergessenLinkOnRequestNavigate(object sender, RequestNavigateEventArgs e)
- {
- if (pwvViewOffen) return;
-
- var p = new PwVergessenView();
- p.Closed += (s, ex) => { pwvViewOffen = false; };
- p.Show();
-
- pwvViewOffen = true;
- }
-
- private void UIElement_OnKeyDown(object sender, KeyEventArgs e)
- {
- if (e.Key == Key.P)
- {
- if (Keyboard.IsKeyDown(Key.LeftCtrl) || Keyboard.IsKeyDown(Key.RightCtrl) && Keyboard.IsKeyDown(Key.LeftAlt))
- {
- PinEinblenden();
- }
- }
- }
-
- private void AnimationComplete(object sender, EventArgs e)
- {
- double tmp = HeightFrom;
- HeightFrom = HeightTo;
- HeightTo = tmp;
- if (HeightFrom > HeightTo)
- {
- showProfileSelectionBtn.Content = "Ausblenden";
- profileLabel.Visibility = Visibility.Visible;
- profileStackPanel.Visibility = Visibility.Visible;
- proxyLabel.Visibility = Visibility.Visible;
- proxyStackPanel.Visibility = Visibility.Visible;
- //installLabel.Visibility = Visibility.Visible;
- //installStackPanel.Visibility = Visibility.Visible;
- }
- else
- {
- showProfileSelectionBtn.Content = "Erweitert";
- }
- }
- private void Animation2Complete(object sender, EventArgs e)
- {
- double tmp2 = LineYCoordFrom;
- LineYCoordFrom = LineYCoordTo;
- LineYCoordTo = tmp2;
- }
- private void ShowProfileStackPanel(object sender, RoutedEventArgs e)
- {
- if (profileLabel.Visibility == Visibility.Visible)
- {
- profileLabel.Visibility = Visibility.Collapsed;
- profileStackPanel.Visibility = Visibility.Collapsed;
- proxyLabel.Visibility = Visibility.Collapsed;
- proxyStackPanel.Visibility = Visibility.Collapsed;
- //installLabel.Visibility = Visibility.Collapsed;
- //installStackPanel.Visibility = Visibility.Collapsed;
- }
- }
- private void UserControl_Loaded(object sender, RoutedEventArgs e)
- {
- double top = (this.ActualHeight - 400) / 3;
- //this.gridLogin.Margin = new Thickness(0, top, 0, 0);
-
- if (TextBox_Username != null && String.IsNullOrEmpty(TextBox_Username.Text))
- {
- TextBox_Username.Focus();
- }
- }
-
- public void DoTooMuchInitStuffIDontHaveANameForThisMethod()
- {
- ConnectionProfile selectedProfile = null;
-
- ProfileList = new List();
-
- HeightFrom = gridLogin.Height;
- HeightTo = gridLogin.Height + (32 * 2);
- LineYCoordFrom = linkLine.Y1;
- LineYCoordTo = linkLine.Y1 + (32 * 2);
-
- DataContext = this;
-
- DateTime dt = new DateTime(2017, 1, 1);
- if (DateTime.Now > dt)
- dt = DateTime.Now;
-
- txtCopyright.Text = String.Format("Copyright {0:yyyy} | beyondSoft GmbH", dt);
-
- var checkPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\profiles.txt";
- if (File.Exists(checkPath))
- //Nimm lokalen Profilpfad wenn er existiert. Wird z.B. bei Kunden mit Citrix Server genutzt, die keine Clickonce Installation vornehmen
- _ProfilesFilePath = checkPath;
- else
- _ProfilesFilePath = Path.Combine(LauncherUtils.GetAndCreateUserAppDataPath(), "profiles.txt");
- _ConfigFilePath = Path.Combine(LauncherUtils.GetAndCreateUserAppDataPath(), "bwp.config");
-
- ReadProxyName();
-
- try
- {
- ReadProfileList();
-
-#if DEBUG
- var uri = new Uri("http://localhost/Host/?k=demo&s=localhost/service");
-
- var paramDic = LauncherUtils.ParseQuery(uri.Query);
- string v1, v2;
- paramDic.TryGetValue("k", out v1);
- paramDic.TryGetValue("s", out v2);
- SessionInformation.Login.Tenant = v1;
- SessionInformation.Connection.Servername = v2;
- if (ProfileList.Count > 0)
- ProfileList.Insert(0, new ConnectionProfile(v1, v2, SessionInformation.Login.Tenant));
- else
- ProfileList.Add(new ConnectionProfile(v1, v2, SessionInformation.Login.Tenant));
- SaveProfileListToFile();
-#else
- if (ApplicationDeployment.IsNetworkDeployed && ApplicationDeployment.CurrentDeployment.ActivationUri != null)
- {
- //Start über IE
- //MessageBox.Show(String.Format("Start über IE.\nActivationUri: {0}\nUpdateLocation: {1}", ApplicationDeployment.CurrentDeployment.ActivationUri, ApplicationDeployment.CurrentDeployment.UpdateLocation));
- ConnectionProfile p = GenerateProfileFromUri(ApplicationDeployment.CurrentDeployment.ActivationUri);
- if (!String.IsNullOrEmpty(p.Tenant) && !String.IsNullOrEmpty(p.Server))
- {
- ConnectionInformation.Tenant = p.Tenant;
-
- if (ProfileList.Count > 0)
- {
- selectedProfile = ProfileList.Find(ip => ip.Tenant == p.Tenant);
- }
- if (selectedProfile == null)
- {
- if (ProfileList.Count > 0)
- ProfileList.Insert(0, p);
- else
- ProfileList.Add(p);
- }
- else
- {
- ProfileList.Remove(selectedProfile);
- selectedProfile.Server = p.Server;
- ProfileList.Insert(0, selectedProfile);
- }
- SaveProfileListToFile();
- }
- else if (!String.IsNullOrEmpty(p.Tenant) && p.Tenant.ToLower() == "demo")
- {
- p.Server = "1";
- ProfileList.Add(p);
- }
-
- }
- else
- {
- //MessageBox.Show(String.Format("Start über Firefox oder über installiertes Desktop Icon.\nActivationUri: {0}\nUpdateLocation: {1}", ApplicationDeployment.CurrentDeployment.ActivationUri, ApplicationDeployment.CurrentDeployment.UpdateLocation));
-
- }
-#endif
- }
- catch (Exception)
- {
-
- }
-
- UpdateIpAddress();
-
- if (ProfileList.Count == 0 || String.IsNullOrEmpty(ProfileList[0].Tenant))
- ShowEnterTenantDialog();
-
- ConnectionProfile firstProfile = null;
- if (ProfileList.Count > 0)
- firstProfile = ProfileList[0];
- ProfileList.Sort((a, b) => a.Name.CompareTo(b.Name));
- profileSelectionComboBox.ItemsSource = ProfileList;
-
- if (ProfileList.Count > 0)
- {
-#if DEBUG
- selectedProfile = ReadSelectedProfile();
-#else
- selectedProfile = ReadSelectedProfile();
-#endif
- if (selectedProfile == null || !ProfileList.Contains(selectedProfile))
- {
- //selectedProfile = profileSelectionComboBox.SelectedItem as BeWoProfile;
- selectedProfile = firstProfile;
- }
- }
-
-
- //if (profileSelectionComboBox.SelectedItem == null)
- profileSelectionComboBox.SelectedItem = selectedProfile;
-
- TextBox_Username.Focus();
-
- if (selectedProfile != null && selectedProfile.Tenant == "demo")
- {
- TextBox_Username.Text = "demo";
- PasswordBox_Password.Password = "demo";
- }
-
- lblVersion.Content = LauncherApp.Version;
-
- Loaded += UserControl_Loaded;
-
- ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
-
- PinCertificate();
-
- ChangeServerAndTenant(profileSelectionComboBox.SelectedItem as ConnectionProfile);
-
- if (!String.IsNullOrEmpty(SessionInformation.Connection.ProxyName))
- {
- var webProxy = WebProxy.GetDefaultProxy();
- webProxy.UseDefaultCredentials = true;
- System.Net.WebRequest.DefaultWebProxy = new WebProxy(SessionInformation.Connection.ProxyName, true);
-
- if (String.IsNullOrEmpty(SessionInformation.Connection.ProxyUsername))
- {
- WebRequest.DefaultWebProxy.Credentials = CredentialCache.DefaultNetworkCredentials;
- }
- else
- {
- WebRequest.DefaultWebProxy.Credentials = new NetworkCredential(SessionInformation.Connection.ProxyUsername, SessionInformation.Connection.ProxyPassword);
- }
- }
- }
- private ConnectionProfile ReadSelectedProfile()
- {
- try
- {
- if (File.Exists(_ConfigFilePath))
- {
- using (var myFile = new StreamReader(_ConfigFilePath, Encoding.Default))
- {
- while (!myFile.EndOfStream)
- {
- var data = myFile.ReadLine();
-
- if (!String.IsNullOrEmpty(data))
- {
- if (data.Contains("selected"))
- {
- var pos = data.IndexOf("=");
- if (pos > 0)
- {
- var pData = data.Substring(pos + 1).Trim().Split('|');
- if (pData.Length >= 3)
- {
- if (!String.IsNullOrEmpty(pData[1]) && !String.IsNullOrEmpty(pData[2]))
- return new ConnectionProfile(pData[0], pData[1], pData[2]);
- }
- }
- }
- }
- }
- }
- }
- }
- catch (Exception e)
- {
-
- }
-
-
- return null;
- }
- private ConnectionProfile GenerateProfileFromUri(Uri uri)
- {
-
- var paramDic = LauncherUtils.ParseQuery(uri.Query);
- string v1, v2;
-
- paramDic.TryGetValue("k", out v1);
- paramDic.TryGetValue("s", out v2);
- //if (String.IsNullOrEmpty(v1))
- //{
- // v1 = "demo";
- //}
-
- //if (String.IsNullOrEmpty(v2))
- //{
- // v2 = "Ungültiger Server";
- // String uriStr = uri.ToString();
- // if (!String.IsNullOrEmpty(uriStr))
- // {
- // v2 = uriStr;
- // if (uriStr.IndexOf("://") >= 0)
- // v2 = uriStr.Substring(uriStr.IndexOf("://") + 3);
- // if (v2.ToLower().IndexOf("/bewo.application") > 0)
- // v2 = v2.Substring(0, v2.ToLower().IndexOf("/bewo.application"));
- // }
- //}
-
- return new ConnectionProfile(v1, v2, v1);
- }
- private void PinCertificate()
- {
- ServicePointManager.ServerCertificateValidationCallback = PinPublicKey;
- }
- private bool PinPublicKey(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslpolicyerrors)
- {
- try
- {
- if (certificate == null || chain == null)
- return false;
-
- bool chainContainsPk = false;
-
- foreach (var element in chain.ChainElements)
- {
- String pk = element.Certificate.GetPublicKeyString();
- if (pk == PUB_KEY_X3 || pk == PUB_KEY_R3 || pk == PUB_KEY_E1)
- {
- chainContainsPk = true;
- }
- }
-
- bool subjectAccepted = certificate.Subject.Trim().ToLower().EndsWith(".bewoplaner.de") ||
- certificate.Subject.Trim().ToLower().EndsWith(".ownchat.de");
- return chainContainsPk && subjectAccepted;
- }
- catch (Exception)
- {
- return false;
- }
- }
- protected virtual void OnPropertyChanged(string propertyName)
- {
- PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
- }
- private void ShowEnterTenantDialog()
- {
- ConnectionProfile p = null;
-
- var cancel = false;
- var tenant = String.Empty;
- while (p == null && !cancel)
- {
- var dlg = new EnterTenantDialog { Tenant = tenant };
- var result = dlg.ShowDialog();
- if (result.HasValue && result.Value)
- {
- tenant = dlg.Tenant;
- if (!String.IsNullOrWhiteSpace(tenant))
- {
- tenant = tenant.Trim();
- }
- var server = GetServerFromTenant(tenant);
- if (!String.IsNullOrEmpty(server))
- {
- p = new ConnectionProfile(tenant, server, tenant);
- if (ProfileList.Count > 0)
- ProfileList.Insert(0, p);
- else
- ProfileList.Add(p);
- SaveProfileListToFile();
- }
- else
- {
- MessageBox.Show("Unbekannte Kundennummer '" + tenant + "'", "BeWoPlaner");
- }
- }
- else
- {
- cancel = true;
- }
- }
- }
- private void UpdateIpAddress()
- {
- try
- {
- var adminUrl = GetAdminUrl();
- if (!String.IsNullOrEmpty(adminUrl))
- {
- using (var wc = new WebClient())
- {
- Uri path = new Uri(adminUrl);
-
- SessionInformation.Connection.IpAddress = Encoding.UTF8.GetString(wc.DownloadData(path));
- }
- }
- }
- catch (Exception)
- {
-
- SessionInformation.Connection.IpAddress = String.Empty;
- }
- }
- private string GetAdminUrl()
- {
- String address = String.Empty;
-
-#if DEBUG
- if (true)
- {
- address = "http://localhost/Host";
-
- //Uri uri = new Uri("http://app.beyondsoft.de/bewo.application");
- //hostAddress = String.Format("{0}://{1}", uri.Scheme, uri.Host);
-#else
- if (ApplicationDeployment.IsNetworkDeployed && ApplicationDeployment.CurrentDeployment.UpdateLocation != null)
- {
- Uri uri = ApplicationDeployment.CurrentDeployment.UpdateLocation;
- address = String.Format("{0}://{1}", uri.Scheme, uri.Host);
-#endif
-
- }
- if (String.IsNullOrEmpty(address))
- {
- return null;
- }
-
- return String.Format("{0}/{1}", address, "Admin.aspx");
- }
- private void PinEinblenden()
- {
- PINTextBox.Visibility = Visibility.Visible;
- lblPin.Visibility = Visibility.Visible;
-
- linkLine.Margin = new Thickness(linkLine.Margin.Left, linkLine.Margin.Top + 25, linkLine.Margin.Right, linkLine.Margin.Bottom);
- gridLogin.Height += 25;
-
- PINTextBox.Focus();
- }
- private bool IsNet45OrNewer()
- {
- // Class "ReflectionContext" exists from .NET 4.5 onwards.
- return Type.GetType("System.Reflection.ReflectionContext", false) != null;
- }
- private void ReadProxyName()
- {
- int counter = 0;
- string line;
- string[] datai = new string[3];
-
- try
- {
- var filePath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\proxy.dat";
- if (!File.Exists(filePath))
- {
- filePath = Path.Combine(LauncherUtils.GetAndCreateUserAppDataPath(), "proxy.dat");
- }
-
- var file = new System.IO.StreamReader(filePath);
- while ((line = file.ReadLine()) != null)
- {
- byte[] decbuff = Convert.FromBase64String(line);
- var x = System.Text.Encoding.UTF8.GetString(decbuff);
-
- datai[counter] = x;
- counter++;
- }
-
- file.Close();
-
- SessionInformation.Connection.ProxyName = datai[0];
- SessionInformation.Connection.ProxyUsername = datai[1];
- SessionInformation.Connection.ProxyPassword = datai[2];
-
- proxyTextBox.Text = SessionInformation.Connection.ProxyName;
-
- }
- catch (IOException)
- {
- //Fehlermeldung
- }
- }
- private void ReadProfileList()
- {
- try
- {
- if (File.Exists(_ProfilesFilePath))
- {
- var myFile = new StreamReader(_ProfilesFilePath, Encoding.Default);
-
- while (!myFile.EndOfStream)
- {
- var data = myFile.ReadLine().Split('|');
-
- if (data.Length >= 3)
- {
- if (!String.IsNullOrEmpty(data[1]) && !String.IsNullOrEmpty(data[2]))
- ProfileList.Add(new ConnectionProfile(data[0], data[1], data[2]));
- }
- }
- myFile.Close();
- }
- }
- catch (Exception)
- {
- }
- }
- private void SaveSelectedProfile(ConnectionProfile profile)
- {
- try
- {
- using (var sw = new StreamWriter(new FileStream(_ConfigFilePath, FileMode.Create), Encoding.UTF8))
- {
-#if DEBUG
- sw.WriteLine("selected={0}|{1}|{2}", profile.Name, profile.Server, profile.Tenant);
-
-#else
- if (profile.Tenant != "demo")
- {
- sw.WriteLine("selected={0}|{1}|{2}", profile.Name, profile.Server, profile.Tenant);
- }
-#endif
- }
- }
- catch (Exception)
- {
- //ignore read/write errors
- }
- }
- private void SaveProfileListToFile()
- {
- try
- {
- var sw = new StreamWriter(new FileStream(_ProfilesFilePath, FileMode.Create), Encoding.UTF8);
-
- foreach (var profile in ProfileList)
- {
- if (profile.Tenant != "demo")
- {
- if (!String.IsNullOrWhiteSpace(profile.Tenant))
- {
- profile.Tenant = profile.Tenant.Trim();
- }
- sw.WriteLine("{0}|{1}|{2}", profile.Name, profile.Server, profile.Tenant);
- }
- }
- sw.Flush();
- sw.Close();
-
- profileSelectionComboBox.ItemsSource = ProfileList;
- profileSelectionComboBox.Items.Refresh();
-
- // Workaround, um profileSelectionComboBox.SelectedItem zu aktualisieren
- if (profileSelectionComboBox.ItemsSource == null)
- return;
-
- //ChangeServerAndTenant(profileSelectionComboBox.SelectedItem as BeWoProfile);
- //int itemssourcecount = ((List) profileSelectionComboBox.ItemsSource).Count;
- //int si = profileSelectionComboBox.SelectedIndex;
-
- //profileSelectionComboBox.SelectedIndex = (si + 1) % itemssourcecount;
- //profileSelectionComboBox.SelectedIndex = itemssourcecount == 1 || si == -1 ? 0 : si;
- }
- catch (Exception)
- {
- //ignore read/write errors
- }
- }
- private void ChangeServerAndTenant(ConnectionProfile profile)
- {
- try
- {
- //button_login.IsEnabled = false;
-
- if (profile != null)
- {
- if (String.IsNullOrEmpty(profile.Server))
- {
- MessageBox.Show(
- String.Format("Das gewählte Profil '{0}' enthält einen ungültigen Servernamen.",
- profile.Name),
- "Ungültiges Profil", MessageBoxButton.OK, MessageBoxImage.Warning);
- return;
- }
- if (String.IsNullOrEmpty(profile.Tenant))
- {
- MessageBox.Show(
- String.Format("Das gewählte Profil '{0}' enthält eine ungültige Kundennummer.", profile.Name),
- "Ungültiges Profil", MessageBoxButton.OK, MessageBoxImage.Warning);
- return;
- }
-
- profile.Tenant = profile.Tenant.Trim();
-
- //if (ConnectionInformation.Tenant == "7635986435")
- //{
- // if (profile.Server != "3")
- // {
- // profile.Server = "3";
- // SaveProfileListToFile();
- // }
-
- //}
-
- var server = GetServerFromTenant(profile.Tenant);
- if (!String.IsNullOrEmpty(server) && server != profile.Server)
- {
- profile.Server = server;
- SaveProfileListToFile();
- }
-
- SessionInformation.Login.Tenant = profile.Tenant;
- SessionInformation.Connection.Servername = GetNumericServerName(profile.Server);
- SessionInformation.Connection.CoreServerAddress = profile.Server;
- SessionInformation.Connection.DownloadServerAddress = profile.Server;
-
-#if DEBUG
-
- SessionInformation.Connection.DownloadServerAddress = SessionInformation.GetDebugConnection(1);
- SessionInformation.Connection.CoreServerAddress = SessionInformation.GetDebugConnection(2);
-
- //CB ZUM TESTEN
- //ConnectionInformation.Tenant = "9876543210";
- //ConnectionInformation.ServerName = "4";
- //MainSession.ServerAddress = "app4.bewoplaner.de";
-#endif
- SaveSelectedProfile(profile);
- //button_login.IsEnabled = true;
- }
- }
-
- catch (UriFormatException)
- {
- MessageBox.Show(
- "Die angegebene Serveradresse ist nicht korrekt. Bitte bearbeiten Sie das verwendete Profil. Klicken Sie dazu auf 'Erweitert' und anschließend auf den Button 'Profile bearbeiten'",
- "Ungültiges Profil", MessageBoxButton.OK, MessageBoxImage.Warning);
- }
- }
- private string GetServerFromTenant(string tenant)
- {
- try
- {
- if (tenant == "demo")
- {
- return "app1.bewoplaner.de";
- }
- //Server URL über Kundennummer:
- //https://bewoplaner.beyondsoft.de/getserver.php?CustomerID=1234567890
-
- //Lizenzstatus über Kundennummer (Lizenzzahlen und aktivierte Module)
- //Nur Testdaten. Weiß gar nicht mehr so genau wofür das gut war…
- //https://bewoplaner.beyondsoft.de/getcontractstate.php?CustomerID=1234567890
-
- var url = string.Format(GETSERVER_URL, tenant);
- using (WebClient client = new WebClient())
- {
- //MessageBox.Show(hostAddress);
- byte[] response = client.UploadValues(url, "POST", new NameValueCollection());
-
- String server = System.Text.Encoding.ASCII.GetString(response);
-
- return server;
- }
- }
- catch (Exception)
- {
- //MessageBox.Show(String.Format("Fehler beim Prüfen der Kundennummer: {0}\n\n{1}", ex.Message, ex.StackTrace));
- return null;
- }
- }
- private string GetNumericServerName(string serverName)
- {
- if (!String.IsNullOrEmpty(serverName))
- {
- int snOut = 0;
- if (!Int32.TryParse(serverName, out snOut))
- {
- String nname = serverName.Replace("app", "");
- if (nname.IndexOf('.') > 0)
- {
- return nname.Substring(0, nname.IndexOf('.'));
- }
- }
- }
- return serverName;
- }
- private bool CheckStatusMessage(ConnectionProfile profile, string url)
- {
-#if DEBUG
-
- //String message = @"Sehr geehrte Kundin, sehr geehrter Kunde,
-
- // Ihr BeWoPlaner Nutzungszeitraum endet automatisch am 31.01.2020.
- // Bitte wenden Sie sich an den BeWoPlaner - Support, sofern Sie den Nutzungszeitraum verlängern möchten.
-
- // Vielen Dank.
- // Ihr BeWoPlaner-Team;1";
- //if (!String.IsNullOrWhiteSpace(message) && message.Trim().Length > 2)
- //{
- // String ende = message.Substring(message.Length - 2);
-
- // message = message.Replace("\\n", "\n");
- // message = message.Substring(0, message.Length - 2);
- // MessageDialog dlg = new MessageDialog();
-
- // if (message.Contains("<") && message.Contains(">"))
- // {
- // dlg.SetXaml(message);
- // }
- // else
- // {
- // dlg.Message = message;
- // }
-
- // dlg.Visibility = Visibility.Visible;
-
- // dlg.ShowDialog();
- // if (ende.EndsWith(";0"))
- // {
- // return false;
- // }
-
- //}
- return true;
-#else
- try
- {
- using (WebClient client = new WebClient())
- {
- //MessageBox.Show(hostAddress);
- byte[] response = client.UploadValues(url, "POST", new NameValueCollection());
-
- String message = System.Text.Encoding.UTF8.GetString(response);
-
- //zum testen:
- //using (var myFile = new StreamReader("C:\\temp\\testxaml.txt", Encoding.Default))
- //{
- // message = myFile.ReadToEnd();
- // myFile.Close();
- //}
-
- if (!String.IsNullOrWhiteSpace(message) && message.Trim().Length > 2)
- {
- String ende = message.Substring(message.Length - 2);
-
- message = message.Replace("\\n", "\n");
- message = message.Substring(0, message.Length - 2);
- MessageDialog dlg = new MessageDialog();
-
- if (message.Contains("<") && message.Contains(">"))
- {
- dlg.SetXaml(message);
- }
- else
- {
- dlg.Message = message;
- }
-
-
-
- dlg.ShowDialog();
- if (ende.EndsWith(";0"))
- {
- return false;
- }
-
- }
-
- }
- }
- catch (Exception ex)
- {
- //MessageBox.Show(String.Format("Fehler beim Prüfen der Kundennummer: {0}\n\n{1}", ex.Message, ex.StackTrace));
-
- }
-
- return true;
-#endif
- }
- private void Login()
- {
- try
- {
- //1. Versuch
- UserValidationResult result = TryLogin();
-
- //2. Versuch
- if (result == UserValidationResult.UnknownError)
- {
- LauncherServiceFacade.DoLauncherServiceAsync(op => op.ResetTenant(SessionInformation.Login.Tenant),
- delegate
- {
- result = TryLogin();
-
- if (result == UserValidationResult.UnknownError)
- {
- //3. Versuch
- LauncherServiceFacade.DoLauncherServiceAsync(op => op.ResetAllTenant(),
- delegate
- {
- result = TryLogin();
-
- if (result == UserValidationResult.UnknownError)
- {
- this.Dispatcher.BeginInvoke(DispatcherPriority.Normal, (Action)delegate
- {
- ViewController.EndWaiting();
- MessageBox.Show("Fehler beim Verbinden mit dem Server. Bitte überprüfen Sie Ihre Internetverbindung oder schreiben Sie eine E-Mail an den Support support@bewoplaner.de.", "Fehler bei der Anmeldung", MessageBoxButton.OK, MessageBoxImage.Exclamation);
- });
- }
- });
- }
- });
- }
-
- if (result == UserValidationResult.UserUnknown)
- {
- this.Dispatcher.BeginInvoke(DispatcherPriority.Normal, (Action)delegate
- {
- ViewController.EndWaiting();
- MessageBox.Show("Anmeldeinformationen nicht bekannt. Bitte überprüfen Sie den Benutzernamen und das Passwort!", "Fehler bei der Anmeldung", MessageBoxButton.OK, MessageBoxImage.Exclamation);
- });
- }
- if (result == UserValidationResult.TenantUnknown)
- {
- this.Dispatcher.BeginInvoke(DispatcherPriority.Normal, (Action)delegate
- {
- ViewController.EndWaiting();
- MessageBox.Show("Die Kundennummer '" + SessionInformation.Login.Tenant + "' ist ungültig.", "Fehler bei der Anmeldung", MessageBoxButton.OK, MessageBoxImage.Exclamation);
- });
- }
- String pin = SessionInformation.Login.Pin;
-
- if (!String.IsNullOrEmpty(SessionInformation.Login.Pin) && SessionInformation.Login.Pin.IndexOf('_') >= 0)
- {
- pin = SessionInformation.Login.Pin.Substring(0, SessionInformation.Login.Pin.IndexOf('_'));
- }
-
- if (result == UserValidationResult.IncorrectPin)
- {
- this.Dispatcher.BeginInvoke(DispatcherPriority.Normal, (Action)delegate
- {
- ViewController.EndWaiting();
- MessageBox.Show("Die Pin '" + pin + "' ist unbekannt!", "Fehler bei der Anmeldung", MessageBoxButton.OK, MessageBoxImage.Exclamation);
- });
- }
- if (result == UserValidationResult.PinAlreadyUsed)
- {
- this.Dispatcher.BeginInvoke(DispatcherPriority.Normal, (Action)delegate
- {
- ViewController.EndWaiting();
- MessageBox.Show("Die Pin '" + pin + "' wurde bereits verwendet!", "Fehler bei der Anmeldung", MessageBoxButton.OK, MessageBoxImage.Exclamation);
- });
- }
- if (result == UserValidationResult.PinExpired)
- {
- this.Dispatcher.BeginInvoke(DispatcherPriority.Normal, (Action)delegate
- {
- ViewController.EndWaiting();
- MessageBox.Show("Die Pin '" + pin + "' ist bereits abgelaufen!", "Fehler bei der Anmeldung", MessageBoxButton.OK, MessageBoxImage.Exclamation);
- });
- }
- if (result == UserValidationResult.PasswordExpired)
- {
- //this.Dispatch(delegate
- //{
- // grid_root.Children.Remove(lWaitLayer);
- // //MessageBox.Show("Das Passwort ist abgelaufen!", "Fehler bei der Anmeldung", MessageBoxButton.OK, MessageBoxImage.Exclamation);
- // //var pav = new PasswortAenderungsView();
- // //pav.ShowDialog();
- //});
- }
- // Wegen fehlerhaftem Profil, sonst wird lWaitLayer nicht entfernt und eine Korrektur des Profils ist unmöglich ohne den BeWoPlaner neuzustarten.
- if (result == UserValidationResult.UnknownError)
- {
- Thread.Sleep(2000);
- this.Dispatcher.BeginInvoke(DispatcherPriority.Normal, (Action)delegate { ViewController.EndWaiting(); });
- }
- }
- catch (Exception ex)
- {
- LauncherApp.ShowError(ex); //MessageBox.Show(ex.Message);
- }
- }
- private UserValidationResult TryLogin()
- {
- UserValidationResult? result = null;
-
- if (!string.IsNullOrEmpty(SessionInformation.Login.Username) && !string.IsNullOrEmpty(SessionInformation.Login.Password))
- {
- String version = "unbekannt";
- String clr = "unbekannt";
- var bewoVersion = LauncherApp.Version;
-
- try
- {
- version = Environment.OSVersion.VersionString;
- }
- catch (Exception e)
- {
- version = e.Message;
- }
-
- try
- {
- clr = Environment.Version.ToString();
- }
- catch (Exception e)
- {
- clr = e.Message;
- }
-
-
- SessionInformation.Login.TempUsername =
- $"{SessionInformation.Login.Username}" +
- $"//Version={version};CLRVersion={clr};BeWoVersion={bewoVersion};IsNet45OrNewer={isNet45OrNewer}";
- try
- {
- LauncherServiceFacade.DoLauncherServiceAsync(s =>
- {
- try
- {
- SessionInformation.Login.ClientId = "BeWoClient";
- var t = s.IsUserValid(SessionInformation.Login.TempUsername, SessionInformation.Login.Password, SessionInformation.Login.Pin, SessionInformation.Login.ClientId, true);
- return t;
- }
- catch (Exception e)
- {
- return UserValidationResult.UnknownError;
- }
- },
- r =>
- {
- result = r;
- Dispatcher.BeginInvoke(DispatcherPriority.Normal, (Action)delegate { LoginResult(r); });
- }, true);
- }
- catch (Exception e)
- {
- result = UserValidationResult.UnknownError;
- }
- }
- else
- {
- if (result == null)
- result = UserValidationResult.UserUnknown;
- }
-
- while (!result.HasValue)
- {
- Thread.Sleep(100);
- }
-
- return result.Value;
- }
- private void LoginResult(UserValidationResult result)
- {
- if (result == UserValidationResult.UserValid)
- {
- LoginSuccessful.Invoke(this, new EventArgs());
- }
- else if (result == UserValidationResult.PasswordExpired)
- {
- Dispatcher.BeginInvoke(DispatcherPriority.Normal, (Action)delegate
- {
- PopUpWindow window = null;
- PasswortAenderungsView view = new PasswortAenderungsView(window);
- window = new PopUpWindow(view);
-
- window.ShowDialog();
-
- if (!window.Abbruch)
- {
- LoginSuccessful.Invoke(this, new EventArgs());
- }
- });
- }
- }
- public void ClickLogin() => button_login_Click(this, new RoutedEventArgs());
- }
-}
diff --git a/BeWoLauncher/View/Windows/PopUpWindow.xaml b/BeWoLauncher/View/Windows/PopUpWindow.xaml
deleted file mode 100644
index 988fefb83..000000000
--- a/BeWoLauncher/View/Windows/PopUpWindow.xaml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
diff --git a/BeWoLauncher/View/Windows/PopUpWindow.xaml.cs b/BeWoLauncher/View/Windows/PopUpWindow.xaml.cs
deleted file mode 100644
index e96b42c69..000000000
--- a/BeWoLauncher/View/Windows/PopUpWindow.xaml.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-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.Shapes;
-
-namespace BeWoLauncher.WindowImp
-{
- ///
- /// Interaktionslogik für PopUpWindow.xaml
- ///
- public partial class PopUpWindow : Window
- {
- public bool Abbruch { get; set; }
-
- public PopUpWindow()
- {
- InitializeComponent();
-
- Abbruch = false;
-
- CommandBindings.Add(new CommandBinding(ApplicationCommands.Close, (s, e) =>
- {
- Abbruch = true;
-
- Close();
- }));
- }
-
- public PopUpWindow(UserControl content) : this()
- {
- SetContent(content);
- }
-
- public void SetContent(UserControl usa)
- {
- root.Children.Clear();
- root.Children.Add(usa);
- }
- }
-}
diff --git a/DownloadServer/DownloadBeWoService.svc b/DownloadServer/DownloadBeWoService.svc
deleted file mode 100644
index 6e1051749..000000000
--- a/DownloadServer/DownloadBeWoService.svc
+++ /dev/null
@@ -1 +0,0 @@
-<%@ ServiceHost Language="C#" Debug="true" Service="BeWo.Service.ServiceImplementations.DownloadBeWoServiceImp" %>
\ No newline at end of file
diff --git a/DownloadServer/DownloadServer.csproj b/DownloadServer/DownloadServer.csproj
deleted file mode 100644
index a40ffbf81..000000000
--- a/DownloadServer/DownloadServer.csproj
+++ /dev/null
@@ -1,151 +0,0 @@
-
-
-
-
-
- Debug
- AnyCPU
-
-
- 2.0
- {18019E8C-C6DA-4B1B-9C2B-908BC14911AB}
- {349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}
- Library
- Properties
- DownloadServer
- DownloadServer
- v4.7.2
- true
-
-
-
-
-
-
-
-
-
-
-
-
- true
- full
- false
- bin\
- DEBUG;TRACE
- prompt
- 4
-
-
- true
- pdbonly
- true
- bin\
- TRACE
- prompt
- 4
-
-
-
-
- False
- ..\Lib\NHibernate.dll
-
-
- ..\Lib\NHibernate.ByteCode.Castle.dll
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll
-
-
-
-
-
-
- Designer
-
-
-
-
-
-
-
- Designer
-
-
- Designer
-
-
- Web.config
-
-
- Web.config
-
-
-
-
- {094331c3-ecee-4c89-bbfd-4c9ded89f0ef}
- Service
-
-
- {efe05c79-e0dd-4311-8b90-a8da7ebdf36f}
- SharedLauncher
-
-
-
-
-
-
-
- 10.0
- $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
-
-
-
-
-
-
-
-
- True
- True
- 2852
- /
- http://localhost:3778/
- False
- False
-
-
- False
-
-
-
-
-
-
\ No newline at end of file
diff --git a/DownloadServer/DownloadServer.csproj.user b/DownloadServer/DownloadServer.csproj.user
deleted file mode 100644
index eac4167e7..000000000
--- a/DownloadServer/DownloadServer.csproj.user
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-
- true
-
-
-
-
-
-
-
- Debug|Any CPU
-
-
-
-
-
-
-
- NoStartPage
- True
- False
- False
- False
-
-
-
-
-
-
-
-
- False
- True
-
-
-
-
-
\ No newline at end of file
diff --git a/DownloadServer/DownloadServerServiceReferences.bat b/DownloadServer/DownloadServerServiceReferences.bat
deleted file mode 100644
index 2d8fa49ad..000000000
--- a/DownloadServer/DownloadServerServiceReferences.bat
+++ /dev/null
@@ -1 +0,0 @@
-svcutil.exe /noConfig /edb /n:*,DownloadServer.ServiceProxy /out:ServiceProxy\DownloadGenerated.cs /ct:System.Collections.Generic.List`1 /r:..\SharedLauncher\bin\Debug\BS.SharedLauncher.dll http://localhost:3777/Host/LauncherService.svc?wsdl
\ No newline at end of file
diff --git a/DownloadServer/Multitenancy/Symbol Edit.png b/DownloadServer/Multitenancy/Symbol Edit.png
deleted file mode 100644
index efed87db3..000000000
Binary files a/DownloadServer/Multitenancy/Symbol Edit.png and /dev/null differ
diff --git a/DownloadServer/Multitenancy/debug.config b/DownloadServer/Multitenancy/debug.config
deleted file mode 100644
index 181d24a65..000000000
--- a/DownloadServer/Multitenancy/debug.config
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
-
-
-
-
- NHibernate.Connection.DriverConnectionProvider
- NHibernate.Driver.SqlClientDriver
- Password=test;Persist Security Info=True;User ID=BeWoUser;Initial Catalog=BeWo;Data Source=SERVER01
- NHibernate.Dialect.MsSql2005Dialect
-
-
-
-
-
-
diff --git a/DownloadServer/Multitenancy/debugMsSQL.config b/DownloadServer/Multitenancy/debugMsSQL.config
deleted file mode 100644
index 53bbc56a5..000000000
--- a/DownloadServer/Multitenancy/debugMsSQL.config
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
-
-
-
-
- NHibernate.Connection.DriverConnectionProvider
- NHibernate.Driver.SqlClientDriver
- Password=test;Persist Security Info=True;User ID=BeWoUser;Initial Catalog=BeWo;Data Source=SERVER01
- NHibernate.Dialect.MsSql2005Dialect
-
-
-
-
-
diff --git a/DownloadServer/Multitenancy/debugMySQL.config b/DownloadServer/Multitenancy/debugMySQL.config
deleted file mode 100644
index 10d1a0ee7..000000000
--- a/DownloadServer/Multitenancy/debugMySQL.config
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
-
-
-
-
- NHibernate.Connection.DriverConnectionProvider
- NHibernate.Driver.MySqlDataDriver
- Server=localhost;Password=test;User ID=BeWoUser;Initial Catalog=bewodemo
- NHibernate.Dialect.MySQLDialect
-
-
-
-
-
diff --git a/DownloadServer/Multitenancy/demo.config b/DownloadServer/Multitenancy/demo.config
deleted file mode 100644
index 7c59063be..000000000
--- a/DownloadServer/Multitenancy/demo.config
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
- NHibernate.Connection.DriverConnectionProvider
-
-
- NHibernate.Driver.MySqlDataDriver
-
-
-
-
- Server=localhost;Password=bewobewo;User ID=root; Initial Catalog=4000000000; Port=2206;
-
-
-
- NHibernate.Dialect.MySQLDialect
-
-
- NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle
-
- none
- true
- true
-
-
-
-
-
\ No newline at end of file
diff --git a/DownloadServer/Properties/AssemblyInfo.cs b/DownloadServer/Properties/AssemblyInfo.cs
deleted file mode 100644
index 8b1c0ddbc..000000000
--- a/DownloadServer/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// Allgemeine Informationen über eine Assembly werden über die folgenden
-// Attribute gesteuert. Ändern Sie diese Attributwerte, um die
-// Assemblyinformationen zu ändern.
-[assembly: AssemblyTitle("LauncherHost")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("LauncherHost")]
-[assembly: AssemblyCopyright("Copyright © 2021")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Durch Festlegen von ComVisible auf "false" werden die Typen in dieser Assembly unsichtbar
-// für COM-Komponenten. Wenn Sie auf einen Typ in dieser Assembly von
-// COM aus zugreifen müssen, legen Sie das ComVisible-Attribut für diesen Typ auf "true" fest.
-[assembly: ComVisible(false)]
-
-// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird.
-[assembly: Guid("18019e8c-c6da-4b1b-9c2b-908bc14911ab")]
-
-// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
-//
-// Hauptversion
-// Nebenversion
-// Buildnummer
-// Revision
-//
-// Sie können alle Werte angeben oder die standardmäßigen Revisions- und Buildnummern
-// übernehmen, indem Sie "*" wie folgt verwenden:
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/DownloadServer/Web.Debug.config b/DownloadServer/Web.Debug.config
deleted file mode 100644
index f01fcc5c0..000000000
--- a/DownloadServer/Web.Debug.config
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/DownloadServer/Web.Release.config b/DownloadServer/Web.Release.config
deleted file mode 100644
index 86c687b22..000000000
--- a/DownloadServer/Web.Release.config
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/DownloadServer/Web.config b/DownloadServer/Web.config
deleted file mode 100644
index eb544ad15..000000000
--- a/DownloadServer/Web.config
+++ /dev/null
@@ -1,156 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/DownloadServer/packages.config b/DownloadServer/packages.config
deleted file mode 100644
index ce84a40b1..000000000
--- a/DownloadServer/packages.config
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file