public void openFreeWritingToolStripMenuItem_Click(object sender, EventArgs e) { GalleryWindow f = new GalleryWindow(); f.Show(); f.Focus(); }
private void openAllToolStripMenuItem_Click(object sender, EventArgs e) { GalleryWindow f = new GalleryWindow(); f.Show(); f.Focus(); }
private void templateToolStripMenuItem_Click(object sender, EventArgs e) { GalleryWindow f = new GalleryWindow(); f.Show(); f.Focus(); f.label1.Text = "Choose a character:"; var main = Application.OpenForms.OfType <FreeWritingWindow>().First(); main.activity = 2; }
private void myCharactersToolStripMenuItem_Click(object sender, EventArgs e) { GalleryWindow f = new GalleryWindow(); f.Show(); f.Focus(); f.path = @"My_characters"; f.CharactersButton.Text = "My Characters"; f.fillTheComboBox(); f.path2 = f.path + @"\" + f.comboBox1.SelectedItem.ToString(); f.fillTheDisplays(); }
//Events for Side Panel private void treeView1_AfterSelect_1(object sender, TreeViewEventArgs e) { switch (treeView1.SelectedNode.Text) { case "Practice": GalleryWindow f = new GalleryWindow(); f.Show(this); f.Focus(); f.label1.Text = "Choose a character:"; var main = Application.OpenForms.OfType <FreeWritingWindow>().First(); main.activity = 1; break; case "Template Writing": f = new GalleryWindow(); f.Show(this); f.Focus(); f.label1.Text = "Choose a character:"; var main1 = Application.OpenForms.OfType <FreeWritingWindow>().First(); main1.activity = 2; break; case "All Characters": f = new GalleryWindow(); f.Show(this); f.Focus(); break; case "My Characters": f = new GalleryWindow(); f.Show(this); f.Focus(); f.path = @"My_characters"; f.CharactersButton.Text = "My Characters"; f.fillTheComboBox(); f.path2 = f.path + @"\" + f.comboBox1.SelectedItem.ToString(); f.fillTheDisplays(); break; } }
private void NextButton_Click(object sender, EventArgs e) { if (activity == 1) { GalleryWindow f = new GalleryWindow(); f.Show(); f.Focus(); f.label1.Text = "Choose a character:"; } if (activity == 2) { GalleryWindow f = new GalleryWindow(); f.Show(); f.Focus(); f.label1.Text = "Choose a character:"; } }