private void MenuItemClientLogin_Click(object sender, RoutedEventArgs e)
        {
            if (LoggedInEmp != null)
            {
                ClientInsertPassword clientPassword = new ClientInsertPassword(null);
                TboxAccountDetails.Foreground = Brushes.Gray;
                clientPassword.Owner          = this;
                clientPassword.Left           = this.Left + 247;
                clientPassword.Top            = this.Top;
                clientPassword.Topmost        = true;

                clientPassword.ShowDialog();
            }
        }
Ejemplo n.º 2
0
        private void BtnLogin_Click(object sender, RoutedEventArgs e)
        {
            if (LvUser.SelectedIndex == -1 || LvUser.SelectedItems.Count > 1)
            {
                MessageBox.Show("Please select one user!");
                return;
            }
            this.Topmost = false;
            User user = ((Profile)LvUser.SelectedItem).User;
            ClientInsertPassword clientInsertPassword = new ClientInsertPassword(user);

            clientInsertPassword.Owner = this;
            clientInsertPassword.ShowDialog();
            if (clientInsertPassword.DialogResult == true)
            {
                MainWindow.LogedInClient = user;
                DialogResult             = true;
            }
        }