View ImageScroller
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.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Controls.Primitives; | |
using System.Windows.Data; | |
using System.Windows.Documents; |
View crazytag.cs
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 class CrazyTag : ICrazyTag | |
{ | |
protected readonly List<Subscription> observables = new List<Subscription>(); | |
protected readonly List<IObserver<ICrazyTag>> observers = new List<IObserver<ICrazyTag>>(); | |
bool disposedValue = false; | |
protected CrazyTag() { } | |
IDisposable IObservable<ICrazyTag>.Subscribe(IObserver<ICrazyTag> observer) | |
{ |
View ListBoxControl.cs
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
<ListBox x:Class="PG.UserControls.ListBoxPgItems" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:classes="clr-namespace:WPF.Core.Classes;assembly=WPF.Core" | |
mc:Ignorable="d" | |
SelectionMode="Extended" | |
Style="{StaticResource MaterialDesignListBox}" | |
xmlns:controls="clr-namespace:WpfToolkit.Controls;assembly=VirtualizingWrapPanel" |
View gist:906a780c78aead6fed21c83c8fcfba2c
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
<autocompletetextbox:AutoCompleteTextBox | |
DisplayMember="Name" | |
SelectedItem="{Binding SelectedTag, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" | |
MaxPopupHeight="300" x:Name="AddTagAutoComplete" | |
Text="{Binding AutoCompleteText, Mode=OneWayToSource}" | |
Provider="{Binding SuggestionProvider, RelativeSource={RelativeSource AncestorType=UserControl}}" | |
Grid.Column="0" | |
Height="28" | |
Width="150" | |
Watermark="Add tag"> |
View GroupedCheckboxSelectColumn.js
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
(function ($) { | |
// register namespace | |
$.extend(true, window, { | |
"Slick": { | |
"GroupedCheckboxSelectColumn": GroupedCheckboxSelectColumn | |
} | |
}); | |
function GroupedCheckboxSelectColumn(options) { |
View slick.checkboxselectionmodel.js
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
(function ($) { | |
// register namespace | |
$.extend(true, window, { | |
"Slick": { | |
"CheckboxSelectionModel": CheckboxSelectionModel | |
} | |
}); | |
function CheckboxSelectionModel(options) { | |
var _ranges = []; |
View executecommand.cs
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 ExecuteCommand(String checkOutFile) | |
{ | |
int ExitCode; | |
ProcessStartInfo ProcessInfo; | |
Process process; | |
ProcessInfo = new ProcessStartInfo(checkOutFile); | |
ProcessInfo.CreateNoWindow = true; | |
ProcessInfo.UseShellExecute = false; | |
ProcessInfo.WorkingDirectory = System.IO.Path.GetDirectoryName(checkOutFile); |
View program.cs
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
private static void RunSelectedTests(List<String> apexClasses) | |
{ | |
using (var cmdProcess = InitCmdProcess()) | |
{ | |
using (StreamWriter cmdProcessWriter = cmdProcess.StandardInput) | |
{ | |
var selectedTests = string.Join(",", apexClasses); | |
cmdProcessWriter.WriteLine("sfdx force:apex:test:run -n " + selectedTests);// + " -d \"c:\\my stuff\\logs\""); | |
} |
View program.cs
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
private static void RunSelectedTests(List<String> apexClasses) | |
{ | |
using (var cmdProcess = InitCmdProcess()) | |
{ | |
using (StreamWriter cmdProcessWriter = cmdProcess.StandardInput) | |
{ | |
var selectedTests = string.Join(",", apexClasses); | |
cmdProcessWriter.WriteLine("sfdx force:apex:test:run -n " + selectedTests);// + " -d \"c:\\my stuff\\logs\""); | |
} |
NewerOlder