예제 #1
0
 public AddMembersWindow(int chatroomId)
 {
     InitializeComponent();
     this.users      = new UsersAccess();
     this.messenger  = new MessengerAccess();
     this.chatroomId = chatroomId;
     GetAllUsers();
 }
예제 #2
0
        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();
        }
예제 #3
0
 public CreateChatroomWindow(User user)
 {
     InitializeComponent();
     this.messenger = new MessengerAccess();
     this.user      = user;
 }