Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
 public LogRegForm(MainWindow parent, IChatDAL dal)
 {
     InitializeComponent();
     this._parent = parent;
     this._dal = dal;
 }