Ejemplo n.º 1
0
        public void openFreeWritingToolStripMenuItem_Click(object sender, EventArgs e)
        {
            GalleryWindow f = new GalleryWindow();

            f.Show();
            f.Focus();
        }
Ejemplo n.º 2
0
        private void openAllToolStripMenuItem_Click(object sender, EventArgs e)
        {
            GalleryWindow f = new GalleryWindow();

            f.Show();
            f.Focus();
        }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 4
0
        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();
        }
Ejemplo n.º 5
0
        //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;
            }
        }
Ejemplo n.º 6
0
        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:";
            }
        }