ME3Explorer.KFreonTPFTools3.GetSavePath C# (CSharp) Method

GetSavePath() private method

private GetSavePath ( string title, string extension ) : string
title string
extension string
return string
        private string GetSavePath(string title, string extension)
        {
            string retval = "";
            if (MainTreeView.InvokeRequired)
                this.Invoke(new Action(() => retval = GetSavePath(title, extension)));
            else
                using (SaveFileDialog sfd = new SaveFileDialog())
                {
                    sfd.Title = title;
                    sfd.Filter = extension;
                    if (sfd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                        retval = sfd.FileName;
                }
            return retval;
        }
KFreonTPFTools3