Beispiel #1
0
        public frmNewEntry(string employeeId)
        {
            InitializeComponent();

            this.employeeId = employeeId;

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

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

            dtUsers = new DataTable("Employees");
        }
        public frmTaskDetails(DataRow drTask)
        {
            InitializeComponent();

            this.drTask = drTask;

            dbFunctions = new DatabaseFunctions(Properties.Settings.Default.timesheetConnectionString);
        }
        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;
        }
Beispiel #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;
        }
        /// <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;
        }
        public frmClientDetails()
        {
            InitializeComponent();

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