예제 #1
0
파일: SCREEN.cs 프로젝트: longtm23/SCREEN
        public SCREEN(ConfigMrw mrwConfig)
        {
            configMrw = mrwConfig;
            if (mrwConfig.height_screen > 0 && mrwConfig.width_screen > 0)
            {
                widthScreen  = mrwConfig.width_screen;
                heightScreen = mrwConfig.height_screen;
            }

            InitializeComponent(mrwConfig.text_run, mrwConfig.width_screen, mrwConfig.height_screen, configMrw.size_num, configMrw.size_xmdqs);
            this.wmpVideo.stretchToFit = true;
            this.wmpVideo.uiMode       = "none";
            //InitializeComponent();
            this.CenterToScreen();
            drawUI();
            SetFORM(false);
            ContructorParam();
            loadVideo(mrwConfig.folder_video);

            Init();
            playAudio = new PlayAudio();
            playAudio.Init(mrwConfig);
            playAudio.DataReceived += reciveAudio;
            Directory.SetCurrentDirectory(AppDomain.CurrentDomain.BaseDirectory);
        }