public override bool Execute(object param, object data) { MainForm form = param as MainForm; if (form == null) { return(false); } foreach (DockContentBase item in form.DockPanel.Contents) { if (item is QuestionListForm) { item.Activate(); item.OnRefreshView(); return(true); } } QuestionListForm role = new QuestionListForm(form); role.Show(form.DockPanel, DockState.DockBottom); role.Activate(); role.OnRefreshView(); return(true); }