Пример #1
0
 static void Main(string[] args)
 {
     //show splash form
     Splasher.Show();
     // args = new string[] { Global.App_Key };
     DoStartup(args);
 }
Пример #2
0
        public frmMain(string drtpHost, string drtpPort)
            : this()
        {
            Global.Logger.Info("iWallet is going to acquire key...");
            Splasher.Status = string.Format("系统签到:[{0}:{1}]", Global.Drtp_Host, Global.Drtp_Port);
            Global.App_Key  = SignIn();
            Global.Logger.Info("completion on acquiring key: " + Global.App_Key);

            //if (string.IsNullOrEmpty(Global.App_Key))
            //{
            //    MessageBox.Show("子系统签到失败!", this.Text, MessageBoxButtons.OK);
            //    this.Close();
            //    Splasher.Close();
            //    Application.Exit();
            //}
            Splasher.Status = "[正在从后台获取字典数据...]";
            DataCacher.Instance.InitializeMasterData();
            Splasher.Status = "[初始化客户类型...]";
            InitCombo(DataCacher.Instance[MasterKind.CustomerType], cmbCustomerType, true);
            Splasher.Status = "[初始化收费类型...]";
            InitCombo(DataCacher.Instance[MasterKind.FeeType], cmbFeeType, true);
            Splasher.Status = "[初始化性别类型...]";
            InitCombo(DataCacher.Instance[MasterKind.Sex], cmbSex, true);
            Splasher.Close();
            Global.Logger.Info("system startup successfully!");
        }