/// <summary> /// Click to add new user /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void newUser_Click(object sender, RoutedEventArgs e) { addNewUser newUser = new addNewUser(); if(newUser.ShowDialog() == true) { FolderMenu folderMenu = new FolderMenu(User.users[User.users.Count-1],this); leftMenu.Children.Add(folderMenu); MailDatabaseHandler mdh = new MailDatabaseHandler(User.users[User.users.Count-1], true); mdhList.Add(mdh); } }
/// <summary> /// Click to add new user /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void newUser_Click(object sender, RoutedEventArgs e) { addNewUser newUser = new addNewUser(); if (newUser.ShowDialog() == true) { FolderMenu folderMenu = new FolderMenu(User.users[User.users.Count - 1], this); leftMenu.Children.Add(folderMenu); MailDatabaseHandler mdh = new MailDatabaseHandler(User.users[User.users.Count - 1], true); mdhList.Add(mdh); } }