Exemple #1
0
        private void базуДанныхToolStripMenuItem_Click(object sender, EventArgs e)
        {
            currentDatabase = new DataContainer();
            SaveFileDialog dialog = new SaveFileDialog();

            dialog.Filter = "Файл Базы Данных Студии (*.cuсf) | *.cucf"; // Creative Universal Compress Format   =)
            dialog.ShowDialog();
            CDataFileInterface.WriteToFile(dialog.FileName, currentDatabase);
            currentDataPath = dialog.FileName;
            HelpForm.Invalidate_Text();
        }
Exemple #2
0
 private void сохранитьToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         CDataFileInterface.WriteToFile(currentDataPath, currentDatabase);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "ошибка");
     }
     HelpForm.Invalidate_Text();
 }
Exemple #3
0
        private void сохранитьКакToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SaveFileDialog dialog = new SaveFileDialog();

            dialog.Filter = "Файл Базы Данных Студии (*.cuсf) | *.cucf"; // Creative Universal Compress Format   =)

            HelpForm.Invalidate_Text();
            switch (dialog.ShowDialog())
            {
            case System.Windows.Forms.DialogResult.OK:
                try
                {
                    CDataFileInterface.WriteToFile(dialog.FileName, currentDatabase);
                    currentDataPath = dialog.FileName;
                    HelpForm.Invalidate_Text();
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message, "ошибка");
                }
                break;
            }
        }