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
#r "System.Windows.Forms" | |
#r "System.Drawing" | |
using System.Windows.Forms; | |
using System.Drawing; | |
using System; | |
//Application.EnableVisualStyles(); | |
Application.Run(new Form1()); | |
static void InitializeComponent() |
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 static TimeSpan SaateCevir(int lTime) | |
{ | |
return new TimeSpan( | |
(lTime - (lTime % 65536)) / 65536 / 256, | |
(lTime - (lTime % 65536)) / 65536 - ((lTime - (lTime % 65536)) / 65536 / 256) * 256, | |
((lTime % 65536) - ((lTime % 65536) % 256)) / 256); | |
} | |
public static DateTime GuneCevir(int lDate) |
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; | |
using System.Windows.Forms; | |
using PvDotNet; | |
using PvGUIDotNet; | |
using System.Drawing; | |
namespace eBus_Connection | |
{ | |
public partial class MainForm : Form | |
{ |
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; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Collections.ObjectModel; | |
using System.Collections.Specialized; | |
using System.ComponentModel; | |
using System.Text; | |
namespace PamServices.Classes { |
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.IO; | |
using System.Collections.Generic; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using System; | |
/* Usage: | |
var pattern = new List<CopyOrder> { ... }; | |
FileProcessor.Start(pattern); | |
*/ |
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; | |
using System.Collections.ObjectModel; | |
using System.Collections.Specialized; | |
/// <summary> | |
/// キーが値に埋め込まれているコレクションを提供します。 | |
/// </summary> | |
/// <typeparam name="TKey">コレクション内のキーの型。</typeparam> | |
/// <typeparam name="TItem">コレクション内の項目の型。</typeparam> | |
public class ObservableKeyedCollection<TKey, TItem> : KeyedCollection<TKey, TItem>, INotifyCollectionChanged |
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
protected override void OnParentChanged(EventArgs e) | |
{ | |
base.OnParentChanged(e); | |
if (parentForm != null) | |
{ | |
parentForm.Closing -= parentForm_Closing; | |
} | |
parentForm = FindForm(); |
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
#r "System.Windows.Forms" | |
#r "System.Drawing" | |
using System.Windows.Forms; | |
using System.Drawing; | |
using System; | |
using System.Runtime.InteropServices; | |
using System.Diagnostics; | |
Application.Run(new Form1()); |
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
#!/usr/bin/env zsh | |
datadir=${XDG_DATA_HOME:-$HOME/.local/share}/windows | |
mkdir -m 0700 -p $datadir | |
git -C $datadir init | |
logfile=$datadir/windows-vms | |
exec >>$logfile | |
date=$(date) | |
echo | |
echo "# $date" | |
curl -fsSL https://developer.microsoft.com/en-us/microsoft-edge/api/tools/vms/ | \ |