public ActionResult Projects()
        {
            ProjectListManager projects = DataManager.getMyProjectListManager();

            ViewBag.Title = "Admin Projects";

            return(View(projects));
        }
Exemple #2
0
        public ActionResult Projects()
        {
            ViewBag.Title = "Projects";

            ProjectListManager projectManager = DataManager.getMyProjectListManager();


            return(View(projectManager));
        }
Exemple #3
0
 private void biMMExportToXML_Click(object sender, EventArgs e)
 {
     SaveFileDialog save = new SaveFileDialog();
     save.DefaultExt = ".xml";
     save.Filter = "XML | *.xml";
     save.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
     if (save.ShowDialog() == DialogResult.OK) {
         ProjectListManager[] managers = new ProjectListManager[3];
         XMLExport.SaveToXML(save.FileName, Active, Waiting, Archive);
     }
 }
Exemple #4
0
 private void biMMExportToExcel_Click(object sender, EventArgs e)
 {
     SaveFileDialog save = new SaveFileDialog();
     save.DefaultExt = ".txt";
     save.Filter = "Text (tab-delimited) | *.txt";
     save.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
     if (save.ShowDialog() == DialogResult.OK) {
         ProjectListManager[] managers = new ProjectListManager[3];
         TXTExport.SaveToTXT(save.FileName, Active, Waiting, Archive);
     }
 }
Exemple #5
0
 public MyProjectController()
 {
     ProjectListManager    = new ProjectListManager();
     StudentProjectManager = new StudentProjectManager();
     MyProjectManager      = new MyProjectManager();
 }
Exemple #6
0
 public HomeController(ProjectListManager projectListManager) => ProjectListManager = projectListManager;
Exemple #7
0
 private void NewProject(DataGridView dgv, ProjectListManager manager)
 {
     NewProjectForm frm = new NewProjectForm();
     if (frm.ShowDialog() == DialogResult.OK) {
         Project p = new Project(frm.ProjectName);
         p.Notes.Add(new Note("Created", DateTime.Now));
         manager.Add(p);
         LoadDataViewGrid(dgv, manager);
         SelectRow(dgv, p.Name);
     }
 }
Exemple #8
0
 private void MoveProject(string ProjectName, DataGridView fromdgv, ProjectListManager from, 
     DataGridView todgv, ProjectListManager to)
 {
     Project mover = from.Find(ProjectName);
     from.Remove(mover);
     to.Add(mover);
     LoadDataViewGrid(fromdgv, from);
     LoadDataViewGrid(todgv, to);
 }
Exemple #9
0
 private void LoadDataViewGrid(DataGridView dgv, ProjectListManager manager)
 {
     if (dgv == null || manager == null) return;
     string target = "";
     if (dgv.SelectedRows.Count > 0) {
         target = dgv.SelectedRows[0].Cells[0].Value.ToString();
     }
     dgv.Rows.Clear();
     foreach (Project p in manager.ProjectList)
         dgv.Rows.Add(new object[] { p.Name, p.GetLastNote() });
     if (target.CompareTo("") != 0) {
         foreach (DataGridViewRow row in dgv.Rows)
             if (row.Cells[0].Value.ToString().CompareTo(target) == 0) row.Selected = true;
     }
 }
Exemple #10
0
 private void frmMain_Load(object sender, EventArgs e)
 {
     Active = new ProjectListManager("Active", ActiveFile);
     Waiting = new ProjectListManager("Waiting", WaitingFile);
     Archive = new ProjectListManager("Archive", ArchiveFile);
     dgv2plm = new Dictionary<DataGridView, ProjectListManager>();
     dgv2plm.Add(dgvActive, Active);
     dgv2plm.Add(dgvWaiting, Waiting);
     dgv2plm.Add(dgvArchive, Archive);
     LoadDataViewGrid(dgvActive, Active);
     LoadDataViewGrid(dgvWaiting, Waiting);
     LoadDataViewGrid(dgvArchive, Archive);
     this.Text += " (v" + Application.ProductVersion + ")";
 }
Exemple #11
0
 public HomeController(ApplicationUserManager userManager,
                       IUserRepository userRepository,
                       ProjectListManager projectListManager) : base(userRepository)
 {
     ProjectListManager = projectListManager;
 }
 public LogInController()
 {
     UserAuthManager    = new UserAuthManager();
     ProjectListManager = new ProjectListManager();
 }
 public ReportController()
 {
     ProjectListManager  = new ProjectListManager();
     ProjectGroupManager = new ProjectGroupManager();
     ReportManager       = new ReportManager();
 }
Exemple #14
0
 public ProjectRequestController()
 {
     ProjectRequestManager = new ProjectRequestManager();
     projectListManager    = new ProjectListManager();
     MyProjectManager      = new MyProjectManager();
 }
Exemple #15
0
 public ProjectListController()
 {
     ProjectListManager = new ProjectListManager();
 }