본문 바로가기

Programing (프로그래밍)274

[자작] WPF & C# - 폴더트리를 StackPanel 로 구성 _ 슬라이드액션 첨가 [자작] WPF & C# - 폴더트리를 StackPanel 로 구성 _ 슬라이드액션 첨가 MainWindow.xaml 12345678910111213141516 Colored by Color Scriptercs MainWindow.xaml.cs 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123.. 2018. 9. 14.
[자작] WPF & C# - 폴더트리를 StackPanel 로 구성 [자작] WPF & C# - 폴더트리를 StackPanel 로 구성 MainWindow.xaml 1234567891011121314 Colored by Color Scriptercs MainWindow.xaml.cs 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384public MainWindow(){ InitializeComponent(); dirSearch(@".\폴더트리\");} int imageCount = 0; // 이미지 총 개수private void dirSea.. 2018. 9. 10.
WPF & C# - DNSLookUP ( 책 : C# 5.0 프로그래밍 실전 프로젝트 / Book / IPAddress / Contans / Replace ) WPF & C# - DNSLookUP ( 책 : C# 5.0 프로그래밍 실전 프로젝트 / Book / IPAddress / Contans / Replace ) MainWindow.xaml 12345678910 Colored by Color Scriptercs MainWindow.xaml.cs 12345678910111213141516171819202122232425262728private void btn_Click(object sender, RoutedEventArgs e){ string HostName = null; if (tbx.Text.Contains("://") == true) // 해당 문자열 포함여부 확인 { HostName = tbx.Text.Replace("http://", ""); // .. 2018. 9. 7.
WPF & C# - IP 주소 추출기 ( 책 : C# 5.0 프로그래밍 실전 프로젝트 / Book / IPAddress / GetHostName / GetHostAddresses / 내부IP / 외부IP / 공인IP / 내부아이피 / 외부아이피 / 공인아이피 ) WPF & C# - IP 주소 추출기 ( 책 : C# 5.0 프로그래밍 실전 프로젝트 / Book / IPAddress / GetHostName / GetHostAddresses / 내부IP / 외부IP / 공인IP / 내부아이피 / 외부아이피 / 공인아이피 ) MainWindow.xaml 12345 Colored by Color Scriptercs MainWindow.xaml.cs 12345678910111213141516171819private void btn_Click(object sender, RoutedEventArgs e){ try { string hostname = null; IPAddress[] ips; hostname = Dns.GetHostName(); // 로컬 컴퓨터 호스트 명 ip.. 2018. 9. 7.
WPF & C# - 폴더트리 코드 소스 ( FolderTree / TreeView / 재귀함수 / 루프 / roop ) WPF & C# - 폴더트리 코드 소스 ( FolderTree / TreeView / 재귀함수 / 루프 / roop ) MainWindow.xaml.cs 1 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 private void Window_Loaded(object sender, RoutedEventArgs e) { // foreach (string str in Directory.GetDirectories("").. 2018. 9. 7.
WPF & C# - Scrolling StackPanle ( 스택패널 스크롤링 / FluidMoveBehavior / Cnavas / 캔버스 ) WPF & C# - Scrolling StackPanle ( 스택패널 스크롤링 / FluidMoveBehavior / Cnavas / 캔버스 ) MainWindow.xaml 12345678910111213141516171819202122232425262728293031 Colored by Color Scriptercs MainWindow.xaml.cs 1234567891011121314151617181920private void btn1_Click(object sender, RoutedEventArgs e){ Point ptStart = stp.TranslatePoint(new Point(0, 0), canvas); Point ptTarget = stp1.TranslatePoint(new Point(0,.. 2018. 9. 4.