This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Author: Mario Di Vece <[email protected]> | |
/// Date: 3/19/2014 | |
/// Updated: 9/18/2014 | |
/// License: MIT | |
/// </summary> | |
namespace Unosquare.Utils | |
{ | |
using System; | |
using System.Collections.Generic; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Author: Mario A. Di Vece - [email protected] | |
/// Version 1.0b | |
/// Generic Server toolkit for quick implementation of socket communications. | |
/// Unosquare, LLC (c) 2013 - MIT License | |
/// You are free to use this code. Please give me some credit if you use it. | |
/// </summary> | |
namespace Unosquare.Labs.Sockets | |
{ | |
using System; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Unosquare.Wpf | |
{ | |
using System; | |
using System.ComponentModel; | |
using System.Runtime.CompilerServices; | |
using System.Runtime.Serialization; | |
public abstract class ViewModelBase : INotifyPropertyChanged | |
{ | |
// uncomment the line below for Log4Net Logging |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Unosquare.Wpf | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
public abstract class DimensionalObjectBase : ViewModelBase | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Unosquare.Utilities | |
{ | |
public static class Extensions | |
{ | |
static public int CircleOffset(this int currentIndex, int offset, int lastIndex) | |
{ | |
var newIndex = currentIndex + offset; | |
return newIndex.CircleIndex(lastIndex); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void MakeComboBoxSearchable(this ComboBox targetComboBox) | |
{ | |
targetComboBox.Loaded += (ls, le) => | |
{ | |
targetComboBox.Items.IsLiveFiltering = true; | |
var targetTextBox = targetComboBox.Template.FindName("PART_EditableTextBox", targetComboBox) as TextBox; | |
if (targetTextBox == null) return; | |
targetComboBox.IsEditable = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Unosquare.Utils | |
{ | |
using System; | |
using System.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Reflection; | |
using System.Text; | |
using System.Threading.Tasks; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO.Ports; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace Unosquare.Devices | |
{ | |
public class GT511C3 : IDisposable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Unosquare.FFME.Core | |
{ | |
using System; | |
using System.ComponentModel; | |
using System.Runtime.InteropServices; | |
using System.Threading; | |
using System.Threading.Tasks; | |
/// <summary> | |
/// A timer based on the multimedia timer API with approximately 1 millisecond precision. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
[configuration] | |
[OptionRangeFloat] | |
GUIName = Blur Area | |
OptionName = BLUR_SIZE | |
MinValue = 0.0 | |
MaxValue = 10.0 | |
StepAmount = 0.1 | |
DefaultValue = 1.6 |
OlderNewer