弹来弹去跑马灯!

上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 38 下一页
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Draw 阅读全文
posted @ 2021-07-12 16:31 wgscd 阅读(1307) 评论(1) 推荐(0)
摘要: <InkCanvas Name="inkCanvas"></InkCanvas> <Button Name="btnRecognize" Content="RecognizeAsync" HorizontalAlignment="Left" Height="104" Margin="0,0,0,0" 阅读全文
posted @ 2021-06-22 17:28 wgscd 阅读(258) 评论(0) 推荐(0)
摘要: 这个函数在处理循环时可以每生成一个数据就返回一个数据让主函数进行处理: static void Main(string[] args) { foreach (var item in GetNumbers()) Console.WriteLine("Main process. item = " + i 阅读全文
posted @ 2021-06-22 10:10 wgscd 阅读(123) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Runtime.InteropServic 阅读全文
posted @ 2021-06-18 14:09 wgscd 阅读(194) 评论(0) 推荐(0)
摘要: 模拟10个线程,每个线程模拟100次取钱: 其实就是相当于1000个人来同时取钱。当然实际情况是取钱的人分布在不同的地区的取款机取钱。同一个取款机只能一个人操作。 关键是要保证取钱的余额要准确,不能在多人同时操作的时候计算失误,于是要在计算余额的时候锁住。lock关键作用在于此。 static vo 阅读全文
posted @ 2021-06-17 14:46 wgscd 阅读(206) 评论(1) 推荐(0)
摘要: public interface IService { void DoSomething(ref string a); void DoSomething2(out string a); } [TestMethod] public void TestRefPara() { var service = 阅读全文
posted @ 2021-06-09 17:35 wgscd 阅读(135) 评论(0) 推荐(0)
摘要: 测试: public class UnitTest1 { [TestMethod] public void TestMethod1() { Mock<TestClass> moc = new Mock<TestClass>(); moc.Setup(x => x.GetItem(It.IsAny<i 阅读全文
posted @ 2021-06-09 15:37 wgscd 阅读(7439) 评论(0) 推荐(0)
摘要: public static Size ScreenSize { get { //screen resolution var height = DisplayInformation.GetForCurrentView().ScreenHeightInRawPixels; var width = Dis 阅读全文
posted @ 2021-06-07 14:23 wgscd 阅读(117) 评论(0) 推荐(0)
摘要: <DataGrid > <DataGrid.CellStyle> <Style TargetType="DataGridCell"> <Style.Triggers> <Trigger Property="IsSelected" Value="True"> <Setter Property="Bac 阅读全文
posted @ 2021-05-12 14:31 wgscd 阅读(2486) 评论(0) 推荐(0)
摘要: <Page x:Class="Win2DDemo.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/ 阅读全文
posted @ 2021-04-09 16:58 wgscd 阅读(139) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 38 下一页