ME3Explorer.KFreonTPFTools3.SaveModInternal C# (CSharp) Method

SaveModInternal() private method

private SaveModInternal ( bool result ) : bool
result bool
return bool
        private bool SaveModInternal(bool result)
        {
            string savePath = "";
            if (result && (savePath = GetSavePath("Select destination for .mod", "ME3Ex .mod|*.mod")) != "")
            {
                if (SaveValidToMod(savePath))
                {
                    this.Invoke(new Action(() =>
                    {
                        OverallStatusLabel.Text = ".mod saved! Ready.";
                        OverallProgressBar.Value = OverallProgressBar.Maximum;
                    }));
                    return true;
                }
                else
                {
                    this.Invoke(new Action(() =>
                    {
                        OverallStatusLabel.Text = "Saving .mod failed or cancelled!";
                        OverallProgressBar.Value = OverallProgressBar.Maximum;
                    }));
                    return false;
                }
            }
            else
            {
                this.Invoke(new Action(() =>
                {
                    EnableSecondProgressBar(false);
                    OverallStatusLabel.Text = "Ready.";
                    OverallProgressBar.Value = 0;
                }));
                return false;
            }
        }
KFreonTPFTools3