This file contains hidden or 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
private void ReadRaw(bool isReadModified) | |
{ | |
ReadRawModifiedDetails details = new ReadRawModifiedDetails(); | |
details.StartTime = DateTime.MinValue; | |
details.EndTime = DateTime.MinValue; | |
details.IsReadModified = isReadModified; | |
details.NumValuesPerNode = 0; | |
details.ReturnBounds = ReturnBoundsCK.Checked; | |
if (StartTimeCK.Checked) |
This file contains hidden or 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
WriteValueCollection nodesToWrite = new WriteValueCollection(1) | |
{ | |
new WriteValue | |
{ | |
NodeId = new NodeId("REQUIREDNODEID"), | |
AttributeId = Attributes.Description, | |
Value = new DataValue(new LocalizedText("ASDASDAD")), | |
} | |
}; |
This file contains hidden or 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.Collections.Generic; | |
namespace KSoft.Asodu.TrendAnalyzer | |
{ | |
public class Simplify | |
{ | |
public static double[][] simplify(double[][] points, double tolerance) | |
{ | |
double sqTolerance = tolerance * tolerance; |
This file contains hidden or 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.Collections.Generic; | |
namespace KSoft.Asodu.TrendAnalyzer | |
{ | |
public class Simplify | |
{ | |
public static double[][] simplify(double[][] points, double tolerance) | |
{ | |
double sqTolerance = tolerance * tolerance; |
This file contains hidden or 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.Windows.Forms.DataVisualization.Charting; | |
public void Chart_Load() { | |
// Create new ChartArea | |
CalloutAnnotation calloutAnnotation1 = new CalloutAnnotation(); | |
calloutAnnotation1.AxisX = chart.ChartAreas[0].AxisX; | |
calloutAnnotation1.AxisY = chart.ChartAreas[0].AxisY; | |
calloutAnnotation1.CalloutAnchorCap = LineAnchorCapStyle.None; | |
calloutAnnotation1.Name = "SnowAnnotation"; |
This file contains hidden or 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
private float? ParseFloat(string floatLike) | |
{ | |
float f; | |
if (float.TryParse(floatLike, NumberStyles.Float, CultureInfo.InvariantCulture, out f)) { | |
return f; | |
} | |
return null; | |
} |
This file contains hidden or 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
/* | |
Some simple Github-like styles, with syntax highlighting CSS via Pygments. | |
*/ | |
body{ | |
font-family: helvetica, arial, freesans, clean, sans-serif; | |
color: #333; | |
background-color: #fff; | |
border: none; | |
line-height: 1.5; | |
margin: 2em 3em; |
This file contains hidden or 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
Command: C:\Program Files\Sublime Text 3\sublime_text.exe | |
Arguments: $(ItemPath):$(CurLine):$(CurCol) | |
Initial directory: $(ItemDir) |
This file contains hidden or 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 $CoolPropertyClass$ $CoolProperty$ | |
{ | |
get { return $coolField$; } | |
set { | |
$coolField$ = value; | |
OnPropertyChanged("$CoolProperty$"); | |
} | |
} | |
private $CoolPropertyClass$ $coolField$; |
This file contains hidden or 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
/// <example> | |
/// <code> | |
/// <![CDATA[<StackPanel />]]> | |
/// </code> | |
/// </example> |