Example #1
0
        public Form1()
        {
            InitializeComponent();

            this.ShowInTaskbar = false;

            ToolStripMenuItem v = new ToolStripMenuItem("退出", null, this.onExit);

            m_notifyMenu.Items.Add(v);
            // 关联快捷菜单
            m_notify.ContextMenuStrip = m_notifyMenu;

            CheckForIllegalCrossThreadCalls = false;

            StatWinLoseService sys =
                ServiceMgr.getInstance().getSys <StatWinLoseService>(ServiceType.serviceTypeWinLose);

            sys.setForm(this);

            m_lblCurState.ForeColor = Color.Green;
        }
 public SysStatWinLose(StatWinLoseService svr)
 {
     m_svr = svr;
 }