public void SortField(EntityConfig entity) { if (entity == null || MessageBox.Show($"确认修改{entity.ReadTableName}的字段顺序吗?", "对象编辑", MessageBoxButton.YesNo) != MessageBoxResult.Yes) { return; } var model = new EntitySorter { Entity = entity }; model.SortField(); }
public void SortField(object arg) { if (Context.SelectEntity == null || MessageBox.Show($"确认修改{Context.SelectEntity.ReadTableName}的字段顺序吗?", "对象编辑", MessageBoxButton.YesNo) != MessageBoxResult.Yes) { return; } var model = new EntitySorter { Entity = Context.SelectEntity }; model.SortField(); }