public AddToChatForm(ChatUser user, IChatDAL dal) { InitializeComponent(); this._dal = dal; this.curUser = user; }
public LeaveFromChatForm(ChatUser user, IChatDAL dal) { InitializeComponent(); curUser = user; this._dal = dal; }
public MainWindow() { InitializeComponent(); this._dal = new ChatDBmanager(); chatUpdateTimer.Interval = 2000; chatUpdateTimer.Tick += chatUpdateTimer_Tick; this.tcb = TimerCllb; this.updDel = ChatUpdate; }
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; } }
public LogRegForm(MainWindow parent, IChatDAL dal) { InitializeComponent(); this._parent = parent; this._dal = dal; }
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; }