Exemple #1
0
        private void Click_Open(object sender, EventArgs e) //opens the desired file
        {
            SaveAsOpen saveAs = new SaveAsOpen("open");

            saveAs.ShowDialog(this);

            if (cards.Count != 0) //if the user opens the file
            {
                currentCard = 0;
                current     = "title";
                UpdateMainFlashCard();

                if (!mainFlashCard.Enabled)
                {
                    mainFlashCard.Enabled = true;
                    mainFlashCard.Visible = true;
                }
            }
        }
Exemple #2
0
        private void SaveAsFile()
        {
            SaveAsOpen saveAs = new SaveAsOpen("save");

            saveAs.ShowDialog(this);
        }