본문 바로가기

Programing (프로그래밍)/WPF & C# (C Sharp)

WPF & C# - IP Address Check ( IP 주소 체크 확인 하기 / 192.168.0.1:8080 ) WPF & C# - IP Address Check ( IP 주소 체크 확인 하기 / 192.168.0.1:8080 ) IP Address Check ( IP 주소 체크 확인 ) ex) 192.168.0.1:8080 123456789101112131415161718192021222324252627282930313233343536373839404142//IP Checkint[] IPCheck(string ip){ string[] temp = new string[4]; int port = 0; int[] ipAddress = new int[5]; try { temp = ip.Trim().Split('.'); if (temp.Count() == 4) { if (temp[3].Contains(":")) { por.. 더보기
WPF & C# - 미라캐스트 사용 가능여부 디바이스 확인 ( isMiraCast / MiraCast Support Device ) WPF & C# - 미라캐스트 사용 가능여부 디바이스 확인 ( isMiraCast / MiraCast Support Device ) 미라캐스트 사용가능한 제품인지 여부를 한번에 확인하기 위한 윈도우용 프로그램이다. MainWindow.xaml 123 https://insurang.tistory.comColored by Color Scriptercs MainWindow.xaml.cs 1234private void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e){ System.Diagnostics.Process.Start(e.Uri.AbsoluteUri);}Colored by Color Scriptercs 더보기
WPF & C# - Microsoft.Expression.Shapes.Arc ( Behind Code / Ring / 링 비하인드코드로 입력하기 ) WPF & C# - Microsoft.Expression.Shapes.Arc ( Behind Code / Ring / 링 비하인드코드로 입력하기 ) MainWindow.xaml 123 cs MainWindow.xaml.cs using System;using System.Windows;using System.Windows.Controls;using System.Windows.Media;using System.Windows.Threading;using Microsoft.Expression.Shapes; 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626.. 더보기
WPF & C# - 핑 테스트 Ping Test ( PingOptions Class ) WPF & C# - 핑 테스트 Ping Test ( PingOptions Class ) MainWindow.xaml 1234 Colored by Color Scriptercs MainWindow.xaml.cs 12345678910111213141516171819202122232425262728private void btn_Click(object sender, RoutedEventArgs e){ Ping pingSender = new Ping(); PingOptions options = new PingOptions(); // Use the default Ttl value which is 128, // but change the fragmentation behavior. options.DontFragment.. 더보기
WPF & C# - FileSystemWatcher 파일시스템감시 ( 실시간 폴더 및 파일 변경사항 체크 ) WPF & C# - FileSystemWatcher 파일시스템감시 ( 실시간 폴더 및 파일 변경사항 체크 ) MainWindow.xaml 1 2 3 4 5 6 7 Colored by Color Scripter cs MainWindow.xaml.cs 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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 using System; us.. 더보기
WPF & C# - NPKI 공인인증서 폴더 위치 열기 ( Folder Open Path ) WPF & C# - NPKI 공인인증서 폴더 위치 열기 ( Folder Open Path ) MainWindow.xaml 123 Colored by Color Scriptercs MainWindow.xaml.cs 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788private void btn_Click(object sender, RoutedEventArgs e){ AppData_NPKI(); Path_NPKI(); Path_x86_NPKI();} //인증서 목.. 더보기
WPF & C# - 웹페이지에서 JSONString 값 가져오기 ( JSON / PHP / WEB / JSON_UNESCAPED_UNICODE / Newtonsoft.Json ) WPF & C# - 웹페이지에서 JSONString 값 가져오기 ( JSON / PHP / WEB / JSON_UNESCAPED_UNICODE / Newtonsoft.Json ) Newtonsoft.Json 추가하기참조추가 > NuGet 패키지 관리 > 찾아보기 > Newtonsoft.Json > 설치 json.php PHP ( json string 생성하기 )123456Colored by Color Scriptercs 출력{"korean":"한글","english":"Hello"} MainWindow.xaml 1234 Colored by Color Scriptercs MainWindow.xaml.cs using System;using System.IO;using System.Net;using Syste.. 더보기
WPF & C# - File Open Copy Move Rename ( 파일 열기 / 복사하기/ 이동하기 / 이름변경하기 ) WPF & C# - File Open Copy Move Rename ( 파일 열기 / 복사하기/ 이동하기 / 이름변경하기 ) MainWindow.xaml.cs 123456789101112 Colored by Color Scriptercs MainWindow.xaml.cs 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970using Microsoft.Win32;using System.IO;using System.Windows; string file = ""; // 파일 Path // 파일열기private void btnOpe.. 더보기