示例#1
0
        public AutoriseForm()
        {
            InitializeComponent();

            fileHandler = new FileHandler();
            users = fileHandler.openUsers();
        }
示例#2
0
        //Инициализация
        public MainForm(User currentUser, ref List<User> users, UserMgr userManager, FileHandler fileHandler)
        {
            InitializeComponent();

            this.currentUser = currentUser;
            this.users = users;
            this.userManager = userManager;
            this.fileHandler = fileHandler;

            users = fileHandler.openUsers();
            tasks = fileHandler.openTasks();
            projects = fileHandler.openProjects();

            projectManager = new ProjectMgr();

            //это потом удалить (тест открытия формы)
            //--------------------------------------------------------------
            //projectManager.createProject("test project", ref projects);//|
            //openTaskForm(projects[0]);                                 //|
            //--------------------------------------------------------------
        }