public ActionResult Projects() { ProjectListManager projects = DataManager.getMyProjectListManager(); ViewBag.Title = "Admin Projects"; return(View(projects)); }
public ActionResult Projects() { ViewBag.Title = "Projects"; ProjectListManager projectManager = DataManager.getMyProjectListManager(); return(View(projectManager)); }
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); } }
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); } }
public MyProjectController() { ProjectListManager = new ProjectListManager(); StudentProjectManager = new StudentProjectManager(); MyProjectManager = new MyProjectManager(); }
public HomeController(ProjectListManager projectListManager) => ProjectListManager = projectListManager;
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); } }
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); }
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; } }
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 + ")"; }
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(); }
public ProjectRequestController() { ProjectRequestManager = new ProjectRequestManager(); projectListManager = new ProjectListManager(); MyProjectManager = new MyProjectManager(); }
public ProjectListController() { ProjectListManager = new ProjectListManager(); }