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
| ''' <summary> | |
| ''' This class adds two events for easy highlighting when tabbing and clicking. | |
| ''' Double clicking will unhighlight and leave the cursor at the beginning. | |
| ''' Uses the click and doubleclick events. | |
| ''' </summary> | |
| public class FocusedTextBox | |
| ''' <summary> | |
| ''' Adds two events to the given textbox. Will override | |
| ''' click and doubleclick events. |
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 function setExclusionFilter(table as DataTable) as DataTable | |
| dim unit = cbxSelectUnit.text | |
| dim xAxisName = table.columns(0).columnName | |
| dim yAxisName = table.columns(1).columnName | |
| dim unitExclusionRegions = from row in exclusionRegions | |
| where row.field(Of String)("UnitID") = unit and row.field(Of Boolean)("Active") = true | |
| select axis = row.field(Of Char)("Axis"), low = row.field(Of Double)("Low"), high = row.field(Of Double)("High") | |
| dim query as String = "" |
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
| const PeHeaderOffset as integer = 60 | |
| const LinkerTimestampOffset as integer = 8 | |
| dim filePath = System.Reflection.Assembly.GetExecutingAssembly().location | |
| dim b(2047) as byte | |
| dim s as IO.FileStream = new IO.FileStream(filePath, IO.FileMode.Open, IO.FileAccess.Read) | |
| try | |
| s.Read(b, 0, 2048) | |
| finally |
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
| imports System.Reflection | |
| imports System.Reflection.Emit | |
| imports System.Threading | |
| ''' <summary> | |
| ''' The purpose of this class is to take a struct and build and return an object type containing all of | |
| ''' the variable members of the struct as properties with getters and setters. You can then make an | |
| ''' instance of the object type by calling activator.createinstance(type). | |
| ''' Usage: dim converter = new StructConverter() | |
| ''' dim structObjectType as Type = converter.buildDynamicProperties(GetType(YourStruct)) |
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
| function search(e) { | |
| var id = e.target.id; | |
| var val = document.getElementById(id).value.toUpperCase(); | |
| var grid = document.getElementById("ct100_ContentPlaceHolder1_dropdownListings"); | |
| $('#ctl00_ContentPlaceHolder1_dropdownListings').find('tbody').find('tr').each(function (index, element) { | |
| var blah = $(this).text().toUpperCase(); | |
| if ($(this).text().toUpperCase().indexOf(val) < 0) | |
| $(this).hide(); | |
| else |
NewerOlder