示例#1
0
 private void openButton_Click(object sender, EventArgs e)
 {
     if (checkChanged())
     {
         currentExcuse.OpenFile(excusePath);
     }
     updateForm(false);
 }
示例#2
0
        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);
         }
     }
 }
示例#4
0
        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);
            }
        }
示例#5
0
        private void randomExcuse_Click(object sender, EventArgs e)
        {
            if (!Continue()) { return; }

            currentExcuse = new Excuse(selectedFolder, random);
            currentExcuse.OpenFile(currentExcuse.ExcusePath);
            formLoaded = true;
            UpdateForm(false);
        }
示例#6
0
        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);
            }
        }