public static void Show(string id_) { RemoveQuestMenuParams params_ = new RemoveQuestMenuParams() { id = id_ }; App.UI.Show("RemoveQuestMenu", params_); }
public void OnRemoveClick() { RemoveQuestMenuParams params_ = _params as RemoveQuestMenuParams; var stepData = Data.Repository.Steps.Get(params_.id); if (stepData == null) { _errorText.text = "id is not exists!"; return; } CommandManager.Execute(new RemoveQuestStepCommand(stepData)); Hide(); }