本文整理汇总了C#中DataGroup类的典型用法代码示例。如果您正苦于以下问题:C# DataGroup类的具体用法?C# DataGroup怎么用?C# DataGroup使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DataGroup类属于命名空间,在下文中一共展示了DataGroup类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AlternativeDataItem
public AlternativeDataItem(IUpgradeAlternative configurationAlternative, DataGroup @group)
: base(configurationAlternative.UniqueId, configurationAlternative.Name, "", @group, 55, 0)
{
UpgradeItems = configurationAlternative.UpgradeItems;
UpgradeAlternative = configurationAlternative;
SetRightColumnSpan(UpgradeItems.Count);
}
示例2: AircraftVersionSelectionGroup
public AircraftVersionSelectionGroup(DataGroup @aircraftGroup, List<IAircraft> aircrafts)
: base("","","",@aircraftGroup,55,0)
{
SetProperties(aircrafts[0]);
SetAircraftList(aircrafts, @aircraftGroup);
SetRightColumnSpan(aircrafts.Count);
}
示例3: ConfigurationGroupDataItem
public ConfigurationGroupDataItem(IConfigurationGroup configurationGroup, DataGroup @group, int configurationItemsCount)
: base(configurationGroup.UniqueId, configurationGroup.Name, "", @group, 55, 40)
{
ConfigurationState = configurationGroup.GroupConfigurationState;
_configurationGroup = configurationGroup;
_configurationItemsCount = configurationItemsCount;
}
示例4: VIDataGroup
public VIDataGroup(DataGroup dataGroup)
{
string[] instantaneousSeriesTypes = { "Values", "Instantaneous" };
// Initialize each of
// the indexes to -1
m_vaIndex = -1;
m_vbIndex = -1;
m_vcIndex = -1;
m_vabIndex = -1;
m_vbcIndex = -1;
m_vcaIndex = -1;
m_iaIndex = -1;
m_ibIndex = -1;
m_icIndex = -1;
m_irIndex = -1;
// Initialize the data group
m_dataGroup = new DataGroup(dataGroup.DataSeries);
for (int i = 0; i < dataGroup.DataSeries.Count; i++)
{
string measurementType = dataGroup[i].SeriesInfo.Channel.MeasurementType.Name;
string measurementCharacteristic = dataGroup[i].SeriesInfo.Channel.MeasurementCharacteristic.Name;
string seriesType = dataGroup[i].SeriesInfo.SeriesType.Name;
string phase = dataGroup[i].SeriesInfo.Channel.Phase.Name;
// If the data group is not instantaneous, do not use it in the VIDataGroup
if (measurementCharacteristic != "Instantaneous")
continue;
// If the data group is not instantaneous, do not use it in the VIDataGroup
if (!instantaneousSeriesTypes.Contains(seriesType))
continue;
// Assign the proper indexes for the seven VIDataGroup
// channels by checking the name of the channel
if (measurementType == "Voltage" && phase == "AN")
m_vaIndex = i;
else if (measurementType == "Voltage" && phase == "BN")
m_vbIndex = i;
else if (measurementType == "Voltage" && phase == "CN")
m_vcIndex = i;
else if (measurementType == "Voltage" && phase == "AB")
m_vabIndex = i;
else if (measurementType == "Voltage" && phase == "BC")
m_vbcIndex = i;
else if (measurementType == "Voltage" && phase == "CA")
m_vcaIndex = i;
else if (measurementType == "Current" && phase == "AN")
m_iaIndex = i;
else if (measurementType == "Current" && phase == "BN")
m_ibIndex = i;
else if (measurementType == "Current" && phase == "CN")
m_icIndex = i;
else if (measurementType == "Current" && phase == "RES")
m_irIndex = i;
}
}
示例5: GetAllQueryableFieldNames
public override List<string> GetAllQueryableFieldNames(DataGroup @group)
{
var fields = new List<string>
{
"SKU","ProdName","ProdDescription","Brand","Manufacturer","IsRetail","RetailPrice","RetailPriceCat","IsWholesale","WholesalePrice","WholesaleQty","ProdStatus","ProdInventory","OutOfStockPoint","ProdOnOrder","AltID","VendorID","DescriptionHeader","ProductURLName","SpecialPrice","IsSpecialOngoing","SpecialStart","SpecialEnd","SpecialText","BackorderedDate","IgnoreBackorder","MinimumQuantity","MaximumQuantity","QuantityInSet","NumIterationsDisplayed","DisplayWeight","ActualWeight","Unit","ImageSetThumb","ImageSetLarge","ImageSetPopup","ImageSetType","ImageSetAttributeName","ImageSetTitle","ImageSetEditType","IsInactive","IsOutOfSeason","IsTaxExempt","HasTextField","IsHidden","IsFeatured","IsNew","IsGoogleCheckoutExempt","IsComparable","IsContentOnly","IsInventoryExempt","IsSubscription","IsDonation","SubscriptionPrice","HasElectronicDelivery","ElectronicDeliveryLink","ElectronicDeliveryDaysAvailable","ElectronicDeliveryDescription","ElectronicDeliveryEditType","IsKit","KitProductSKUs","ShipPreference","ByShipperMethod","ByShipperPreference","ByShipperFixedShipping","FixedShipping","ShipsInOwnBox","PackageLength","PackageWidth","PackageHeight","FreightClass","IsGiftCertificate","GiftCertificateDaysAvailable","GiftCertificateValue","Rating","Keywords","MetaKeywords","MetaTitle","MetaDescription","CategoryIDs","DefaultCategoryID","Custom","Template","DependencySKUs","DependencyType","AdditionalProdSKUs","RelatedProdSKUs","GiftWrap","GiftWrapName","GiftWrapSKU","GiftWrapAmount","CategoryFilter","CategoryFilterValue","CategoryFilterSortValue","ParentSKU","ChildImage","IsRewardsEligible","RewardsPoints","SubProductAttributes","IsAttribute","AttributeTitle1","AttributeTitle2","AttributeTitle3","AttributeTitle4","AttributeSKU","Attribute1","Attribute2","Attribute3","Attribute4","Attribute1Code","Attribute2Code","Attribute3Code","Attribute4Code","AttributePrice","AttributePriceCat","AttributeSpecialPrice","IsAttributeSpecialOngoing","AttributeSpecialStart","AttributeSpecialEnd","AttributeBackorderedDate","AttributeIgnoreBackorder","AttributeInventory","AttributeOutOfStockPoint","AttributeOnOrder","IsAttributeInactive","AttributeStatus","IsAttributeGiftCertificate","AttributeGiftCertificateDaysAvailable","AttributeGiftCertificateValue","IsAttributeSubscription","AttributeSubscriptionPrice","IsAttributeDonation","AttributeRewardsPoints"
};
return fields;
}
示例6: CommonMandelbrotDrawer
public CommonMandelbrotDrawer(String uniqueId, String title, String imagePath, Color color, Trajectory trajectory, int iters,
DataGroup group, float scaling = 1.0f)
: base(uniqueId, title, imagePath, group)
{
this.color = color;
this.trajectory = trajectory;
this.iters = iters;
this.scaling = scaling;
}
示例7: Combine
public static DataGroup Combine(params DataGroup[] dataGroups)
{
DataGroup combination = new DataGroup();
foreach (DataGroup dataGroup in dataGroups)
{
foreach (DataSeries dataSeries in dataGroup.DataSeries)
combination.Add(dataSeries);
}
return combination;
}
示例8: VICycleDataGroup
public VICycleDataGroup(DataGroup dataGroup)
{
m_cycleDataGroups = dataGroup.DataSeries
.Select((dataSeries, index) => new { DataSeries = dataSeries, Index = index })
.GroupBy(obj => obj.Index / 4)
.Where(grouping => grouping.Count() >= 4)
.Select(grouping => grouping.Select(obj => obj.DataSeries))
.Select(grouping => new CycleDataGroup(new DataGroup(grouping)))
.ToList();
MapIndexes();
}
示例9: DataHandlerBase
public DataHandlerBase(SiteRules rules, CartExtractor cart, ExtractorProgress progress, DataGroup group)
{
_cart = cart;
_rules = rules;
_progress = progress;
_group = group;
_exportDate = DateTime.Now;
_exportDateInitialized = false;
_migrationSlave = _rules.MigrationRules != null && _rules.MigrationRules.Enabled
&& !_rules.MigrationRules.IsMigrationMaster;
Reset();
}
示例10: SetAircraftList
private void SetAircraftList(List<IAircraft> aircrafts, DataGroup @group)
{
AircraftList = new ObservableCollection<AircraftSelectionDataItem>();
if (aircrafts.Count == 1)
{
AircraftList.Add(new AircraftSelectionDataItem(aircrafts[0], @group, 30,30));
return;
}
foreach (var aircraft in aircrafts)
{
AircraftList.Add(new AircraftSelectionDataItem(aircraft, group));
}
}
示例11: Write
public static void Write(Meter meter, DataGroup waveFormData, FaultLocationData.FaultCurveDataTable faultCurveTable, List<FaultSegment> segments, string originalFilePath, string filePath)
{
List<DataSeries> waveFormSeriesList = GetWaveFormSeriesList(waveFormData);
DataGroup faultLocationData = GetFaultLocationData(meter, faultCurveTable);
string absoluteFilePath = FilePath.GetAbsolutePath(filePath);
using (StreamWriter fileStream = new StreamWriter(File.OpenWrite(absoluteFilePath)))
{
string originalDirectory;
string originalRootFileName;
string originalSchemaFilePath;
string absoluteOriginalFilePath;
Schema originalSchema = null;
string headerRow;
absoluteOriginalFilePath = FilePath.GetAbsolutePath(originalFilePath);
if (File.Exists(absoluteOriginalFilePath))
{
originalDirectory = FilePath.GetDirectoryName(absoluteOriginalFilePath);
originalRootFileName = FilePath.GetFileNameWithoutExtension(originalFilePath);
originalSchemaFilePath = Path.Combine(originalDirectory, originalRootFileName + ".cfg");
originalSchema = new Schema(originalSchemaFilePath);
}
headerRow = waveFormData.DataSeries
.Select(series => GetOriginalChannelName(originalSchema, series))
.Concat(faultCurveTable.Select(row => string.Format("Fault Location ({0} Algorithm)", row.Algorithm)))
.Aggregate("Time", (s, s1) => s + "," + s1);
fileStream.WriteLine(headerRow);
for (int i = 0; i < waveFormData.Samples; i++)
{
DateTime time = waveFormSeriesList[0].DataPoints[i].Time;
double[] values = waveFormSeriesList
.Select(series => series.DataPoints[i].Value)
.Concat(faultLocationData.DataSeries.Select(series => series.DataPoints.Count > i ? series.DataPoints[i].Value : 0.0D))
.ToArray();
fileStream.WriteLine(values.Aggregate(time.ToString("yyyy-MM-dd HH:mm:ss.ffffff"), (s, d) => s + "," + d));
}
}
}
示例12: DsEvent
public static extern TwainResult DsEvent([In, Out] Identity origin, [In, Out] Identity dest, DataGroup dg, DataArgumentType dat, Message msg, ref Event evt);
示例13: DsCapability
public static extern TwainResult DsCapability([In, Out] Identity origin, [In] Identity dest, DataGroup dg, DataArgumentType dat, Message msg, [In, Out] TwainCapability capa);
示例14: GetUserFields
/// <summary>
/// Builds a table with all the user fields and returns the string.
/// </summary>
/// <returns>An HTML string.</returns>
public string GetUserFields(bool isSelfInfo)
{
//tal vez esta función no deba ir aqui...
string retval = "<div id='tabNav'><ul>";
string tabBody = "";
int currentIdDataGroup = 0;
List<DataDesc> dataDescList = Data.Data.GetDataDesc();
foreach (DataDesc dataDesc in dataDescList)
{
foreach (UserData userData in userDataList)
{
if (userData.IdData == dataDesc.IdData)
{
if (!String.IsNullOrEmpty(userData.Value))
{
dataDesc.Value = userData.Value;
}
}
}
if (dataDesc.IdDataGroup != currentIdDataGroup)
{
if (currentIdDataGroup != 0)
{
tabBody += "</table></div>";
}
tabBody += "<div id='tab" + dataDesc.IdDataGroup + "'><table width='70%' align='center'>";
currentIdDataGroup = dataDesc.IdDataGroup;
DataGroup dataGroup = new DataGroup(dataDesc.IdDataGroup);
retval += "<li><a href='#tab" + dataDesc.IdDataGroup + "'>" + dataGroup.Name + "</a></li>";
}
if (dataDesc.Kind != Data.Data.LABEL)
{
bool canBeShown = false;
if (dataDesc.InvisibleToSelf == 1)
{
if (isSelfInfo)
{
if (Modules.Permission(SessionHandler.Modules, Modules.USER_ADMINISTRATION))
{
canBeShown = true;
}
}
}
else
{
canBeShown = true;
}
if (canBeShown)
{
string fieldName = dataDesc.Name;
if (dataDesc.Required == 1) fieldName = "<span class='required'>" + fieldName + "</span>";
string valueFromRequest = HttpContext.Current.Request.Form["data_" + dataDesc.IdData];
//if (dataDesc.Value == "") dataDesc.Value = valueFromRequest;
if (!String.IsNullOrEmpty(valueFromRequest)) dataDesc.Value = valueFromRequest;
tabBody += "<tr><td width='30%'>" + fieldName + ":</td><td width='70%'>" + dataDesc.GetFieldHTML() + "</td></tr>";
}
}
else
{
tabBody += "<tr><td colspan='2'>" + dataDesc.GetFieldHTML() + "</td></tr>";
}
}
if (!String.IsNullOrEmpty(tabBody)) tabBody += "</table></div>";
return retval + "</ul>" + tabBody + "</div>";
}
示例15: ConfigurationDataItem
public ConfigurationDataItem(IConfigurationFile configuration, DataGroup @group)
: base(configuration.UniqueId, configuration.ConfigurationDate, configuration.AircraftProgrammImage, @group, 28, 25)
{
_configuration = configuration;
}