private void returnJson(TextEventArgs e) { EventHandler<TextEventArgs> eh = goNextEvent; if (eh != null) eh(this, e); }
/* * Summary: Each of these methods is an event handler for a button. All navigation between * screens in the main application window is controlled by these methods * Each of them set the size of the window according to the screen to be displayed and center the screen * Some of the methods pass information like JSON strings and other recording information between them */ private void gotoUploadRec(object sender, TextEventArgs e) { if (e.json != "") tutorialUploadRec.recJson = e.json; ClientSize = new Size(1065, 719); tutorialUploadRec.checkLogin(); tutorialUploadRec.BringToFront(); CenterToScreen(); }
private void gotoPlayRec(object sender, TextEventArgs e) { if (e.json != "") { RecordingManager recording = new RecordingManager(e.json); tutorialPlayRec.recJson = e.json; tutorialPlayRec.currentRecTitle.Text = recording.Title; tutorialPlayRec.recTitle = e.name; } ClientSize = new Size(1000, 697); tutorialPlayRec.BringToFront(); CenterToScreen(); }
private void gotoTestRec(object sender, TextEventArgs e) { if (e.json != "") tutorialTestRec.mergedJson = e.json; ClientSize = new Size(961, 505); tutorialTestRec.BringToFront(); CenterToScreen(); }
public void returnJson(TextEventArgs e) { EventHandler<TextEventArgs> eh = goBackEvent; if (eh != null) eh(this, e); }