コード例 #1
0
        public AddToChatForm(ChatUser user, IChatDAL dal)
        {
            InitializeComponent();

            this._dal = dal;
            this.curUser = user;
        }
コード例 #2
0
        public LeaveFromChatForm(ChatUser user, IChatDAL dal)
        {
            InitializeComponent();

            curUser = user;
            this._dal = dal;
        }
コード例 #3
0
        public MainWindow()
        {
            InitializeComponent();

            this._dal = new ChatDBmanager();

            chatUpdateTimer.Interval = 2000;
            chatUpdateTimer.Tick += chatUpdateTimer_Tick;

            this.tcb = TimerCllb;
            this.updDel = ChatUpdate;
        }
コード例 #4
0
ファイル: HistoryForm.cs プロジェクト: daviprish1/Gnom-O-Chat
        public HistoryForm(MainWindow parent, IChatDAL dal, HistoryFormStatus status)
        {
            InitializeComponent();

            this.status = status;
            this._dal = dal;
            this._parent = parent;

            this.cbChats.DataSource = this._dal.GetListOfChats();
            this.cbUsers.DataSource = this._dal.GetListOfUsers();

            if(status == HistoryFormStatus.LoginHistory)
            {
                this.checkbForAllChats.Enabled = false;
            }
        }
コード例 #5
0
ファイル: LogRegForm.cs プロジェクト: daviprish1/Gnom-O-Chat
 public LogRegForm(MainWindow parent, IChatDAL dal)
 {
     InitializeComponent();
     this._parent = parent;
     this._dal = dal;
 }
コード例 #6
0
ファイル: ChatHub.cs プロジェクト: cairnswm/ChatApp-SignalR
        private Dictionary <string, string> usersContext = new Dictionary <string, string>(); // Store sessions indexed by Context [ Context, Username]

        public ChatHub(IUserDAL userDAL, IChatDAL chatDAL)
        {
            userData = userDAL;
            chatData = chatDAL;
        }