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 string _Message; | |
public string Message { | |
get { return _Message; } | |
set { | |
if (_Message == value) return; | |
_Message = value; | |
RaisePropertyChanged("Message"); // 一文字でも書き間違えると動作しない | |
} | |
} |
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 _Message As String | |
Public Property Message As String | |
Get() | |
Return _Message | |
End Get | |
Set(value As String) | |
If _Message = value Return | |
_Message = value | |
RaisePropertyChanged("Message") |
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
' 日付型リテラルのサンプル | |
Sub Main() | |
Dim a = #2014-11-14# | |
Console.WriteLine(a.ToShortDateString()) ' 2014/11/14 | |
End Sub |
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
GrapeCity.Win.Editors.GcNumber, GrapeCity.Win.Editors.v50, Version=5.x.xxxx.xxx, Culture=neutral, PublicKeyToken=xxxx | |
GrapeCity.Win.Editors.GcNumber, GrapeCity.Win.Editors.v50, Version=5.x.xxxx.xxx, Culture=neutral, PublicKeyToken=xxxx | |
GrapeCity.Win.Editors.GcIme, GrapeCity.Win.Editors.v50, Version=5.x.xxxx.xxx, Culture=neutral, PublicKeyToken=xxxx | |
GrapeCity.Win.Editors.GcTextBox, GrapeCity.Win.Editors.v50, Version=5.x.xxxx.xxx, Culture=neutral, PublicKeyToken=xxxx | |
GrapeCity.Win.Editors.GcDate, GrapeCity.Win.Editors.v50, Version=5.x.xxxx.xxx, Culture=neutral, PublicKeyToken=xxxx | |
GrapeCity.Win.Editors.GcDateVallidater GrapeCity.Win.Editors.v50, Version=5.x.xxxx.xxx, Culture=neutral, PublicKeyToken=xxxx | |
GrapeCity.Win.Editors.GcNumberVallidater GrapeCity.Win.Editors.v50, Version=5.x.xxxx.xxx, Culture=neutral, PublicKeyToken=xxxx |
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
Option Explicit On | |
Option Strict On | |
#Region "名前空間" | |
Imports System.Collections | |
Imports System.Collections.Generic | |
Imports System.ComponentModel | |
Imports System.Text | |
Imports System.Windows.Forms |
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
Option Explicit On | |
Option Strict On | |
''' <summary> | |
''' <see cref="CheckedComboBox">CheckedComboBox</see> 用イベントパラメータクラス | |
''' </summary> | |
Friend Class CheckedComboBoxEventArgs | |
Inherits EventArgs | |
#Region "フィールド" |
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
SELECT | |
MKW.kokyaku_id, | |
MRK.id AS ryoukin_id, | |
MRK.name, | |
CASE WHEN COALESCE( MKW.waribiki_kubun_id, 0 ) <= 1 | |
THEN 0 ELSE 1 END AS waribiki_kubun_id, | |
COALESCE( MKW.waribiki_ritsu, 0 ) AS waribiki_ritsu, | |
COALESCE( MKW.waribiki_gaku, 0 ) AS waribiki_gaku | |
FROM | |
(SELECT DISTINCT id, name |
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
Dim query As String = _ | |
"SELECT " + _ | |
" MKW.kokyaku_id, " + _ | |
" MRK.id AS ryoukin_id, " + _ | |
" MRK.name, " + _ | |
" CASE WHEN COALESCE( MKW.waribiki_kubun_id, 0 ) <= 1 " + _ | |
" THEN 0 ELSE 1 END AS waribiki_kubun_id, " + _ | |
" COALESCE( MKW.waribiki_ritsu, 0 ) AS waribiki_ritsu, " + _ | |
" COALESCE( MKW.waribiki_gaku, 0 ) AS waribiki_gaku " + _ | |
"FROM " + _ |
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
string query = | |
"SELECT " + | |
" MKW.kokyaku_id, " + | |
" MRK.id AS ryoukin_id, " + | |
" MRK.name, " + | |
" CASE WHEN COALESCE( MKW.waribiki_kubun_id, 0 ) <= 1 " + | |
" THEN 0 ELSE 1 END AS waribiki_kubun_id, " + | |
" COALESCE( MKW.waribiki_ritsu, 0 ) AS waribiki_ritsu, " + | |
" COALESCE( MKW.waribiki_gaku, 0 ) AS waribiki_gaku " + | |
"FROM " + |
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
SELECT MKW.kokyaku_id, MRK.id AS ryoukin_id, MRK.name, CASE WHEN COALESCE( MKW.waribiki_kubun_id, 0 ) <= 1 THEN 0 ELSE 1 END AS waribiki_kubun_id, COALESCE( MKW.waribiki_ritsu, 0 ) AS waribiki_ritsu, COALESCE( MKW.waribiki_gaku, 0 ) AS waribiki_gakuFROM (SELECT DISTINCT id, name FROM m_ryoukin ORDER BY id) AS MRK LEFT JOIN m_waribiki MKW ON MRK.id = MKW.ryoukin_id AND MKW.id = @kokyaku_id |