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