private void openButton_Click(object sender, EventArgs e) { if (checkChanged()) { currentExcuse.OpenFile(excusePath); } updateForm(false); }
private void randomExcuse_Click(object sender, EventArgs e) { if (!Continue()) { return; } currentExcuse = new Excuse(selectedFolder, random); currentExcuse.OpenFile(currentExcuse.ExcusePath); UpdateForm(false); }
private void BtnOpen_Click(object sender, EventArgs e) { if (CheckChanged()) { openFileDialog.InitialDirectory = _currentPath; //saveFileDialog.Filter = "Arquivos de Texto (*.txt)|*.txt|" + // "Todos os Arquivos (*.*)|*.*"; //saveFileDialog.FileName = txtDescription.Text + ".txt"; saveFileDialog.Filter = "Arquivos de desculpa (*.excuse)|*.excuse|" + "Todos os Arquivos (*.*)|*.*"; saveFileDialog.FileName = txtDescription.Text + ".excuse"; if (openFileDialog.ShowDialog() == DialogResult.OK) { _currentExcuse.OpenFile(openFileDialog.FileName); UpdateForm(false); } } }
private void open_Click(object sender, EventArgs e) { if (!Continue()) { return; } OpenFileDialog openDialog = new OpenFileDialog(); openDialog.InitialDirectory = selectedFolder; openDialog.FileName = FileName(); openDialog.Filter = STRING_FILTER; if (openDialog.ShowDialog() == DialogResult.OK) { currentExcuse = new Excuse(openDialog.FileName); currentExcuse.OpenFile(openDialog.FileName); UpdateForm(false); } }
private void randomExcuse_Click(object sender, EventArgs e) { if (!Continue()) { return; } currentExcuse = new Excuse(selectedFolder, random); currentExcuse.OpenFile(currentExcuse.ExcusePath); formLoaded = true; UpdateForm(false); }
private void open_Click(object sender, EventArgs e) { if (!Continue()) { return; } OpenFileDialog openDialog = new OpenFileDialog(); openDialog.InitialDirectory = selectedFolder; openDialog.FileName = FileName(); openDialog.Filter = STRING_FILTER; if (openDialog.ShowDialog() == DialogResult.OK) { currentExcuse = new Excuse(openDialog.FileName); currentExcuse.OpenFile(openDialog.FileName); formLoaded = true; UpdateForm(false); } }