private void _designerAction_Execute(object sender, SingleChoiceActionExecuteEventArgs e) { var selectedChoiceActionItem = e.SelectedChoiceActionItem; if (selectedChoiceActionItem.Caption == SetNewDashboardFields) { var dashboardDefinition = ((DashboardDefinition)View.CurrentObject); _dashboardTypesEditor.SetValue("Customer;Person"); if (Application.GetPlatform() == Platform.Web) { dashboardDefinition.Xml = GetType().GetResourceString("NewDashboard.xml"); } } }