• 大小: 0.50M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: IP修改  Xml  三层构架  

资源简介

根据网卡修改IP地址,或者自动获取,可把IP等保存到XML配置文件,三层构架操作XML配置文件

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.IO;
using System.Windows.Forms;
using Model;
using BLL;
using Bllxml;


namespace UI
{
    public partial class FrmIpSetTool : Form
    {
        List iPConfigs = new List();
        private string sPath = “config.xml“;
        private string stitle = “Configuration“;
        public FrmIpSetTool()
        {
            InitializeComponent();
        }


        #region 控件
        private void cboName_SelectedIndexChanged(object sender EventArgs e)//选择配置后加载数据
        {
            foreach (IpConfig ipConfig in iPConfigs)
            {
                if (ipConfig.Name == cboName.Text)
                {
                    txtIPAddress.Text = ipConfig.IP;
                    txtSub

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件         40  2020-01-25 09:48  IP修改\.git\COMMIT_EDITMSG

     文件        776  2020-01-25 09:48  IP修改\.git\config

     文件         73  2020-01-25 09:48  IP修改\.git\description

     文件         23  2020-01-25 09:48  IP修改\.git\HEAD

     文件        478  2020-01-25 09:48  IP修改\.git\hooks\applypatch-msg.sample

     文件        896  2020-01-25 09:48  IP修改\.git\hooks\commit-msg.sample

     文件        189  2020-01-25 09:48  IP修改\.git\hooks\post-update.sample

     文件        424  2020-01-25 09:48  IP修改\.git\hooks\pre-applypatch.sample

     文件       1642  2020-01-25 09:48  IP修改\.git\hooks\pre-commit.sample

     文件       1348  2020-01-25 09:48  IP修改\.git\hooks\pre-push.sample

     文件       4898  2020-01-25 09:48  IP修改\.git\hooks\pre-rebase.sample

     文件        544  2020-01-25 09:48  IP修改\.git\hooks\pre-receive.sample

     文件       1239  2020-01-25 09:48  IP修改\.git\hooks\prepare-commit-msg.sample

     文件       3610  2020-01-25 09:48  IP修改\.git\hooks\update.sample

     文件       1423  2020-01-25 09:48  IP修改\.git\index

     文件        240  2020-01-25 09:48  IP修改\.git\info\exclude

     文件        192  2020-01-25 09:48  IP修改\.git\logs\HEAD

     文件        192  2020-01-25 09:48  IP修改\.git\logs\refs\heads\master

     文件        321  2020-01-25 09:48  IP修改\.git\objects\13\f87584473282d0a82473febbcd9d302314751d

     文件        751  2020-01-25 09:48  IP修改\.git\objects\1f\f0c423042b46cb1d617b81efb715defbe8054d

     文件        257  2020-01-25 09:48  IP修改\.git\objects\28\89593d13cec50359af9c639a195612f45a82e7

     文件        186  2020-01-25 09:48  IP修改\.git\objects\39\645652af62950ebf3b28ec3a5400dcec30b1c4

     文件       2112  2020-01-25 09:48  IP修改\.git\objects\3c\4efe206bd0e7230ad0ae8396a3c883c8207906

     文件       2024  2020-01-25 09:48  IP修改\.git\objects\55\4bf6ac8bc0ab73c4882f1e6eb0161382f49286

     文件       1712  2020-01-25 09:48  IP修改\.git\objects\61\bc649ba034750855ab1afebff3efa2a2393158

     文件        464  2020-01-25 09:48  IP修改\.git\objects\6a\749b8c43390d5b5124eb57d814506611f431c7

     文件        153  2020-01-25 09:48  IP修改\.git\objects\73\1f6de6c291e303814b02808f34140fe560e8e4

     文件        155  2020-01-25 09:48  IP修改\.git\objects\83\32d1ef359dd5ada9cf884336c1a9eca1785128

     文件        494  2020-01-25 09:48  IP修改\.git\objects\8b\82d038498a1fdfc9231738ab12baca6263b09a

     文件         89  2020-01-25 09:48  IP修改\.git\objects\91\e3470e1645e6e8d0de6fe9f6b242f366e9a393

............此处省略111个文件信息

评论

共有 条评论