public EquipmentAndMedicationDialog(AdditionalInformationDTO information) { InitializeComponent(); this.mapObjectId = information.MapObjectId; if (LoggedUser.RoleEquals(Role.Director)) { EnableRelocation(); } DynamicGridControl dynamicGridControl = new DynamicGridControl(information.ContentRows, true); DynamicGrid.Children.Add(dynamicGridControl); this.Height = (information.ContentRows.Count() + 1) * 50 + 40; }
private void SetDynamicGrid() { dynamicGridControl = new DynamicGridControl(mapObject.MapObjectDescription.GetInformation(), IsPatientLogged()); DynamicGrid.Children.Add(this.dynamicGridControl); }