xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

  • 大小: 2.14MB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2023-10-11
  • 語(yǔ)言: C#
  • 標(biāo)簽:

資源簡(jiǎn)介

個(gè)人通訊錄系統(tǒng), 基于C#編程,程序員在編程的過(guò)程中可以參考學(xué)習(xí)使用,希望對(duì)IT程序員有用,此源碼程序簡(jiǎn)單易懂、方便閱讀,有很好的學(xué)習(xí)價(jià)值!

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.Configuration;
using?System.Data;
using?System.Linq;
using?System.Windows;
using?System.IO;


namespace?MyFriends
{
????///?
????///App.xaml的交互邏輯
????///?

????public?partial?class?App?:?Application
????{
????????private?string?xmlFilename?=?“MyFriends.xml“;

????????public?App?()
????{

????}

????????private?void?Application_Startup(object?sender?StartupEventArgs?e)
????????{
????????????//初始化全局應(yīng)用程序?qū)傩?br/>????????????Application.Current.Properties[“SavedDetailsFileName“]?=?xmlFilename;//保存文件名
????????????Application.Current.Properties[“FullxmlPath“]?=?//完整的xml路徑
????????????????Path.Combine(Environment.CurrentDirectory?xmlFilename);
????????????Application.Current.Properties[“SaveFolder“]?=?//將要保存到的文件夾
????????????????Environment.CurrentDirectory;
????????????Application.Current.Properties[“SelectedDisplaystyle“]?=?//默認(rèn)的顯示風(fēng)格
????????????????Displaystyle.GrowShrink;
????????????if?(Directory.Exists(@“C:\WINDOWS\Web\Wallpaper“))
????????????????//設(shè)置默認(rèn)的選擇圖片路徑的文件夾
????????????????Application.Current.Properties[“SelectedImagePath“]?=@“C:\WINDOWS\Web\Wallpaper“;
????????????else
????????????????Application.Current.Properties[“SelectedImagePath“]?=?@“C:\“;
????????????//設(shè)置免費(fèi)的Exceed的Grid的授權(quán)序列號(hào),需要將這里更改為自己的序列號(hào)???????
????????????Xceed.Wpf.DataGrid.Licenser.LicenseKey?=?“DGP30-E852N-G9C6E-DW5A“;
????????????//返回一個(gè)FriendsList對(duì)象的實(shí)例
????????????FriendsList.Instance();
????????}

????????private?void?Application_Exit(object?sender?ExitEventArgs?e)
????????{
????????????try
????????????{//SaveOnExit方法將當(dāng)前的所有聯(lián)系人保存到xml文件中
????????????????xmlFileOperations.SaveOnExit();
????????????}
????????????catch
????????????{//如果保存失敗,顯示失敗信息
????????????????MessageBox.Show(“保存文件時(shí)失敗!“);
????????????}
????????}
????????
????}
}

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

?????文件?????869348??2008-08-15?15:02??Xceed.Wpf.DataGrid.xml

-----------?---------??----------?-----??----

???????????????869348????????????????????1


評(píng)論

共有 條評(píng)論