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; } } }
private void SaveAsFile() { SaveAsOpen saveAs = new SaveAsOpen("save"); saveAs.ShowDialog(this); }