IT innovations logo

IT innovations

ITinnovations Libraries

ITinnovations Libraries

ITinnovations Libraries sono delle librerie appositamente realizzate per velocizzare la scrittura di programmi in C#, offrendo diverse funzioni per molti dei piĆ¹ comuni compiti che consentono di risparmiare la scrittura ripetitiva di molte linee di codice.

Principali funzioni

Principali funzioni

AssemblyTools

string GetTitle()
string GetPlatform()
Version GetVersion()

ColorsTools

Color MediaColorFromString(string colore)

FileHash

byte[] ComputeMD5(string file)
byte[] ComputePartialMD5(string file)
bool CheckHashEquals(byte[] oldHash, byte[] newHash)

FilePermission

bool GrantAccess(string fullPath)

ImageTools

Size? ResizeImage(string sourceFile, string destinationFile, Size maxSize, bool recompression = true, long compressionValue = 80L, bool preserveRatio = true, bool reduceOnly = true)
void CopyExifData(ref System.Drawing.Image originalImage, ref System.Drawing.Image destinationImage)
string GetMimeType(string imageFile)
string GetMimeType(System.Drawing.Image image)
string GetMimeType(ImageFormat imageFormat)
DateTime? ImageDateTime(string imageFile)
DateTime? ImageDateTime(System.Drawing.Image getImage)

LayoutTools

T TryFindParent<T>(DependencyObject current)
Visual GetDescendantByType(Visual element, Type type)
void RemoveChildrens(Panel ctrl)
void ComboBoxReorder(ComboBox cb, string propertyName)
void RemoveElementFocus(FrameworkElement element)

MarshalTools

void ReleaseComObject(object comObject)

Message

void ErrorMessage(string message)
void WarningMessage(string message)
void InformationMessage(string message)

SaveDataTools

void WriteToBinaryFile<T>(string filePath, T objectToWrite, bool append = false)
T ReadFromBinaryFile<T>(string filePath)
void WriteToXmlFile<T>(string filePath, T objectToWrite, bool append = false)
T ReadFromXmlFile<T>(string filePath)

ShortcutTools

string KeysToString(KeyEventArgs e)
string KeysToString(KeyEventArgs e, ModifierKeys disableModifier, string reason)
void KeysFromString(string shortcut, out Key keyRestored, out ModifierKeys modifierKeyRestored)

TableTools

void MoveItemBetweenTables(DataRow row, DataTable source, DataTable destination)

ThreadTools

Thread StartNewBackgroudThread(ThreadStart start, ApartmentState apartmentState = ApartmentState.Unknown)
Thread StartNewBackgroudThread(ParameterizedThreadStart start, object parameter, ApartmentState apartmentState = ApartmentState.Unknown)

Tools

Bordless Window
Input Text Window
Grid List View
Scroll Auto Size Content