public FormChangesControl(QuickFormComparison formComparison, IQuickFormDefinition currentSlxForm) { InitializeComponent(); _formComparison = formComparison; _currentSlxForm = currentSlxForm; btnCopyAll.Enabled = _currentSlxForm != null; InitializeRemovesTab(); InitializeMovesTab(); InitializeAddsTab(); InitializeModsTab(); InitializeResourcesTab(); }
public FormDesignerHost(WorkItem workItem, IQuickFormDefinition quickForm) { InitializeComponent(); quickFormsDefinitionCompositeEditor1.SelectionService = workItem.Services.Get<ISelectionService>(); quickFormsDefinitionCompositeEditor1.BrowsableService = workItem.Services.Get<IBrowsableObjectService>(); quickFormsDefinitionCompositeEditor1.DataSource = quickForm; ApplicationContextDefiler.SetRootWorkItemProjectLocalizationService(workItem); _propertyGrid = workItem.BuildTransientItem(typeof(PropertyGridToolWindow)) as PropertyGridToolWindow; _propertyGrid.Dock = DockStyle.Fill; splitContainer1.Panel2.Controls.Add(_propertyGrid); WorkItem = workItem; }