MissionPlanner.OSDVideo.BUT_vidfile_Click C# (CSharp) Method

BUT_vidfile_Click() private method

private BUT_vidfile_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void BUT_vidfile_Click(object sender, EventArgs e)
        {
            String fileName = GetFileName("Videos (*.avi)|*.avi;*.mpe;*.mpeg;*.mp4", txtAviFileName);
            if (fileName != null)
            {
                // update name before calling next function
                txtAviFileName.Text = fileName;
                // load setting if they exist
                loadconfig();
                // force file we just picked as video
                txtAviFileName.Text = fileName;
            }
        }