/// <summary> /// 通过showable设置当前的panel /// </summary> /// <param name="obj"></param> /// <param name="type"></param> public void ShowPanel(BasePresenter obj) { if (Presenters.Count == 0) { return; } var temp = Presenters.FindIndex((x) => { return(x == obj); }); ShowPanel(temp); }
public void TogglePanel(BasePresenter obj) { if (Presenters.Count == 0) { return; } var temp = Presenters.Find((x) => { return(x == obj); }); var tempIndex = Presenters.FindIndex((x) => { return(x == obj); }); if (!temp.IsShow) { ShowPanel(tempIndex); } else { ShowDefault(); } }