Пример #1
0
 /// <summary>
 /// @author : KhoaHT
 /// @CreateDate:04/07/2008
 /// @Description: play a clip o m3u list depend on file param
 /// </summary>
 private void PlayFile(string pstrParam)
 {
     FrmClipView frmClipView = new FrmClipView(pstrParam);
     frmClipView.Play(pstrParam);
     frmClipView.Show();
     frmClipView.Focus();
 }
Пример #2
0
 /// <summary>
 /// @author : KhoaHT
 /// @CreateDate:04/07/2008
 /// @Description: play a clip o m3u list depend on file param
 /// </summary>
 private void PlayAll()
 {
     if (frmClipView == null || frmClipView.IsDisposed)
         frmClipView = new FrmClipView(((DataView)mdgrSchedule.DataSource).Table.Rows, mtSeverLocalDelay,workstation);
     frmClipView.FullScreen = true;
     frmClipView.Show();
     frmClipView.Focus();
 }
Пример #3
0
 private void PlayDefaultClips()
 {
     isDefaultPlaying = true;
     frmClipView = new FrmClipView();
     frmClipView.Focus();
     //frmClipView.FullScreen = true;
     frmClipView.Show();
     this.TopMost = false;
     frmClipView.TopMost = true;
 }
Пример #4
0
        /// <summary>
        /// @author : KhoaHT
        /// @CreateDate:04/07/2008
        /// @Description: Load form
        /// </summary>
        private void FrmMain_Load(object sender, EventArgs e)
        {
            if (isDisconnect == false)
            {
                // set status login at the first time
                SetFormEnableLoginStatus();
                // set privilige false to all
                //if(!cheat)SetPrivilige(false);
                // Start timer
                if (global::QTC.Adv.Workstation.Properties.Settings.Default.Download_EveryMinute == true)
                {
                    int minute = global::QTC.Adv.Workstation.Properties.Settings.Default.Download_EveryMinute_Minute;
                    StartTimer(minute);
                }

                if (Global.Workstation != null)
                {
                    /// Fixed error login in the first running
                    AutoStart();
                    return;
                }
                if (Properties.Settings.Default.AutoPlayCLipDefaultWhenOffline && Properties.Settings.Default.DisconnectedPlay) // Play offline or default
                {
                    isDefaultPlaying = true;
                    if (frmClipView == null || frmClipView.IsDisposed)
                        frmClipView = new FrmClipView();

                    frmClipView.Focus();
                    frmClipView.Show();
                    frmClipView.FullScreen = true;
                }
                else if (Properties.Settings.Default.DisconnectedPlay)
                {
                    // truong hop offine
                    SetOnlineOfflineMode(false);
                    LoadOfflineMode();
                    try { PlayAll(); }
                    catch { }
                }
            }
            else
            {
                PlayDefaultClips();
            }
        }