분류 전체보기86 C# (NPOI) Excel 읽기 (NPOI) Excel 읽기 1. 누겟에서 NPOI 설치 2. code 작성 using NPOI.HSSF.UserModel; using NPOI.SS.UserModel; using NPOI.XSSF.UserModel; using System; using System.Collections.Generic; using System.Data; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.. 2020. 8. 18. C# shader 참고 페이지 shader 참고 페이지 https://docs.microsoft.com/ko-kr/dotnet/api/system.windows.media.effects.shadereffect?view=netframework-4.7.2 ShaderEffect Class (System.Windows.Media.Effects) 를 사용하여 사용자 지정 비트맵 효과를 제공합니다.Provides a custom bitmap effect by using a . docs.microsoft.com 2020. 8. 18. C# Http Post File Upload C# Http Post File Upload private async void Button_Click(object sender, RoutedEventArgs e) { OpenFileDialog dlg = new OpenFileDialog(); dlg.Multiselect = true; if (dlg.ShowDialog() == true) { var result = await Upload(new List(dlg.SafeFileNames), new List(dlg.FileNames)); MessageBox.Show(result ? "성공" : "실패"); } } private async Task Upload(List fileNames, List filePaths) { try { var url = "http:.. 2020. 8. 14. C# TCP Client C# TCP Client class CTcpClient { TcpClient client; NetworkStream stream; private Thread m_ListenThread; string serverIP; string tvID; public delegate void OnMessageDele(string message); public event OnMessageDele OnMessage; public CTcpClient() { } public void Connect(string serverIP, string tvID) { this.serverIP = serverIP; this.tvID = tvID; m_ListenThread = new Thread(ConnectTCP); m_ListenThrea.. 2020. 8. 14. C# Multi Thread TcpServer C# Multi Thread TcpServer public class TcpServer { private static TcpServer _instance; public static TcpServer Instance { get { return _instance; } } private TcpListener m_TcpListener; private int _nPort = 13000; private string _sIPAddress; private List m_Clients; private Thread m_ListenThread; public TcpServer() { if (_instance == null) { _instance = this; } this.m_Clients = new List(); } publi.. 2020. 8. 14. C# TCPServer with WebSocket C# TCPServer with WebSocket public class TcpServerWS { private static TcpServerWS _instance; public static TcpServerWS Instance { get { return _instance; } } private TcpListener m_TcpListener; private int _nPort = 13000; private string _sIPAddress; private List m_Clients; private Thread m_ListenThread; public TcpServerWS() { this.m_Clients = new List(); } public void ServerStart() { m_ListenThre.. 2020. 8. 13. 이전 1 ··· 8 9 10 11 12 13 14 15 다음