完整的一套c#+mysql股票资管软件(子账户系统)源码,附部分源码如下
using System;
using System.Windows.Forms;
using PCClient.Model;
using PCClient.services;
using PCClient.common;
using PCClient.UIControl;
using PCClient.tools;
using System.IO;
using System.Diagnostics;
namespace PCClient
{
public partial class frmMain:BaseForm
{
public static frmMain _instance;
public frmMain()
{
InitializeComponent();
webBrowser1.ScriptErrorsSuppressed = true;
_instance = this;
this.Text = GlobalVars.APP_NAME;
this.notifyIcon.Text = GlobalVars.APP_NAME;
tssl_welcome.Text = "您好,欢迎使用" +GlobalVars.APP_NAME;
}
public static frmMain GetInstance()
{
return _instance;
}
private void frmMain_Load(object sender, EventArgs e)
{
this.Visible = false;
//首先打开登录
frmLogin loginfrm = new frmLogin();
DialogResult result = loginfrm.ShowDialog();
if (result == DialogResult.Cancel || GlobalVars.customer == null)
{
Application.Exit();
return;
}
tssl_username.Text = GlobalVars.customer.u_loginname + "[" + GlobalVars.customer.u_cnname + "]";
this.Visible = true;
navigateTree.ExpandAll(); //导航展开
//登陆后立即脉动一次
CustomerService us = new CustomerService();
us.KeepLogon();
//打开买入窗口
TreeNode treeNode = navigateTree.Nodes[0];
string nodeTag = treeNode.Tag.ToString();
OpenNodeByTag