Example #1
0
        private void backupButton_Click(object sender, EventArgs e)
        {
            if (!string.IsNullOrWhiteSpace(this.backupTextBox.Text))
            {
                string[] data = RegistryData.GetDataForBackup(this.User.Username);
                string   path = this.backupTextBox.Text + "\\" +
                                string.Format(Constants.BackupFileName, this.User.Username);

                File.WriteAllLines(path, data);
                MetroMessageBox.Show(this
                                     , string.Empty
                                     , GlobalMessages.BackupComplete
                                     , MessageBoxButtons.OK
                                     , MessageBoxIcon.Information
                                     , 80);

                this.Swipe(false);
            }
        }