DotNet.WinForm.Example/Program.cs

(完整代码) 2KB

//--------------------------------------------------------------------
// All Rights Reserved , Copyright (C) 2013 , Hairihan TECH, Ltd. 
//--------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace DotNet.Example
{
    using DotNet.Utilities;

    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            BaseSystemInfo.ConfigurationFrom = ConfigurationCategory.UserConfig;
            UserConfigHelper.GetConfig();

            // Schema schema = new Example.Schema();
            // schema.GetSchema();

            // 设置用户密码
            // UserPassword userPassword = new UserPassword();
            // userPassword.SetPassword();

            // 这里进行模拟序列发生程序
            // SequenceTest sequenceTest = new SequenceTest();
            // sequenceTest.DoTest();

            // 这里进行模拟静态方法的并发程序
            // StaticTest staticTest = new StaticTest();
            // staticTest.DoTest();

            // ImportExportData1 importExportData1 = new ImportExportData1();
            // importExportData1.Export();

            // ImportExportData2 importExportData2 = new ImportExportData2();
            // importExportData2.Export();

            // string message = "<?xml version=\"1.0\" encoding=\"utf-8'\"?><BankParamters>  <FileName>瑞士银行配置文件</FileName>  <BaseInfo>    <BankNo>123133214</BankNo>    <BankName>瑞士银行北京分行⊙</BankName>  </BaseInfo>  <ConnectionInfo>    <Address>http://192.168.0.18/JMCC_WCFSERVICE</Address>    <Port>80</Port> <UserName>administrator</UserName>  <Password>administrator</Password></ConnectionInfo><BankUsers>    <User UserCode=\"e\"><UserName>eee</UserName>      <SignLevel>-1</SignLevel>      <DayLimitAmout>12</DayLimitAmout>      <DayLimitCurrency> 人民币</DayLimitCurrency>      <SignLimitAmout>12</SignLimitAmout>      <DayLimitCurrency> 人民币</DayLimitCurrency>    </User>  </BankUsers></BankParamters>";
            // 写入文件
            // message = SecretUtil.Encrypt(message);
            // 读取文件
            // message = SecretUtil.Decrypt(message);
            Application.Run(new FrmCallPermission());
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。