Exemplo n.º 1
0
        protected override void MoveNext()
        {
            // Create OpenFileDialog
            SaveFileDialog dlg = new SaveFileDialog();



            // Set filter for file extension and default file extension
            dlg.DefaultExt = ".conf";


            // Display OpenFileDialog by calling ShowDialog method
            bool?result = dlg.ShowDialog();


            // Get the selected file name and display in a TextBox
            if (result == true)
            {
                try
                {
                    builder.SaveSettings(dlg.FileName);
                }

                catch (Exception e)
                {
                    MessageBoxWrapper.Show(e.Message);
                }
            }
        }