ExportScore() static private method

Exports the current score data to a file
static private ExportScore ( string File ) : void
File string The file to write
return void
Example #1
0
        // ================
        // review last game
        // ================

        // score save
        private void buttonScoreExport_Click(object sender, EventArgs e)
        {
            SaveFileDialog Dialog = new SaveFileDialog();

            Dialog.OverwritePrompt = true;
            Dialog.Filter          = Interface.GetInterfaceString("dialog_textfiles") + "|*.txt|" + Interface.GetInterfaceString("dialog_allfiles") + "|*";
            if (Dialog.ShowDialog() == DialogResult.OK)
            {
                try {
                    Interface.ExportScore(Dialog.FileName);
                } catch (Exception ex) {
                    MessageBox.Show(ex.Message, Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Hand);
                }
            }
        }