private void btnRandom_Click(object sender, EventArgs e) { if (CheckChanged()) { desculpa = new Excuse(random, pasta); UpdateForm(false); } }
private void btnAbrir_Click(object sender, EventArgs e) { if (CheckChanged()) { OpenFileDialog ofd = new OpenFileDialog(); ofd.InitialDirectory = pasta; ofd.Filter = "Excuse|*.excuse|Todos|*.*"; DialogResult result = ofd.ShowDialog(); if (result == DialogResult.OK) { desculpa = new Excuse(ofd.FileName); UpdateForm(false); } } }