Esempio n. 1
0
        public frmNewEntry(string employeeId)
        {
            InitializeComponent();

            this.employeeId = employeeId;

            dbFunctions = new DatabaseFunctions(Properties.Settings.Default.timesheetConnectionString);
        }
Esempio n. 2
0
        public frmLogin()
        {
            InitializeComponent();

            dbFunctions = new DatabaseFunctions(Properties.Settings.Default.timesheetConnectionString);

            dtUsers = new DataTable("Employees");
        }
Esempio n. 3
0
        public frmTaskDetails(DataRow drTask)
        {
            InitializeComponent();

            this.drTask = drTask;

            dbFunctions = new DatabaseFunctions(Properties.Settings.Default.timesheetConnectionString);
        }
Esempio n. 4
0
        public frmTimesheet(DataRow drEmployee)
        {
            InitializeComponent();

            dbFunctions = new DatabaseFunctions(Properties.Settings.Default.timesheetConnectionString);

            this.drEmployee = drEmployee;
            employeeType = drEmployee["EmployeeType"].ToString();
        }
        /// <summary>
        /// Initializes the form with the values from the provided datarow.
        /// </summary>
        /// <param name="drEmployee">A datarow containing valid employee information.</param>
        public frmEmployeeDetails(DataRow drEmployee)
        {
            InitializeComponent();

            dbFunctions = new DatabaseFunctions(Properties.Settings.Default.timesheetConnectionString);

            this.drEmployee = drEmployee;
            employeeExists = true;
        }
        /// <summary>
        /// Initializes the form with all fields empty.
        /// </summary>
        public frmEmployeeDetails()
        {
            InitializeComponent();

            dbFunctions = new DatabaseFunctions(Properties.Settings.Default.timesheetConnectionString);

            drEmployee = null;
            employeeExists = false;
        }
        /// <summary>
        /// Initializes the form with the values from the provided datarow.
        /// </summary>
        /// <param name="drProject">A datarow containing valid project information.</param>
        public frmProjectDetails(DataRow drProject)
        {
            InitializeComponent();

            dbFunctions = new DatabaseFunctions(Properties.Settings.Default.timesheetConnectionString);

            this.drProject = drProject;
            projectExists = true;
        }
Esempio n. 8
0
        public frmProjects()
        {
            InitializeComponent();

            dbFunctions = new DatabaseFunctions(Properties.Settings.Default.timesheetConnectionString);

            dtProjects = new DataTable("Projects");
            dtClients = new DataTable("Clients");
            dtTasks = new DataTable("Tasks");
        }
        public frmSelectEmployee(DataRow drProject)
        {
            InitializeComponent();

            dtEmployees = new DataTable("Employees");

            dbFunctions = new DatabaseFunctions(Properties.Settings.Default.timesheetConnectionString);

            this.drProject = drProject;
        }
Esempio n. 10
0
        /// <summary>
        /// Initializes the form with all fields empty.
        /// </summary>
        public frmProjectDetails()
        {
            InitializeComponent();

            dbFunctions = new DatabaseFunctions(Properties.Settings.Default.timesheetConnectionString);

            dtProjectEmployees = new DataTable("ProjectEmployees");

            drProject = null;
            projectExists = false;
        }
Esempio n. 11
0
        public frmClientDetails()
        {
            InitializeComponent();

            dbFunctions = new DatabaseFunctions(Properties.Settings.Default.timesheetConnectionString);
        }