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(); } }