private void openButton_Click(object sender, EventArgs e) { currentReading.text = readingText.Text; if (currentReading.readingId < 0) { currentProject.readings.Add(currentReading); } var readingPage = new ReadingPage(currentProject, currentReading); DatabaseInterface.updateProject(currentProject); this.Hide(); readingPage.Show(); }
public override void saveProjectToolStripMenuItem_Click(object sender, EventArgs e) { writing.text = writingDoc.Text; DatabaseInterface.updateProject(project); }
public override void saveProjectToolStripMenuItem_Click(object sender, EventArgs e) { DatabaseInterface.updateProject(project); }