2010-01-01ãã1å¹´éã®è¨äºä¸è¦§
é層 â TCP/IPã¢ãã« â OSIåç §ã¢ãã« +----------------------+ +----------------------------------+ | | | ã¢ããªã±ã¼ã·ã§ã³å±¤ (第7層/L7) | | | +----------------------------------+ | ã¢ããªã±ã¼ã·ã§ã³å±¤ | | ãã¬ã¼ã³ãã¼ã·ã§ã³å±¤ (第6層/L6) | | | +â¦
â ãªãã¬ã¼ã¿ï¼Operatorï¼ * æ¼ç®åã®ãªã¼ãã¼ãã¼ã * ç¬èªä½æããã¯ã©ã¹ãªã©ã«ä½¿ããã æ§æ public static æ»ãå¤ã®å operatoræ¼ç®å (å¼æ°) ä¾ public static bool operator ==(DataList source1, DataList source2) { return ... // boolã®æ»ãå¤ } pâ¦
â Binding.Parse ã¤ãã³ã * ãã¼ã¿é£çµã³ã³ããã¼ã«ã®å¤ãå¤æ´ãããã¨çºçãã ConvertEventHandler ããªã²ã¼ã * Binding.Parse ã¤ãã³ãããã³ Format ã¤ãã³ããå¦çããã¡ã½ãã åèæç® http://blogs.msdn.com/b/nakama/archive/2009/02/26/part-1.aâ¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2010/12/12/164101 ã®ç¶ãã ä»åº¦ã¯ãEvent (ã¤ãã³ã)ã«ã¤ãã¦ãåãä¸ããã â ã¤ãã³ã * ããã¯ã©ã¹ã§çºçããã¤ãã³ãããä»ã®ã¯ã©ã¹ã«ä¼ããããã«ä½¿ç¨ â å©ç¨æé ï¼ï¼ããªã²ã¼ãã®å®ç¾© ï¼ï¼ã¤ãã³â¦
â FxCop : ã³ã¼ãã£ã³ã°è¦ç´ã«å¾ã£ã¦ãããåæãããã¼ã« * ãã¤ã¯ãã½ãããããªã¼ã§æä¾ãã.NETç¨ã½ã¼ã¹è§£æãã¼ã« * ã¢ã»ã³ããªåä½ã§è§£æã(ã ããVBã§ã解æå¯è½) ã¤ã³ã¹ãã¼ã«åã®äºåç¢ºèª ãC:\Program Files\Microsoft FxCop X.XXãã¨ãããã©ã«ãâ¦
â ãµã³ãã« ã¢ãã¯å¯¾è±¡ã¤ã³ã¿ã¼ãã§ã¤ã¹ namespace NUnitForm { public interface ISampleInterface { int Sum(int value1, int value2); int Max(int value1, int value2); } } ãã¹ãã³ã¼ã using System; using NUnit.Framework; using Moq; // 追å usinâ¦
â Mockã¤ã³ã¹ã¿ã³ã¹ä½æã¨Mockãªãã¸ã§ã¯ãåå¾ æ§æ // ãã¹ããããã¯ã©ã¹ã®ã¢ãã¯ãªãã¸ã§ã¯ããä½æ Mock<対象ã¨ããã¤ã³ã¿ã¼ãã§ã¤ã¹ã»ã¯ã©ã¹> mock = new Mock<対象ã¨ããã¤ã³ã¿ã¼ãã§ã¤ã¹ã»ã¯ã©ã¹>(); mock.Setup(m => m.ãã¹ããããã¡ã½ããå(ãã©â¦
â ã¢ãã¯ã«ã¤ã㦠* 以ä¸ãåèã http://journal.mycom.co.jp/articles/2009/06/15/moq/index.html http://blogs.wankuma.com/masaru/archive/2010/12/03/195469.aspx â Moq * èªã¿æ¹ã¯ãã¢ãã㥠â ç°å¢è¨å® / NuGetç·¨ https://blogs.yahoo.co.jp/dk521123â¦
â ä½ææé [1] VS2010 Expressã®å ´åãæ°ããããã¸ã§ã¯ããä½æãã ãã®ããã¸ã§ã¯ããå³ã¯ãªãã¯[追å ]-[ã¦ã¼ã¶ã³ã³ããã¼ã«]ãé¸æ (æ°ããããã¸ã§ã¯ããããªãã¦ãã§ãããã©ã Express以å¤ãªããããã¸ã§ã¯ãä½æã®éã«ãWindowsã³ã³ããã¼ã«ã©ã¤ãâ¦
â Button ãµã³ãã« ButtonTester buttonTester = new ButtonTester("button1"); // å®ç¾© buttonTester.Click(); // ã¯ãªã㯠â TextBox ãµã³ãã« TextBoxTester textTester = new TextBoxTester("textBox1"); // å®ç¾© Assert.AreEqual(255, textTester["MaxLâ¦
â ãã¶ã¤ã³ * åãããããããã«ã·ã³ãã«ã«ãã * Textbox : 1 * button : 1 â ãµã³ãã«ã³ã¼ã * ãã¶ã¤ã³([NUnitFormSample]-[NUnitSampleForm.cs])ã¨ã¯ å¥ããã¸ã§ã¯ã(以ä¸ã®ä¾ã§ã¯ãFormTestã)ã§ããã¹ãã¯ã©ã¹ãè¨è¿°ãã ã³ã¼ã using NUnit.Extensioâ¦
â è¨å® ç°å¢ * VS : Microsoft Visual Studio 2010 Express (10.0.3) * NUnit : NUnit-2.5.9.10348.msi (æ°ãããªãã¨VS2010ã«å¯¾å¿ãã¦ããªãã®ã§æ³¨æ) æé åèè³æãåèã«ããã°ã§ããããVS2010ç¨ã«ã¡ãã£ã¨ä¿®æ£ 1. ãã¦ã³ãã¼ããã¼ã¸ããç»é²ãè¡ããâ¦
â ã¯ããã« Delegate ã«ã¤ãã¦ãå¦ãã§ãã è£è¶³ï¼Delegate ã®è±èªçæå³ (å) 代表è ãä½¿ç¯ (å) å§ä»»ããã代表ãç«ã¦ã â ããªã²ã¼ã (delegate) ããªã²ã¼ãã使ãã¨ãã¤ãã³ããä½æããï¼å¦çã渡ãï¼ãã¨ãå¯è½ * ããªã²ã¼ã : å§è²(=ä»ã®ãã®ã«è²ã£ã¦â¦
â DataGridViewã«é¢ãããããã ãï¼ã Checkboxã追å ãï¼ã Checkboxã«ãã§ãã¯ããããã©ãã調ã¹ã ãï¼ã DataGridViewã®è¡¨ç¤ºå 容ãå¤æ´ãã ãï¼ã DataGridViewã®å¤ããã¦ã¹ãªã©é¸æããå ´åããã®è¡ãåå¾ããã ãï¼ã BindingSource ãéã㦠Daâ¦
â 使ç¨ãã¦ãã主ãªã³ã³ããã¼ã« * TextBox : 3ãButton : 1 * Label : 1 * BackgroundWorker/ProgressBar : å1 * CheckBox : 2 (ãªãã·ã§ã³ã»å¿ é ãããªã) â ãµã³ãã« // ãã¡ã¤ã«åã®ãã©ã¼ããã [FileName][FileNo].[Extention] private readonly striâ¦
â RadioButton ã°ã«ã¼ãå * è¤æ°ã®ã°ã«ã¼ããä½æããå ´åã¯ãGroupBoxã³ã³ããã¼ã«ã¾ã㯠Panelã³ã³ããã¼ã«ä¸ã«RadioButtonãé ç½® * ã°ã«ã¼ãåããªãã¨ããã©ã¼ã ä¸ã«ãããã¹ã¦ã®RadioButtonã¯ãã¹ã¦åãã°ã«ã¼ãã¨è¦ãªããã ãµã³ãã« if (radioButtonâ¦
â ã¤ã³ã¿ã¼ãã§ã¤ã¹ IWin32Windowã使ãã â Formã®ãããã㣠StartPosition ãããã㣠* Windowsãã©ã¼ã ã®éå§è¡¨ç¤ºä½ç½®ãè¨å®ãã ç¨®é¡ https://docs.microsoft.com/ja-jp/dotnet/api/system.windows.forms.formstartposition?view=netframework-4.7.2 â¦
â ã¯ããã« https://blogs.yahoo.co.jp/dk521123/30294576.html ã®ç¶ãã ä»åã¯ããã¾ãã¾ãªä½¿ãæ¹ãã¾ã¨ããã â è¤æ°ã³ã³ãããã¯ã¹ãé£åãããã«ã¯ * 以ä¸ã®é¢é£è¨äºãåç §ã®ã㨠ComboBox ï½ è¤æ°ã³ã³ãããã¯ã¹ãé£åãããã«ã¯ ï½ https://blogs.yahâ¦
対ç[1] åæåæã«ã以ä¸ã®ã³ã¼ãã追å ãã¦ãã this.SetStyle(ControlStyles.DoubleBuffer, true); this.SetStyle(ControlStyles.UserPaint, true); this.SetStyle(ControlStyles.AllPaintingInWmPaint, true); åèè³æ http://www.atmarkit.co.jp/fdotnâ¦
â ã¯ããã« ãããã§æå®ããæéã«ããã°ã©ã ãèµ·åãããã£ãã®ã§ 調ã¹ã¦ã¿ãã ç®æ¬¡ ãï¼ãæå®ããæéã«ããã°ã©ã ãèµ·åãã ãï¼ãã¿ã¹ã¯ã確èªãã ãï¼ãã¿ã¹ã¯ãåé¤ãã ãï¼ãæå®ããæéã«ããã°ã©ã ãèµ·åãã æ§æ at ãæé(ä¾ã17:20ã)ãâ¦
â ã¯ããã« ãï¼ãããããã¡ã¤ã«ã«å¼æ°ã渡ã ãï¼ãå¤ã®è¨å® ãï¼ãå¤ã®åç § ãï¼ãå¤ã®è¨ç® ãï¼ãã¦ã¼ã¶ããã®å ¥åå¤ãå¤æ°ã«è¨å® ãï¼ãæåå ãï¼ãé 延ç°å¢å¤æ° ãï¼ãããããã¡ã¤ã«ã«å¼æ°ã渡ã å¼æ° 説æ %0 {ããããã¡ã¤ã«åã表ã %1ï½%9 1çªâ¦
â ãµã³ãã« https://dk521123.hatenablog.com/entry/2010/11/22/230218 ã®ç¶ãã ä»åã¯ããã¡ã¤ã«ã»ãã£ã¬ã¯ããªã®æ±ãã ç®æ¬¡ ãï¼ãæå®ã®ãã¹é ä¸ã®ãã£ã¬ã¯ããªã»ãã¡ã¤ã«ãåå¾ãã ãï¼ãæå®ã®ãã¹é ä¸ã«ãã£ã¬ã¯ããªãåå¨ããã ãï¼ãç¾å¨ã®ãã¹â¦
â ã¯ããã« ãã¡ã¤ã«ã»ãã£ã¬ã¯ããªã®ã³ãã¼ï¼åé¤ãæ±ãã ç®æ¬¡ ãï¼ãã³ãã¼ ãï¼ãåé¤ ï¼ï¼ãã¡ã¤ã«åé¤ ï¼ï¼ãã£ã¬ã¯ããªåé¤ ãï¼ãã³ãã¼ ç¡æ¡ä»¶ã§ä¸æ¸ãä¿å REMãA.txtãããB.txtãã¨ãã¦ã³ãã¼ãã(ãB.txtãããã£ã¦ãä¸æ¸ã) @echo off xcopy Aâ¦
â å®è£ ä¸ã§ã®å¿ è¦äºé * 以ä¸ã®3ã¤ã®ã¤ãã³ãã¨ãã£ã³ã»ã«æã®å¦çãå®è£ ããå¿ è¦ããã [1] éãå¦çãè¡ããDoWorkãã¤ãã³ãã»ãã³ãã©ï¼å¥ã¹ã¬ããã§å®è¡ãããï¼ [2] é²æç¶æ³ã表示ããããã®ãProgressChangedãã¤ãã³ãã»ãã³ãã© [3] å¦çå®äºæã«â¦
â ä»æ§ * æåã³ã¼ããUTF8(BOMãã)ã * åºåãæåã,ã * ãã¼ã¿ãã"ãã§å²ã â ãµã³ãã« using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Windows.Forms; namespace WindowsFormsApp1 { public parâ¦
â ä¸æçã«å¶ç´ãå¤ããã * DataTable.BeginLoadData ããã³ DataTable.EndLoadData ã¡ã½ãããå©ç¨ãã ãµã³ãã« public void Xxxx(DataTable table) { try { // å¶ç´ãä¸æ¦å¤ã table.BeginLoadData(); // æ´æ°å¦ç } catch (Exception ex) { // ä¾å¤å¯¾å¿â¦
â OrderByã«é¢ããã¡ã½ãã OrderByã¡ã½ãããOrderByDescendingã¡ã½ãã * Linqã«ããã¦ãæé ãéé ã®ä¸¦ã³æ¿ãã¯ãOrderByã¡ã½ãããOrderByDescendingã¡ã½ããã§è¡ã ThenByã¡ã½ãããThenByDescendingã¡ã½ãã * OrderByã¡ã½ãããOrderByDescendingã¡ã½â¦
â Visual Studio 2010㧠S2Container.Net(Quill) ã使ã http://www.atmarkit.co.jp/fdotnet/special/seasarnet01/seasarnet01_01.html ãåèã«ãã¦ãä½æã â æé S2Containeråå¾ã¨VS2010ã®ç°å¢è¨å® [1] S2Containerã以ä¸ã®URLãããã¦ã³ãã¼ãï¼ãã®ä¾â¦
Visual Studio 2010㧠Log4net ã使ã * VS2010ã§ä½¿ç¨ã§ããªãã¨æã£ã¦ãããããããã§è§£æ±ºæ¹æ³ãè¦ã¤ããã®ã§ã ãã®æ¹æ³ãå«ãã¦ãç·åçã«ããæ¹ãè¨é²ãã¦ãã æé log4netåå¾ã¨VS2010ã®ç°å¢è¨å® [1] log4netã以ä¸ã®URLãããã¦ã³ãã¼ãï¼ãã®ä¾ã§ã¯â¦
â Any æ§æ bool exists = [ãã¼ã¿ã»ãã].[ãã¼ãã«].Any(x => x.[ãã¼ãã«ã®é ç®] == [æ¯è¼å¯¾è±¡]) ãµã³ãã« this.resultTableAdapter.Fill( mdbDataSet.ObservationResult); foreach (masterDataSet.PersonRow row in masterDataSet.Person) { if (testDatâ¦