public ItemViewer(DataCore.Player p) { InitializeComponent(); }
public PricingService(IPricingRepository pricingRepository, DataCore dataCore) { _dataCore = dataCore; _data = new Lazy<IDictionary<int, ItemPricingStats>>(() => pricingRepository.GetStats(dataCore.JitaId(), null).ToDictionary(i => i.typeId)); }
/// <summary> /// Stores data about a texture into the XML document. /// </summary> /// <param name="xmlParent">The XML node to insert data at.</param> /// <param name="tex">The DataCore.Texture to get data from.</param> private void WriteTexture( XmlElement xmlParent, DataCore.Texture tex ) { XmlElement xmlTPPar; string filepath, filename = null; // Create the texture element xmlTPPar = _xmlDoc.CreateElement( "", "Texture", "" ); // Store the texture name xmlTPPar.AppendChild( CreateTextNode( "Name", Path.GetFileName( tex.Name ) ) ); // Store the texture filename if ( _fileExists ) { filepath = Path.GetDirectoryName( _dlgSave.FileName ); filename = filepath + "\\Textures\\"; filename += Path.GetFileNameWithoutExtension( tex.Name ) + Path.GetExtension( tex.FileName ); } else { filepath = Path.GetDirectoryName( _dlgSave.FileName ); filepath += "\\" + Path.GetFileNameWithoutExtension( _dlgSave.FileName ); filename = filepath + "\\Textures\\"; filename += Path.GetFileNameWithoutExtension( tex.Name ) + Path.GetExtension( tex.FileName ); } xmlTPPar.AppendChild( CreateTextNode( "FileName", filename ) ); // Store the texture texture operation xmlTPPar.AppendChild( CreateTextNode( "TextureOperation", tex.OperationText ) ); // Store if the texture is a mask xmlTPPar.AppendChild( CreateTextNode( "IsMask", tex.Mask.ToString() ) ); // Store the texture scale values xmlTPPar.AppendChild( CreateVector2Node( "Scale", tex.Scale ) ); // Store the texture shift values xmlTPPar.AppendChild( CreateVector2Node( "Shift", tex.Shift ) ); // Store the texture element xmlParent.AppendChild( xmlTPPar ); }
/// <summary> /// Sets the currently selected Texture from the list of textures used by the TerrainPatch. /// </summary> /// <param name="tex">The texture to store in the TerrainPatch.</param> public void SetTexture( DataCore.Texture tex ) { if ( tex != null ) Textures[ _selectedTexture ] = tex; }
/// <summary> /// Adds a texture to the list of textures used by the TerrainPatch. /// </summary> /// <param name="tex">The Texture to add to the TerrainPatch.</param> public void AddTexture( DataCore.Texture tex ) { _textures.Add( tex ); AddTextureCoordinates(); }
///<summary>Deletes everything from the recalltype table. Does not truncate the table so that PKs are not reused on accident.</summary> public static void ClearRecallTable() { string command = "DELETE FROM recall WHERE RecallNum > 0"; DataCore.NonQ(command); }