コード例 #1
0
        private void BuildSpeach()
        {
            if (voice == null)
            {
                voice = new SpVoiceClass();
            }
            ModuleSettings settings = ModuleConfig.GetSettings();
            int            index    = settings.VoiceIndex;

            SelectVoice(index);
        }
コード例 #2
0
 public CModel()
 {
     settings   = ModuleConfig.GetSettings();
     devmanager = new CDevManager();
     string[] tmpstr = settings.DevOrder.ToString().Split(',');
     DevNumber  = tmpstr.Length;
     studevlist = new CStuDevlist[DevNumber];
     for (int i = 0; i < DevNumber; i++)
     {
         studevlist[i]        = new CStuDevlist();
         studevlist[i].DevNum = Int16.Parse(tmpstr[i]);
         devmanager.Add(studevlist[i]);
     }
 }
コード例 #3
0
ファイル: CCtrl.cs プロジェクト: wpmyj/Zhuangkao
        public CCtrl(CModel model)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            this.model = model;
            model.Event_RemoteSQLLink += new CModel.D_RemoteSQLLink(model_Event_ORACLELink);

            Server = new CNetServer();
            Server.Event_Devlogin   += new CNetServer.D_DEVLOGIN(Server_Event_Devlogin);
            Server.Event_Devlogout  += new CNetServer.D_DEVLOGOUT(Server_Event_Devlogout);
            Server.Event_Devnetdata += new CNetServer.D_DEVNETDATA(Server_Event_Devnetdata);
            settings = ModuleConfig.GetSettings();
            //displaycomm = new CDisplaycomm(settings);
            //displaycomm.ShowText("欢迎来到大成驾校考试!");
            mainform = new Main_Form(this, this.model);
            Application.Run(mainform);
            // model.RemoteDBlink();
        }