private void browse_Click( object sender, EventArgs e ) { var sfd = new Core.UI.SaveFileDialog ( "/sdcard/" ) { Title = "Save video capture...", DefaultExt = "mp4", Filter = "Video Files (*.mp4)|*.mp4", AddExtension = true, FilterIndex = 0, InitialDirectory = "/sdcard/", FileName = Core.IO.Path.GetFileName(location.Text) }; if ( sfd.ShowDialog ( this ) == DialogResult.OK ) { var fn = sfd.FileName; if ( !fn.EndsWith ( ".mp4" ) ) { fn += ".mp4"; } location.Text = fn; } }
private void browse_Click(object sender, EventArgs e) { var sfd = new Core.UI.SaveFileDialog("/sdcard/") { Title = "Save video capture...", DefaultExt = "mp4", Filter = "Video Files (*.mp4)|*.mp4", AddExtension = true, FilterIndex = 0, InitialDirectory = "/sdcard/", FileName = Core.IO.Path.GetFileName(location.Text) }; if (sfd.ShowDialog(this) == DialogResult.OK) { var fn = sfd.FileName; if (!fn.EndsWith(".mp4")) { fn += ".mp4"; } location.Text = fn; } }