09 2024 档案

摘要:Right click project/Properties/Publish Then click Publish Wizard step by step,then will create a setup.exe file in publish folder Click the setup.exe 阅读全文
posted @ 2024-09-30 21:43 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要:<Image Grid.Column="0" Source="pack://application:,,,/WpfApp431;component/Images/1.jpg" RenderOptions.BitmapScalingMode="Fant"/> <Image Grid.Column="1 阅读全文
posted @ 2024-09-30 20:53 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要:private static Mutex mtx = null; public MainWindow() { bool isCreateNew; string appName = System.IO.Path.GetFileName(System.Reflection.Assembly.GetExe 阅读全文
posted @ 2024-09-30 20:29 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp428.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2 阅读全文
posted @ 2024-09-30 19:00 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp427.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/ 阅读全文
posted @ 2024-09-30 18:51 FredGrit 阅读(4) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp426.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2 阅读全文
posted @ 2024-09-30 18:25 FredGrit 阅读(9) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp425.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/ 阅读全文
posted @ 2024-09-30 16:38 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp424.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/ 阅读全文
posted @ 2024-09-28 19:06 FredGrit 阅读(8) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp419.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2 阅读全文
posted @ 2024-09-28 15:45 FredGrit 阅读(6) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp418.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2 阅读全文
posted @ 2024-09-28 15:14 FredGrit 阅读(13) 评论(0) 推荐(0) 编辑
摘要:Install dapper using Dapper; using MySql.Data.MySqlClient; namespace ConsoleApp87 { internal class Program { static string connStr = @"Server=serverna 阅读全文
posted @ 2024-09-27 21:53 FredGrit 阅读(10) 评论(0) 推荐(0) 编辑
摘要:using System.Collections.Concurrent; using System.Diagnostics; namespace ConsoleApp85 { internal class Program { static void Main(string[] args) { try 阅读全文
posted @ 2024-09-26 22:17 FredGrit 阅读(4) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp417.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/ 阅读全文
posted @ 2024-09-26 17:52 FredGrit 阅读(35) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp416.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/ 阅读全文
posted @ 2024-09-26 11:58 FredGrit 阅读(14) 评论(0) 推荐(0) 编辑
摘要://https://img1.baidu.com/it/u=3991277133,2041185316&fm=253 <Image Source="https://img1.baidu.com/it/u=3991277133,2041185316&fm=253"/> Severity Code De 阅读全文
posted @ 2024-09-26 09:30 FredGrit 阅读(10) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp413.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2 阅读全文
posted @ 2024-09-25 10:37 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp412.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2 阅读全文
posted @ 2024-09-25 10:18 FredGrit 阅读(6) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp412.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2 阅读全文
posted @ 2024-09-25 09:46 FredGrit 阅读(4) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp411.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2 阅读全文
posted @ 2024-09-24 23:26 FredGrit 阅读(6) 评论(0) 推荐(0) 编辑
摘要:1. dotnet add package Pomelo.EntityFrameworkCore.MySql using Microsoft.EntityFrameworkCore; namespace ConsoleApp84 { internal class Program { static v 阅读全文
posted @ 2024-09-24 21:57 FredGrit 阅读(40) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp410.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2 阅读全文
posted @ 2024-09-24 10:52 FredGrit 阅读(6) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp408.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2 阅读全文
posted @ 2024-09-23 23:37 FredGrit 阅读(13) 评论(0) 推荐(0) 编辑
摘要:WindowState="Maximized" WindowStyle="None" <Window x:Class="WpfApp409.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xm 阅读全文
posted @ 2024-09-23 22:28 FredGrit 阅读(10) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp407.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2 阅读全文
posted @ 2024-09-23 22:04 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp406.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/ 阅读全文
posted @ 2024-09-23 18:12 FredGrit 阅读(6) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp403.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2 阅读全文
posted @ 2024-09-23 17:26 FredGrit 阅读(4) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp402.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/ 阅读全文
posted @ 2024-09-23 10:16 FredGrit 阅读(3) 评论(0) 推荐(0) 编辑
摘要:AllowsTransparency="True" WindowStyle="None" KeyDown="Window_KeyDown" public MainWindow() { InitializeComponent(); this.SizeChanged += MainWindow_Size 阅读全文
posted @ 2024-09-23 00:28 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要:<ListBox.ItemTemplate> <DataTemplate> <Grid> <Image Source="{Binding ImgUrl}" RenderOptions.BitmapScalingMode="LowQuality" Width="{Binding ActualWidth 阅读全文
posted @ 2024-09-23 00:06 FredGrit 阅读(7) 评论(0) 推荐(0) 编辑
摘要:CommandParameter pass SelectedItem of control <ListBox.ContextMenu> <ContextMenu> <MenuItem Header="Save Image" Command="{Binding SaveImgCommand}" Com 阅读全文
posted @ 2024-09-22 23:54 FredGrit 阅读(26) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp399.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2 阅读全文
posted @ 2024-09-22 23:03 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要:<DataGrid ItemsSource="{StaticResource booksData}" EnableColumnVirtualization="True" EnableRowVirtualization="True" FrozenColumnCount="2" AreRowDetail 阅读全文
posted @ 2024-09-22 20:15 FredGrit 阅读(6) 评论(0) 推荐(0) 编辑
摘要:<Grid> <DataGrid ItemsSource="{StaticResource booksData}" EnableColumnVirtualization="True" EnableRowVirtualization="True" RowDetailsVisibilityMode="V 阅读全文
posted @ 2024-09-22 20:09 FredGrit 阅读(25) 评论(0) 推荐(0) 编辑
摘要:<DataGrid ItemsSource="{StaticResource booksData}" ClipboardCopyMode="IncludeHeader"/> //xaml <Window x:Class="WpfApp398.MainWindow" xmlns="http://sch 阅读全文
posted @ 2024-09-22 19:55 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要:System.Collections.IList items = (System.Collections.IList)obj; var booksList = items.Cast<Book>()?.ToList(); 阅读全文
posted @ 2024-09-22 19:43 FredGrit 阅读(7) 评论(0) 推荐(0) 编辑
摘要:SelectedItems convert to IList as below failed; IList<Book> collection2 = (IList<Book>)obj; System.InvalidCastException HResult=0x80004002 Message=Una 阅读全文
posted @ 2024-09-22 19:42 FredGrit 阅读(25) 评论(0) 推荐(0) 编辑
摘要:private void SelectedCommandExecuted(object obj) { if (obj != null && obj is DataGrid dg) { if (dg != null) { var selectedBks = dg.SelectedItems; if ( 阅读全文
posted @ 2024-09-22 17:26 FredGrit 阅读(21) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp397.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2 阅读全文
posted @ 2024-09-22 14:48 FredGrit 阅读(25) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp397.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2 阅读全文
posted @ 2024-09-22 14:26 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要:<Window.Resources> <ObjectDataProvider x:Key="kindEnum" MethodName="GetValues" ObjectType="{x:Type sys:Enum}"> <ObjectDataProvider.MethodParameters> < 阅读全文
posted @ 2024-09-22 14:22 FredGrit 阅读(8) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp395.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2 阅读全文
posted @ 2024-09-21 22:00 FredGrit 阅读(3) 评论(0) 推荐(0) 编辑
摘要:<ComboBox ItemsSource="{StaticResource dataList}" SelectedIndex="0" VirtualizingPanel.IsContainerVirtualizable="True" VirtualizingPanel.IsVirtualizing 阅读全文
posted @ 2024-09-21 20:57 FredGrit 阅读(4) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp392.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2 阅读全文
posted @ 2024-09-21 19:45 FredGrit 阅读(3) 评论(0) 推荐(0) 编辑
摘要:<ComboBox x:Name="cbx" Grid.Row="0" Grid.Column="0" SelectedIndex="0" ItemsSource="{StaticResource booksData}" FontSize="20" Foreground="Red" Vertical 阅读全文
posted @ 2024-09-21 17:41 FredGrit 阅读(2) 评论(0) 推荐(0) 编辑
摘要:<ComboBox Grid.Row="0" Grid.Column="0" SelectedIndex="0" ItemsSource="{StaticResource booksData}" FontSize="20" Foreground="Red" VerticalAlignment="St 阅读全文
posted @ 2024-09-21 16:56 FredGrit 阅读(3) 评论(0) 推荐(0) 编辑
摘要:private void FillGridRandomly() { rowsColsSet = new HashSet<XY>(); if (gd != null) { gd.Children.Clear(); } for (int i = 0; i < 50; i++) { while (true 阅读全文
posted @ 2024-09-21 14:58 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要://custom control <UserControl x:Class="WpfApp389.ElpImageTbk" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schema 阅读全文
posted @ 2024-09-21 14:20 FredGrit 阅读(7) 评论(0) 推荐(0) 编辑
摘要:<ListBox.ItemTemplate> <DataTemplate> <local:ImageTbk UCImgUrl="{Binding DataContext.ImgUrl, RelativeSource={RelativeSource Mode=FindAncestor,Ancestor 阅读全文
posted @ 2024-09-21 13:45 FredGrit 阅读(60) 评论(0) 推荐(0) 编辑
摘要:When an items control is using a virtualizing panel and it contains a large number of complex items, setting IsDeferredScrollingEnabled to true can re 阅读全文
posted @ 2024-09-20 17:31 FredGrit 阅读(10) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp386.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/ 阅读全文
posted @ 2024-09-20 16:23 FredGrit 阅读(8) 评论(0) 推荐(0) 编辑
摘要:public class MyData : ObservableCollection<string> { public MyData() { for(int i=0;i<100000;i++) { Add($"{i+1}__{Guid.NewGuid().ToString("N")}"); } } 阅读全文
posted @ 2024-09-20 16:11 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要:<ListBox x:Name="lbx" SelectedIndex="0" ItemsSource="{Binding BooksCollection,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" VirtualizingPanel.IsCo 阅读全文
posted @ 2024-09-20 11:46 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要:<ListBox x:Name="lbx" SelectedIndex="0" ItemsSource="{Binding BooksCollection,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" VirtualizingPanel.IsCo 阅读全文
posted @ 2024-09-20 11:38 FredGrit 阅读(18) 评论(0) 推荐(0) 编辑
摘要://xaml <ListBox x:Name="lbx" SelectedIndex="0" ItemsSource="{Binding BooksCollection,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" VirtualizingPan 阅读全文
posted @ 2024-09-20 11:31 FredGrit 阅读(14) 评论(0) 推荐(0) 编辑
摘要:private Color GetRndColor() { Color cr = new Color(); cr.A = 255; cr.R = (byte)(rnd.Next(0, 255)); cr.G = (byte)(rnd.Next(0, 255)); cr.B = (byte)(rnd. 阅读全文
posted @ 2024-09-19 22:21 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要://usercontrol.xaml <UserControl x:Class="WpfApp381.ElpImgTbk" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schema 阅读全文
posted @ 2024-09-19 21:55 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要://converter using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.T 阅读全文
posted @ 2024-09-19 21:18 FredGrit 阅读(9) 评论(0) 推荐(0) 编辑
摘要://Register Messenger.Default.Register<object>(this, "ShowItemsCountToken", ShowItemsCount); //Send Messenger.Default.Send<object>(obj, "ShowItemsCount 阅读全文
posted @ 2024-09-18 22:18 FredGrit 阅读(12) 评论(0) 推荐(0) 编辑
摘要:<ListBox.ContextMenu> <ContextMenu> <MenuItem Header="Export NewtonSoftJson" FontSize="50" Foreground="Red" Command="{Binding ExportNewtonJsonCmd}" Co 阅读全文
posted @ 2024-09-18 21:44 FredGrit 阅读(8) 评论(0) 推荐(0) 编辑
摘要://usercontrol xaml <UserControl x:Class="WpfApp379.ImgTbk" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.m 阅读全文
posted @ 2024-09-18 21:35 FredGrit 阅读(9) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp378.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/ 阅读全文
posted @ 2024-09-18 19:53 FredGrit 阅读(16) 评论(0) 推荐(0) 编辑
摘要:Script Error,An error has occured in the script on this page. Do you want to continue running scripts on this page? //xaml <Window x:Class="WpfApp378. 阅读全文
posted @ 2024-09-18 18:29 FredGrit 阅读(19) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp377.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2 阅读全文
posted @ 2024-09-18 17:37 FredGrit 阅读(2) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp375.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2 阅读全文
posted @ 2024-09-18 16:37 FredGrit 阅读(27) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp372.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2 阅读全文
posted @ 2024-09-18 10:55 FredGrit 阅读(9) 评论(0) 推荐(0) 编辑
摘要://App.xaml <Application x:Class="WpfApp369.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.co 阅读全文
posted @ 2024-09-16 20:01 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要://xaml <DataGrid.ContextMenu> <ContextMenu> <MenuItem Header="Serialize Binary" Command="{Binding BinSerializeCmd}" CommandParameter="{Binding Relativ 阅读全文
posted @ 2024-09-16 17:43 FredGrit 阅读(8) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp367.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/ 阅读全文
posted @ 2024-09-14 23:42 FredGrit 阅读(6) 评论(0) 推荐(0) 编辑
摘要:Managed Debugging Assistant 'ContextSwitchDeadlock' : 'The CLR has been unable to transition from COM context 0x28ab560 to COM context 0x28ab4a8 for 6 阅读全文
posted @ 2024-09-14 15:36 FredGrit 阅读(7) 评论(0) 推荐(0) 编辑
摘要:public DelCmd ExportAllCmd { get; set; } public DelCmd ExportAllBinaryFormatterCmd { get; set; } public DelCmd DeserializeJsonFileCmd { get; set; } pu 阅读全文
posted @ 2024-09-14 12:48 FredGrit 阅读(7) 评论(0) 推荐(0) 编辑
摘要:Install-package newtonsoft.json <DataGrid.ContextMenu> <ContextMenu> <MenuItem Header="Export Selected" Command="{Binding ExportSelectedCmd}" CommandP 阅读全文
posted @ 2024-09-14 11:13 FredGrit 阅读(9) 评论(0) 推荐(0) 编辑
摘要:<ListBox ItemsSource="{Binding BooksCollection,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <ListBox.ItemTemplate> <DataTemplate> <Viewbox> <loc 阅读全文
posted @ 2024-09-14 00:00 FredGrit 阅读(6) 评论(0) 推荐(0) 编辑
摘要:DataGridTemplate.CellTemplate contains one datatemplae will display the customoized control,the key located at the custom control's dependency propert 阅读全文
posted @ 2024-09-13 23:52 FredGrit 阅读(7) 评论(0) 推荐(0) 编辑
摘要:add default command timeout=0 as below string connStr = "Server=localhost;database=mydb;username=root;pwd=root;default command timeout=0"; 阅读全文
posted @ 2024-09-13 14:29 FredGrit 阅读(20) 评论(0) 推荐(0) 编辑
摘要:use mydb; drop table if exists t1; create table t1 (id int auto_increment primary key, firstname varchar(100) not null default '', lastname varchar(10 阅读全文
posted @ 2024-09-12 11:49 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System 阅读全文
posted @ 2024-09-11 14:52 FredGrit 阅读(14) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System 阅读全文
posted @ 2024-09-10 21:44 FredGrit 阅读(7) 评论(0) 推荐(0) 编辑
摘要:1.New Console application; 2.Add reference,PresentationCore and WindowsBase 3. using System; using System.Collections.Generic; using System.Linq; usin 阅读全文
posted @ 2024-09-10 21:36 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要:<DataGridTemplateColumn> <DataGridTemplateColumn.CellTemplate> <DataTemplate> <Image Source="{Binding ImgUrl}" Width="200" Height="500"> <behavior:Int 阅读全文
posted @ 2024-09-10 20:32 FredGrit 阅读(8) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace 阅读全文
posted @ 2024-09-10 18:51 FredGrit 阅读(6) 评论(0) 推荐(0) 编辑
摘要:using System.Diagnostics; // See https://aka.ms/new-console-template for more information Console.WriteLine("Hello, World!"); string path= @"..\..\..\ 阅读全文
posted @ 2024-09-09 22:13 FredGrit 阅读(179) 评论(0) 推荐(0) 编辑
摘要:<DataGridTemplateColumn Header="Image" > <DataGridTemplateColumn.CellTemplate> <DataTemplate> <Image Source="{Binding ImgUrl}" Width="20" Height="50"> 阅读全文
posted @ 2024-09-09 21:43 FredGrit 阅读(18) 评论(0) 推荐(0) 编辑
摘要:private void Window_KeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.A && e.KeyboardDevice.Modifiers == ModifierKeys.Control) { MessageBox.Sh 阅读全文
posted @ 2024-09-06 17:42 FredGrit 阅读(10) 评论(0) 推荐(0) 编辑
摘要:public MainWindow() { InitializeComponent(); this.AddHandler(ListBox.SelectionChangedEvent, new SelectionChangedEventHandler(GenericHandler)); this.Ad 阅读全文
posted @ 2024-09-06 16:28 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp340.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2 阅读全文
posted @ 2024-09-05 22:18 FredGrit 阅读(8) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp333.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2 阅读全文
posted @ 2024-09-03 17:50 FredGrit 阅读(18) 评论(0) 推荐(0) 编辑
摘要://xaml <UserControl x:Class="WpfApp332.BtnTbk" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com 阅读全文
posted @ 2024-09-03 17:27 FredGrit 阅读(6) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp332.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/ 阅读全文
posted @ 2024-09-03 17:16 FredGrit 阅读(8) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp330.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2 阅读全文
posted @ 2024-09-03 16:34 FredGrit 阅读(10) 评论(0) 推荐(0) 编辑
摘要://server using System; using System.Net; using System.Net.Sockets; using System.Text; namespace ConsoleApp63 { internal class Program { static void Ma 阅读全文
posted @ 2024-09-02 20:00 FredGrit 阅读(14) 评论(0) 推荐(0) 编辑
摘要://Runtime project,c class library using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; 阅读全文
posted @ 2024-09-02 17:28 FredGrit 阅读(3) 评论(0) 推荐(0) 编辑
摘要:Blob stands for binary large object byte[] bytesArr= (byte[])rows[i]["congest"]; bk.Congest = Encoding.UTF8.GetString(bytesArr) public static DataSet 阅读全文
posted @ 2024-09-01 23:24 FredGrit 阅读(8) 评论(0) 推荐(0) 编辑
摘要://sql drop database if exists mydb; create database mydb; use mydb; drop table if exists mt; create table mt (id int auto_increment primary key, name 阅读全文
posted @ 2024-09-01 16:10 FredGrit 阅读(3) 评论(0) 推荐(0) 编辑
摘要:namespace ConsoleApp59 { internal class Program { static string path = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly 阅读全文
posted @ 2024-09-01 13:55 FredGrit 阅读(4) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示