Beispiel #1
0
        private void saveAsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (tae != null && saveFileDialog1.ShowDialog() == DialogResult.OK)
            {
                string filename = saveFileDialog1.FileName;

                if (filename.Substring(filename.Length - 4) != ".tae")
                {
                    filename += ".tae";
                }

                TAE.WriteTae(tae, filename);
            }
        }
Beispiel #2
0
        private void SaveBtn_Click(object sender, EventArgs e)
        {
            SaveBtn.Enabled = false;

            if (tae != null)
            {
                if (!File.Exists(textBox1.Text + ".bak"))
                {
                    File.Move(textBox1.Text, textBox1.Text + ".bak");
                }

                TAE.WriteTae(tae, textBox1.Text);
            }

            SaveBtn.Enabled = true;
        }