/// <summary> /// /// </summary> public void LoadScene() { string sXml = string.Empty; string sShotBoxID = null; bool isTicker; WriteTrace("LoadScene"); sXml = Util.getSGFromWSL(m_scorebugscenepath); string filetype = Path.GetExtension(m_scorebugscenepath).Split(new string[] { "." }, StringSplitOptions.None)[1]; if (!string.IsNullOrEmpty(sXml)) { objScorePlayer = AppLink.GetShotBox(sXml, out sShotBoxID, out isTicker) as ShotBox; if (!Equals(objScorePlayer, null)) { objScorePlayer.SetEngineUrl(m_serverurl); InstanceInfo o = new InstanceInfo() { Type = filetype, InstanceId = m_scorebugscenepath, TemplateId = string.Empty, ThemeId = "default" }; if (objScorePlayer is IAddinInfo) { (objScorePlayer as IAddinInfo).Init(o); } objScorePlayer.OnShotBoxStatus += objPlayer1_OnShotBoxStatus; objScorePlayer.OnShotBoxControllerStatus += objPlayer1_OnShotBoxStatus; objScorePlayer.Prepare(m_serverurl, 0, RENDERMODE.PROGRAM); }//end (if) } }
/// <summary> /// used for preparing the scenegraph /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnLoadScene_Click_1(object sender, EventArgs e) { string sXml = string.Empty; string sShotBoxID = null; bool isTicker; try { #region sceneone if (m_objShotBox == null) { sXml = Util.getSGFromWSL(fileDialog.FileName); if (!string.IsNullOrEmpty(sXml)) { m_objShotBox = m_objLink.GetShotBox(sXml, out sShotBoxID, out isTicker) as ShotBox; if (!Equals(m_objShotBox, null)) { m_objShotBox.SetEngineUrl(m_sServerIp); if (m_objShotBox is IAddinInfo) { // S.No. : - 1 //(m_objShotBox as IAddinInfo).Init(new InstanceInfo() { Type = "wsl", InstanceId = string.Empty, TemplateId = fileDialog.FileName, ThemeId = "default" }); (m_objShotBox as IAddinInfo).Init(new InstanceInfo() { Type = "wsl", InstanceId = fileDialog.FileName, TemplateId = fileDialog.FileName, ThemeId = "default" }); } m_objShotBox.OnShotBoxStatus += new EventHandler <SHOTBOXARGS>(m_objShotBox_OnShotBoxStatus); m_objShotBox.Prepare(m_sServerIp, 0, RENDERMODE.PROGRAM); } m_objUserTag = m_objShotBox.UserTags; // if (cmbUserTag.SelectedIndex==-1) // { for (int i = 0; i < m_objUserTag.Count; i++) { if (!cmbUserTag.Items.Contains(m_objUserTag[i].Name)) { cmbUserTag.Items.Add(m_objUserTag[i].Name); } } // } } } #endregion } catch (Exception ex) { LogWriter.WriteLog("error in preparing the scenegraph", ex.Message); } }
} //end (btnConnect_Click_1) /// <summary> /// used for preparing the scenegraph /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnLoadScene_Click_1(object sender, EventArgs e) { string sXml = string.Empty; string sShotBoxID = null; bool isTicker; string filetype = string.Empty; try { #region sceneone if (m_objShotBox == null) { sXml = Util.getSGFromWSL(fileDialog.FileName); filetype = Path.GetExtension(fileDialog.FileName).Split(new string[] { "." }, StringSplitOptions.None)[1]; if (!string.IsNullOrEmpty(sXml)) { m_objShotBox = m_objLink.GetShotBox(sXml, out sShotBoxID, out isTicker) as ShotBox; if (!Equals(m_objShotBox, null)) { m_objShotBox.SetEngineUrl(m_sServerIp); if (m_objShotBox is IAddinInfo) { (m_objShotBox as IAddinInfo).Init(new InstanceInfo() { Type = filetype, InstanceId = string.Empty, TemplateId = fileDialog.FileName, ThemeId = "default" }); } m_objShotBox.OnShotBoxStatus += new EventHandler <SHOTBOXARGS>(m_objShotBox_OnShotBoxStatus); m_objShotBox.Prepare(m_sServerIp, 0, RENDERMODE.PROGRAM); }//end (if) m_objUserTag = m_objShotBox.UserTags; for (int i = 0; i < m_objUserTag.Count; i++) { if (!cmbUserTag.Items.Contains(m_objUserTag[i].Name)) { cmbUserTag.Items.Add(m_objUserTag[i].Name); } } //end (for) } //end (if) } //end (if) #endregion } //end (try) catch (Exception ex) { LogWriter.WriteLog(MODULENAME, ex); } //end (catch) } //end (btnLoadScene_Click_1)
/// <summary> /// /// </summary> public void LoadScene() { string stemplateID = string.Empty; string sXml = string.Empty; string sDataXml = "<dgn><data></data></dgn>"; string sShotBoxID = null; bool isTicker; sXml = Util.getSGFromWSL(m_scorebugscenepath); string filetype = Path.GetExtension(m_scorebugscenepath).Split(new string[] { "." }, StringSplitOptions.None)[1]; if (!string.IsNullOrEmpty(sXml)) { m_objBugPlayer = AppLink.GetShotBox(sXml, out sShotBoxID, out isTicker) as ShotBox; if (!Equals(m_objBugPlayer, null)) { m_objBugPlayer.SetEngineUrl(m_serverip); InstanceInfo o = new InstanceInfo() { Type = filetype, InstanceId = string.Empty, TemplateId = m_scorebugscenepath, ThemeId = "default" }; if (m_objBugPlayer is IAddinInfo) { (m_objBugPlayer as IAddinInfo).Init(o); } //if (m_objBugPlayer == null) //{ //m_objBugPlayer = new Beesys.Wasp.Workflow.Player(); //m_objBugPlayer.SetLink(_objLink, sXml); //m_objBugPlayer.Prepare(m_serverip, 0, RENDERMODE.PROGRAM); //} m_objBugPlayer.OnShotBoxStatus += _objPlayer1_OnShotBoxStatus; m_objBugPlayer.OnShotBoxControllerStatus += _objPlayer1_OnShotBoxControllerStatus; m_objBugPlayer.Prepare(m_serverip, 0, RENDERMODE.PROGRAM); }//end (if) } }
} //end (btnPlay_Click) /// <summary> /// used for preparing the scenegraph /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnLoadScene_Click(object sender, EventArgs e) { try { #region sceneone string sSgxml = Util.getSGFromWSL(openFileDialog1.FileName); string shotBoxID = null; bool isTicker; string filetype = string.Empty; if (!string.IsNullOrEmpty(sSgxml)) { m_objShotBox = m_objLink.GetShotBox(sSgxml, out shotBoxID, out isTicker) as ShotBox; filetype = Path.GetExtension(openFileDialog1.FileName).Split(new string[] { "." }, StringSplitOptions.None)[1]; if (!Equals(m_objShotBox, null)) { m_objShotBox.SetEngineUrl(m_sServerIp); if (m_objShotBox is IAddinInfo) { (m_objShotBox as IAddinInfo).Init(new InstanceInfo() { Type = filetype, InstanceId = string.Empty, TemplateId = openFileDialog1.FileName, ThemeId = "default", IsPreview = false }); } m_objShotBox.OnShotBoxStatus += new EventHandler <SHOTBOXARGS>(m_objShotBox_OnShotBoxStatus); m_objShotBox.Prepare(m_sServerIp, 0, RENDERMODE.PROGRAM); } //end (if) } //end (if) #endregion } //end (try) catch (Exception ex) { LogWriter.WriteLog(MODULENAME, ex); } //end (catch) } //end (btnLoadScene_Click)
/// <summary> /// used to prepare the scenegraph /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnLoadScene_Click(object sender, EventArgs e) { string sSG = string.Empty; string sShotBoxID = string.Empty; bool bIsTicker; try { if (Equals(m_objShotBox, null) && !Equals(txtTextFile.Tag, null)) { sSG = Util.getSGFromWSL(m_sWslPath); if (!Equals(sSG, null)) { m_sSGvariable = sSG; m_objShotBox = m_objLink.GetShotBox(sSG, typeof(ShotBox), out sShotBoxID, out bIsTicker) as ShotBox; m_objShotBox.SetEngineUrl(m_sEngineUrl); if (m_objShotBox is IAddinInfo) { // S.No. : - 1 //(m_objShotBox as IAddinInfo).Init(new InstanceInfo() { Type = "wsl", InstanceId = string.Empty, TemplateId = m_sWslPath, ThemeId = "default" }); (m_objShotBox as IAddinInfo).Init(new InstanceInfo() { Type = "wsl", InstanceId = m_sWslPath, TemplateId = m_sWslPath, ThemeId = "default" }); } m_objShotBox.OnShotBoxStatus += new EventHandler <SHOTBOXARGS>(objShotBox_OnShotBoxStatus); m_objShotBox.OnShotBoxControllerStatus += new EventHandler <SHOTBOXARGS>(objShotBox_OnShotBoxControllerStatus); m_objShotBox.Prepare(m_sEngineIP, 0, string.Empty, RENDERMODE.PROGRAM); } } } catch (Exception ex) { LogWriter.WriteLog("error in preparing the scenegraph", ex); } }
} //end (btnScene_Click) /// <summary> /// used to prepare the scenegraph /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnLoadScene_Click(object sender, EventArgs e) { string sSgXml = string.Empty; string sShotBoxID = string.Empty; bool bIsTicker; string filetype = string.Empty; try { if (Equals(m_objShotBox, null) && !Equals(txtTextFile.Tag, null)) { sSgXml = Util.getSGFromWSL(m_sWslPath); filetype = Path.GetExtension(m_sWslPath).Split(new string[] { "." }, StringSplitOptions.None)[1]; if (!Equals(sSgXml, null)) { m_sSGvariable = sSgXml; m_objShotBox = m_objLink.GetShotBox(sSgXml, typeof(ShotBox), out sShotBoxID, out bIsTicker) as ShotBox; m_objShotBox.SetEngineUrl(m_sEngineUrl); if (m_objShotBox is IAddinInfo) { (m_objShotBox as IAddinInfo).Init(new InstanceInfo() { Type = filetype, InstanceId = string.Empty, TemplateId = m_sWslPath, ThemeId = "default" }); } m_objShotBox.OnShotBoxStatus += new EventHandler <SHOTBOXARGS>(m_objShotBox_OnShotBoxStatus); m_objShotBox.OnShotBoxControllerStatus += new EventHandler <SHOTBOXARGS>(m_objShotBox_OnShotBoxControllerStatus); m_objShotBox.Prepare(m_sEngineIP, 0, string.Empty, RENDERMODE.PROGRAM); } //end (if) } //end (if) } //end (try) catch (Exception ex) { LogWriter.WriteLog(MODULENAME, ex); } //end (catch) } //end (btnLoadScene_Click)
/// <summary> /// used for preparing the scenegraph /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnLoadScene_Click(object sender, EventArgs e) { try { #region sceneone string xml = Util.getSGFromWSL(openFileDialog1.FileName); string shotBoxID = null; bool isTicker; if (!string.IsNullOrEmpty(xml)) { m_objShotBox = m_objLink.GetShotBox(xml, out shotBoxID, out isTicker) as ShotBox; if (!Equals(m_objShotBox, null)) { m_objShotBox.SetEngineUrl(m_sServerIp); if (m_objShotBox is IAddinInfo) { //S.No. : - 1 // (m_objShotBox as IAddinInfo).Init(new InstanceInfo() { Type = "wsl", InstanceId = string.Empty, TemplateId = openFileDialog1.FileName, ThemeId = "default" }); (m_objShotBox as IAddinInfo).Init(new InstanceInfo() { Type = "wsl", InstanceId = openFileDialog1.FileName, TemplateId = openFileDialog1.FileName, ThemeId = "default" }); } m_objShotBox.OnShotBoxStatus += new EventHandler <SHOTBOXARGS>(m_objShotBox_OnShotBoxStatus); m_objShotBox.Prepare(m_sServerIp, 0, RENDERMODE.PROGRAM); } } #endregion } catch (Exception ex) { LogWriter.WriteLog("error in preparing the scenegraph", ex.Message); } }
/// <summary> /// used for preparing the scenegraph /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnLoadScene_Click_1(object sender, EventArgs e) { string sXml = string.Empty; string sShotBoxID = null; bool isTicker; string filetype = string.Empty; try { #region sceneone if (m_objShotBox == null) { sXml = Util.getSGFromWSL(fileDialog.FileName); filetype = Path.GetExtension(fileDialog.FileName).Split(new string[] {"." }, StringSplitOptions.None)[1]; if (!string.IsNullOrEmpty(sXml)) { m_objShotBox = m_objLink.GetShotBox(sXml, out sShotBoxID, out isTicker) as ShotBox; if (!Equals(m_objShotBox, null)) { m_objShotBox.SetEngineUrl(m_sServerIp); if (m_objShotBox is IAddinInfo) (m_objShotBox as IAddinInfo).Init(new InstanceInfo() { Type = filetype, InstanceId = string.Empty, TemplateId = fileDialog.FileName, ThemeId = "default" }); m_objShotBox.OnShotBoxStatus += new EventHandler<SHOTBOXARGS>(m_objShotBox_OnShotBoxStatus); m_objShotBox.Prepare(m_sServerIp, 0, RENDERMODE.PROGRAM); }//end (if) m_objUserTag = m_objShotBox.UserTags; for (int i = 0; i < m_objUserTag.Count; i++) { if (!cmbUserTag.Items.Contains(m_objUserTag[i].Name)) cmbUserTag.Items.Add(m_objUserTag[i].Name); }//end (for) }//end (if) }//end (if) #endregion }//end (try) catch (Exception ex) { LogWriter.WriteLog(MODULENAME, ex); }//end (catch) }
/// <summary> /// /// </summary> public void LoadScene() { string sXml = string.Empty; string sShotBoxID = null; bool isTicker; sXml = Util.getSGFromWSL(m_scorebugscenepath); string filetype = Path.GetExtension(m_scorebugscenepath).Split(new string[] { "." }, StringSplitOptions.None)[1]; if (!string.IsNullOrEmpty(sXml)) { objScorePlayer = AppLink.GetShotBox(sXml, out sShotBoxID, out isTicker) as ShotBox; if (!Equals(objScorePlayer, null)) { objScorePlayer.SetEngineUrl(m_serverurl); InstanceInfo o = new InstanceInfo() { Type = filetype, InstanceId = m_scorebugscenepath, TemplateId = string.Empty, ThemeId = "default" }; if (objScorePlayer is IAddinInfo) (objScorePlayer as IAddinInfo).Init(o); objScorePlayer.OnShotBoxStatus += objPlayer1_OnShotBoxStatus; objScorePlayer.OnShotBoxControllerStatus += objPlayer1_OnShotBoxStatus; objScorePlayer.Prepare(m_serverurl, 10, RENDERMODE.PROGRAM); }//end (if) } }
/// <summary> /// used to prepare the scenegraph /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnLoadScene_Click(object sender, EventArgs e) { string sSgXml = string.Empty; string sShotBoxID = string.Empty; bool bIsTicker; string filetype = string.Empty; try { if (Equals(m_objShotBox, null) && !Equals(txtTextFile.Tag, null)) { sSgXml = Util.getSGFromWSL(m_sWslPath); filetype = Path.GetExtension(m_sWslPath).Split(new string[] { "." }, StringSplitOptions.None)[1]; if (!Equals(sSgXml, null)) { m_sSGvariable = sSgXml; m_objShotBox = m_objLink.GetShotBox(sSgXml, typeof(ShotBox), out sShotBoxID, out bIsTicker) as ShotBox; m_objShotBox.SetEngineUrl(m_sEngineUrl); if (m_objShotBox is IAddinInfo) (m_objShotBox as IAddinInfo).Init(new InstanceInfo() { Type = filetype, InstanceId = string.Empty, TemplateId = m_sWslPath, ThemeId = "default" }); m_objShotBox.OnShotBoxStatus += new EventHandler<SHOTBOXARGS>(m_objShotBox_OnShotBoxStatus); m_objShotBox.OnShotBoxControllerStatus += new EventHandler<SHOTBOXARGS>(m_objShotBox_OnShotBoxControllerStatus); m_objShotBox.Prepare(m_sEngineIP, 0, string.Empty, RENDERMODE.PROGRAM); }//end (if) }//end (if) }//end (try) catch (Exception ex) { LogWriter.WriteLog(MODULENAME, ex); }//end (catch) }
/// <summary> /// used for preparing the scenegraph /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnLoadScene_Click(object sender, EventArgs e) { try { #region sceneone string sSgxml = Util.getSGFromWSL(openFileDialog1.FileName); string shotBoxID = null; bool isTicker; string filetype = string.Empty; if (!string.IsNullOrEmpty(sSgxml)) { m_objShotBox = m_objLink.GetShotBox(sSgxml, out shotBoxID, out isTicker) as ShotBox; filetype = Path.GetExtension(openFileDialog1.FileName).Split(new string[] { "." }, StringSplitOptions.None)[1]; if (!Equals(m_objShotBox, null)) { m_objShotBox.SetEngineUrl(m_sServerIp); if (m_objShotBox is IAddinInfo) (m_objShotBox as IAddinInfo).Init(new InstanceInfo() { Type = filetype, InstanceId = string.Empty, TemplateId = openFileDialog1.FileName, ThemeId = "default", IsPreview=false }); m_objShotBox.OnShotBoxStatus += new EventHandler<SHOTBOXARGS>(m_objShotBox_OnShotBoxStatus); m_objShotBox.Prepare(m_sServerIp, 0, RENDERMODE.PROGRAM); }//end (if) }//end (if) #endregion }//end (try) catch (Exception ex) { LogWriter.WriteLog(MODULENAME, ex); }//end (catch) }