Пример #1
0
        private void frmLogin_Load(object sender, EventArgs e)
        {
            string       clientAppConfig = "config\\Config.xml";
            Assembly     assem           = Assembly.GetEntryAssembly();
            AssemblyName assemName       = assem.GetName();

            this.label1.Text += assemName.Version.ToString();

            if (!File.Exists(clientAppConfig))
            {
                UtilMessage.ShowErrorMessage(this, "缺少Config文件!");
                Application.Exit();
            }
        }