Fractrace.Animation.AnimationControl.btnSave_Click C# (CSharp) Méthode

btnSave_Click() private méthode

Saved animation file.
private btnSave_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void
        private void btnSave_Click(object sender, EventArgs e)
        {
            SaveFileDialog sd = new SaveFileDialog();
            sd.Filter = "*.franim|*.franim";
            if (sd.ShowDialog() == DialogResult.OK)
            {
                StreamWriter sw = new System.IO.StreamWriter(sd.FileName, false, Encoding.GetEncoding("iso-8859-1"));
                sw.Write(tbAnimationDescription.Text);
                sw.Close();
            }
        }