Ejemplo n.º 1
0
        public AddPayroll(DAL.UserModel user, string Conn)
        {
            InitializeComponent();

            if (string.IsNullOrEmpty(Conn))
            {
                throw new ArgumentNullException("connection");
            }
            connection = Conn;

            de    = new DataEntry(connection);
            db    = new SBPayrollDBEntities(connection);
            rep   = new Repository(connection);
            _User = user;
        }
Ejemplo n.º 2
0
        public Payrolls(MainForm f, string Conn)
        {
            InitializeComponent();

            if (string.IsNullOrEmpty(Conn))
            {
                throw new ArgumentNullException("connection");
            }
            connection = Conn;

            de  = new DataEntry(connection);
            db  = new SBPayrollDBEntities(connection);
            rep = new Repository(connection);

            MainForm = f;
            user     = f.LoggedInUser;
        }