Canguro.Model.Model.ConfirmUnlockModel C# (CSharp) Method

ConfirmUnlockModel() public method

Opens a dialog to confirm unlocking the model.
public ConfirmUnlockModel ( ) : bool
return bool
        public bool ConfirmUnlockModel()
        {
            if (!IsLocked)
                return true;

            System.Windows.Forms.DialogResult res = System.Windows.Forms.MessageBox.Show(Culture.Get("confirmUnlockModel"), Culture.Get("confirm"),
                System.Windows.Forms.MessageBoxButtons.OKCancel);
            if (res == System.Windows.Forms.DialogResult.OK)
            {
                IsLocked = false;
                return true;
            }
            else
                return false;
        }