Exemplo n.º 1
0
    private MatchCtrl m_MatchCtrl;                                                                                 //比赛系统

    public SystemFacade()
    {
        m_AccountCtrl      = new AccountCtrl();
        m_SelectGameCtrl   = new GameCtrl();
        m_RuleCtrl         = new RuleCtrl();
        m_ServiceCtrl      = new ServiceCtrl();
        m_SettingCtrl      = new SettingCtrl();
        m_ShareCtrl        = new ShareCtrl();
        m_RecordCtrl       = new RecordCtrl();
        m_ShopCtrl         = new ShopCtrl();
        m_PresentCtrl      = new PresentCtrl();
        m_MahJongCtrl      = new MaJiangGameCtrl();
        m_ChatCtrl         = new ChatCtrl();
        m_AudioSettingCtrl = new AudioSettingCtrl();
        m_NoticeCtrl       = new NoticeCtrl();
        m_MatchCtrl        = new MatchCtrl();
        RegisterWindow();
    }
 private void btnStart_Click(object sender, RoutedEventArgs e)
 {
     ServiceCtrl.Start();
     ServiceCtrl.WaitForStatus(ServiceControllerStatus.Running, TimeSpan.FromMilliseconds(5000));
     GetServiceStatus();
 }