public EditClientDialog(MainWindow mainWindow) {
            InitializeComponent();
            Owner = mainWindow;
            main = mainWindow;

            populateFields();
        }
        internal ManagerWindow(ClientList Clients, MainWindow mainWindow) {
            InitializeComponent();

            this.Clients = Clients;
            this.mainWindow = mainWindow;
          
            Clients.Sort();
            ClientsListView.ItemsSource = Clients;
            this.Owner = mainWindow;
        }
        public ChangePasswordDialog(MainWindow mainWin) {
            InitializeComponent();

            this.mainWin = mainWin; 
        }
        private int    selectedLevel;// = 1;

        public AddTimeDialog(MainWindow mainWindow) {
            InitializeComponent();
            Owner = mainWindow;
            main = mainWindow;
        }
 public AddClientDialog(MainWindow mainWindow) {
     InitializeComponent();
     Owner = mainWindow;
     main = mainWindow;
     firstNameTextBox.Focus();
 }
 public PasswordDialog(MainWindow mainWindow) {
     InitializeComponent();
     this.mainWindow = mainWindow;
     passwordBox.Focus();
 }