public AddMembersWindow(int chatroomId) { InitializeComponent(); this.users = new UsersAccess(); this.messenger = new MessengerAccess(); this.chatroomId = chatroomId; GetAllUsers(); }
public MainWindow() { InitializeComponent(); AuthenticationDialogWindow authenticationDialog = new AuthenticationDialogWindow(); authenticationDialog.ShowDialog(); this.user = authenticationDialog.User; if (this.user == null) { Environment.Exit(0); } this.messenger = new MessengerAccess(); this.users = new UsersAccess(); GenerateAllChatrooms(); this.chatHub = new ChatHub(); }
public CreateChatroomWindow(User user) { InitializeComponent(); this.messenger = new MessengerAccess(); this.user = user; }