private void groupAssignmentToolStripMenuItem_Click(object sender, EventArgs e) { if (pjt == null) return; AddGroup F = new AddGroup(pjt); F.ShowDialog(); pjt = F.pjt; pjt.Save(); F.Dispose(); }
public AddGroup(Project J) { InitializeComponent(); pjt = J; foreach (AnimalType A in pjt.Animals) { AnimalList.Items.Add(A.ID); } UpdateGroupList(); AnimalList.SelectedIndex = 0; }
public AddDate(Project J) { InitializeComponent(); pjt = J; string[] Ans = pjt.Get_Animals(); foreach (string A in Ans) { AnimalBox.Items.Add(A); } AnimalBox.SelectedIndex = 0; }
public Calendar(Project P) { InitializeComponent(); D = DateTime.Now; B = new Bitmap(panel1.Width,panel1.Height); g = Graphics.FromImage(B); panel1.BackgroundImage = B; DW = panel1.Width / 7; DaysShown = panel1.Height / DW; N = DateTime.Now; N = N.AddDays(-1 * (int)N.DayOfWeek); pjt = P; string[] A = pjt.Get_Animals(); for (int i = 0; i < A.Length; i++) { AnimalSel.Items.Add(A[i]); } AnimalSel.SelectedIndex = 0; }
public Exporter(Project p) { InitializeComponent(); pjt = p; }
private void importantDateToolStripMenuItem_Click(object sender, EventArgs e) { if (pjt == null) return; AddDate F = new AddDate(pjt); F.ShowDialog(); pjt = F.pjt; pjt.Save(); F.Dispose(); }
private void selectProjectToolStripMenuItem_Click(object sender, EventArgs e) { OpenFileDialog F = new OpenFileDialog(); F.DefaultExt = ".pjt"; F.InitialDirectory = "C:\\"; if (F.ShowDialog() == DialogResult.OK) { pjt = new Project(F.FileName); pjt.Open(); } UpdateMainList(); }
private void AddtoProj_Click(object sender, EventArgs e) { Project pjt; Paused = true; ACQ.Loaded = false; if (player != null) player.Stop(); ACQ.closeACQ(); SzTxt.Close(); ACQ.cleargraph(); this.Text = "Closing File..."; Thread.Sleep(500); this.Text = "Seizure Video Playback"; AddtoProject F = new AddtoProject(CurrentProject); F.ShowDialog(); if (F.passed) { CurrentProject = F.returnstring; pjt = new Project(CurrentProject); pjt.Open(); pjt.ImportDirectory(Path); pjt.Save(); INISave(); } }