public MainWindow()
        {
            InitializeComponent();

            var con = new AMTANGEE.Custom.ConnectionForm(true);

            if (con.ShowDialog() != System.Windows.Forms.DialogResult.OK)
            {
                System.Diagnostics.Process.GetCurrentProcess().Kill();
            }

            try
            {
                AMTANGEE.DB.Open(con.ConnectionString);
            }
            catch (Exception)
            {
                System.Windows.Forms.MessageBox.Show(
                    "Fehler beim Verbinden!\r\nSiehe Log für mehr Informationen.",
                    "SQL Fehler",
                    System.Windows.Forms.MessageBoxButtons.OK,
                    System.Windows.Forms.MessageBoxIcon.Error);
                System.Diagnostics.Process.GetCurrentProcess().Kill();
            }


            AMTANGEE.DB.Open();

            IcCopyFrom.SetReplications(ReplicationEntry.GetEntrys());
            IcTransferTo.SetReplications(ReplicationEntry.GetEntrys());
        }
        public MainWindow()
        {
            InitializeComponent();

            var con = new AMTANGEE.Custom.ConnectionForm(true);

            if (con.ShowDialog() != System.Windows.Forms.DialogResult.OK)
            {
                System.Diagnostics.Process.GetCurrentProcess().Kill();
            }

            try
            {
                AMTANGEE.DB.Open(con.ConnectionString);
            }
            catch (Exception)
            {
                System.Windows.Forms.MessageBox.Show(
                    "Fehler beim Verbinden!\r\nSiehe Log für mehr Informationen.",
                    "SQL Fehler",
                    System.Windows.Forms.MessageBoxButtons.OK,
                    System.Windows.Forms.MessageBoxIcon.Error);
                System.Diagnostics.Process.GetCurrentProcess().Kill();
            }

            var users = new AMTANGEE.SDK.Users.Users(AMTANGEE.SDK.Global.OwnLocation, true, false, true);

            CbUser.ItemsSource = users;

            UsersGroupsObjects = new ObservableCollection <UserGroupObject>();

            foreach (var group in new AMTANGEE.SDK.Users.Groups())
            {
                UsersGroupsObjects.Add(new UserGroupObject()
                {
                    IsUser      = false,
                    GUID        = group.Guid,
                    DisplayName = group.Name
                });
            }
            foreach (var user in users)
            {
                UsersGroupsObjects.Add(new UserGroupObject()
                {
                    IsUser      = true,
                    GUID        = user.Guid,
                    DisplayName = user.DisplayName
                });
            }
        }