d:DataContext는 WPF에서 디자인 타임에만 사용되는 ViewModel 바인딩입니다. 주로 Visual Studio의 XAML 디자이너 미리보기에서 실제 데이터 바인딩 결과를 확인하고 싶을 때 사용합니다. xmlns:local="clr-namespace:YourApp.ViewModels" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DataContext="{d:DesignInstance Type=local:Ma..
No data is available for encoding 51949. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method. >> System.Text.Encoding.CodePages Nuget Package를 설치한다. c# - System.NotSupportedException: No data is available for encoding 1252 - Stack Overflow
MSSQL HashBytes Sqlparameter Type Error Parameter Type Varchar != Nvarchar HashBytes different binary value -->> Sovled 1. var _pWDs = new SqlParameter("@PWDs", SqlDbType.VarChar,500); _pWDs.Value = Ubody.PWD2; // Query String comm.CommandText += " select * from UidTable where password = Hashbyte('SHA2_256',@PWDs); comm.Parameters.Add(_pWDs); Solved 2. comm.CommandText += " select * from UidTabl..

serial.DataReceived 이벤트는 주 스레드가 아닌 보조 스레드에서 발생 UI요소인 Binding 된 TextBox의 Text를 변경하려 하면 Thread Exception 오류가 발생한다. UI ViewModel private string? _rF_IDS; public string? RF_IDS { get { return _rF_IDS; } set { _rF_IDS = value; OnPropertyChanged(nameof(RF_IDS)); } } public HomeViewModel() { RFConnectCommand = new RFConnectCommand(this); } Command private readonly HomeViewModel _viewModel; public RFCon..

public MainWindow() { InitializeComponent(); txtUsername.Text = Properties.Settings.Default._TextBox; radio_1.IsChecked = (Nullable)Properties.Settings.Default._RadioButton1 is null ? false: Properties.Settings.Default._RadioButton1; radio_2.IsChecked = (Nullable)Properties.Settings.Default._RadioButton2 is null ? false : Properties.Settings.Default._RadioButton2; } 속성> 설정> 일반
int sumvalue = Result_Table.AsEnumerable().Sum(x => x.Field(Result_Table.Columns[i].ColumnName)) int count = dataTable.AsEnumerable() .Count(row => row.Field("Column-A") == "Y" || row.Field("Column-A") == "N"); 출처: c# - Linq query to count field in datatable - Stack Overflow
C# LINQ Left join of DataTables Join 키가 두개일경우 on new { X1 = tb1.Field("ids"), X2 = tb1.Field("tdate") } equals new { X1 = tb2.Field("ids"), X2 = tb2.Field("odate") } _____________________________________________________________________________________________________________________ var query1 = from tb1 in DT1.AsEnumerable() join tb2 in DT2.AsEnumerable() on new { X1 = tb1.Field("ids"), X2 = tb..
int byte_int = 0; byte[] rcvByteFinal = new byte[10]; // RF카드 10자리 Byte 세팅 private void serial_DataReceived(object sender, SerialDataReceivedEventArgs e) { try { if (!serial.IsOpen) return; // serial 오픈 확인. int bytes = serial.BytesToRead; byte[] buffer = new byte[bytes]; byte[] rcvByte = new byte[bytes]; serial.Read(buffer, 0, bytes); Array.Copy(buffer, 0, rcvByte, 0, bytes); // buffer 0 위치부터 by..
먼저 Orderby( e=> e.Field("A1")). ThenBy(e => e.Field("A2")) 또는 ThenByDescending(e => e.Field("A2")) DataTable query2 = new DataTable(); query2 =Result_DTL.AsEnumerable() .GroupBy(row => new { TEC1 = row.Field("a1"), Grade1 = row.Field("a2") }) .Select(gcs => { var row = Result_DTL.NewRow(); row["a1"] = gcs.Key.TEC1; row["a2"] = gcs.Key.Grade1; return row; }) .OrderBy(e => e.Field("a1")).ThenByDes..
- Total
- Today
- Yesterday
- ClickOnce 인증서 인증기간 변경
- Entry '' has empty native path
- ssl_client_socket_impl.cc
- Xamarin Firebase Phone Auth
- WPF Datagrid Cell Value Change
- Xamarin.Ios Firebase Phone Auth
- WPF Scrollviewer in ScrollViwer
- 서버 수준의 URN 필터
- c# Encrypt / Decrypt
- Microcharts
- 암호 마스터키
- C# LINQ Left join
- FileStream Add Byte
- GetCellContent CheckBox Value
- Xamarin.Forms
- Xamarin.Ios Firebase Phone SMS OTP Send
- Xamarin Firebase Phone User Add
- SkiaSharp
- Windows IIS FTP 디렉토리 목록 오류
- WPF Textbox
- Embeded 한글Font적용
- Label Text LineBreak in Xaml
- 연산자 뒤에 피연산자가 없습니다.
- WPF Excel Export Microsoft.Office.Interop 성능향상(열 기준으로 복사)
- Xamarin reCAPTCHA
- Xamarin.Ios Firebase Phone User Add
- Linux SSH Multi Computer Join
- Xamarin SMS OTP Send
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |