public AddEditDepartment(bool newDept)
        {
            InitializeComponent();

            this.newDept  = newDept;
            sqlProcedures = new SqlProcedures();
        }
        public Tasks()
        {
            InitializeComponent();

            sqlProcedures = new SqlProcedures();

            lvColumnSorter = new ListViewColumnSorter();
            this.lvTasks.ListViewItemSorter = lvColumnSorter;
            this.lvTasks.SetSortIcon(0, SortOrder.Ascending);
        }
Beispiel #3
0
        public AddEditEmployee(bool newEmp)
        {
            InitializeComponent();

            sqlProcedures = new SqlProcedures();
            dbConnection  = new DBConnection();

            this.newEmp = newEmp;
            FillDepartmentComboBox();
        }
        public AddEditTask(bool newTask)
        {
            InitializeComponent();

            sqlProcedures = new SqlProcedures();
            dbConnection  = new DBConnection();

            this.newTask = newTask;

            FillProjectComboBox();
            FillAssignedToComboBox();
            FillPriorityComboBox();
            FillStatusComboBox();
        }
        public AddEditProject(bool newProj)
        {
            InitializeComponent();

            sqlProcedures = new SqlProcedures();
            dbConnection  = new DBConnection();

            this.newProj = newProj;

            if (newProj == true)
            {
                tabProject.Controls.Remove(tabProjectTasks);
            }

            FillOwnerComboBox();
            FillPriorityComboBox();
            FillStatusComboBox();

            lvColumnSorter = new ListViewColumnSorter();
            this.lvTasks.ListViewItemSorter = lvColumnSorter;
            this.lvTasks.SetSortIcon(0, SortOrder.Ascending);
        }