private void CreateUnlockPopUp(Study study) { if (StudiesManager.Instance.CheckIfStudyIsUnlocked(study.GetCode())) { CreateCannotUnlockPopUp(); return; } string text = $"Do you want to unlock {study.GetCode()} study?"; string button1Text = "Yes"; string button2Text = "No"; Action button1Callback = new Action(() => { StudiesManager.Instance.UnlockStudy( (StudyCode)Enum.Parse(typeof(StudyCode), study.GetCode()) ); pressedStudyCell.Refresh(); }); PopUpManager.CreateDoubleButtonTextPopUp(text, button1Text, button2Text, button1Callback); }