Exemplo n.º 1
0
        private void browseButton_Click(object sender, EventArgs e)
        {
            string forecastFilename = ViewerDumper.GetFileNameForPage((int)startPageInput.Value, UsingImageExt);

            var sfd = new SaveFileDialog( );

            sfd.InitialDirectory = savePathTextBox.Text;
            sfd.FileName         = forecastFilename;
            sfd.DefaultExt       = UsingImageExt;
            sfd.Filter           = "Image file|*.*";
            sfd.ValidateNames    = false;
            sfd.CheckFileExists  = false;
            sfd.CheckPathExists  = true;
            sfd.RestoreDirectory = true;

            if (sfd.ShowDialog( ) == DialogResult.OK)
            {
                savePathTextBox.Text = Path.GetDirectoryName(sfd.FileName);
                _UpdateEffectivePath( );
            }
        }
Exemplo n.º 2
0
 private void _UpdateEffectivePath( )
 {
     effectivePathTextBox.Text = Path.Combine(savePathTextBox.Text, ViewerDumper.GetFileNameForPage((int)startPageInput.Value, UsingImageExt));
 }