diff --git a/Paging/App.config b/Paging/App.config
new file mode 100644
index 0000000..af1eff7
--- /dev/null
+++ b/Paging/App.config
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
diff --git a/Paging/Paging.Designer.cs b/Paging/Paging.Designer.cs
new file mode 100644
index 0000000..e2fde95
--- /dev/null
+++ b/Paging/Paging.Designer.cs
@@ -0,0 +1,428 @@
+namespace PagingApp
+{
+ partial class Paging
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.lblServerIP = new System.Windows.Forms.Label();
+ this.lblTextFile = new System.Windows.Forms.Label();
+ this.lblSceneGraph = new System.Windows.Forms.Label();
+ this.lblPlayText = new System.Windows.Forms.Label();
+ this.txtServerIp = new System.Windows.Forms.TextBox();
+ this.txtTextFile = new System.Windows.Forms.TextBox();
+ this.txtSceneGraph = new System.Windows.Forms.TextBox();
+ this.cbPlayText = new System.Windows.Forms.CheckBox();
+ this.btnConnect = new System.Windows.Forms.Button();
+ this.btnLoadScene = new System.Windows.Forms.Button();
+ this.btnPlayDefaultController = new System.Windows.Forms.Button();
+ this.btnPauseDefaultController = new System.Windows.Forms.Button();
+ this.btnStopDefaultController = new System.Windows.Forms.Button();
+ this.btnTextFile = new System.Windows.Forms.Button();
+ this.btnScene = new System.Windows.Forms.Button();
+ this.btnProgram = new System.Windows.Forms.Button();
+ this.btnPreview = new System.Windows.Forms.Button();
+ this.gbRenderMode = new System.Windows.Forms.GroupBox();
+ this.gbDefaultController = new System.Windows.Forms.GroupBox();
+ this.btnOffAir = new System.Windows.Forms.Button();
+ this.btnOnAir = new System.Windows.Forms.Button();
+ this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog();
+ this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
+ this.btnPlayController = new System.Windows.Forms.Button();
+ this.btnPauseController = new System.Windows.Forms.Button();
+ this.btnStopController = new System.Windows.Forms.Button();
+ this.gbController = new System.Windows.Forms.GroupBox();
+ this.pnlServer = new System.Windows.Forms.Panel();
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.panel2 = new System.Windows.Forms.Panel();
+ this.gbRenderMode.SuspendLayout();
+ this.gbDefaultController.SuspendLayout();
+ this.gbController.SuspendLayout();
+ this.pnlServer.SuspendLayout();
+ this.panel1.SuspendLayout();
+ this.panel2.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // lblServerIP
+ //
+ this.lblServerIP.AutoSize = true;
+ this.lblServerIP.Location = new System.Drawing.Point(4, 3);
+ this.lblServerIP.Name = "lblServerIP";
+ this.lblServerIP.Size = new System.Drawing.Size(48, 13);
+ this.lblServerIP.TabIndex = 0;
+ this.lblServerIP.Text = "ServerIP";
+ //
+ // lblTextFile
+ //
+ this.lblTextFile.AutoSize = true;
+ this.lblTextFile.Location = new System.Drawing.Point(4, 2);
+ this.lblTextFile.Name = "lblTextFile";
+ this.lblTextFile.Size = new System.Drawing.Size(47, 13);
+ this.lblTextFile.TabIndex = 1;
+ this.lblTextFile.Text = "Text File";
+ //
+ // lblSceneGraph
+ //
+ this.lblSceneGraph.AutoSize = true;
+ this.lblSceneGraph.Location = new System.Drawing.Point(3, 0);
+ this.lblSceneGraph.Name = "lblSceneGraph";
+ this.lblSceneGraph.Size = new System.Drawing.Size(70, 13);
+ this.lblSceneGraph.TabIndex = 2;
+ this.lblSceneGraph.Text = "Scene Graph";
+ //
+ // lblPlayText
+ //
+ this.lblPlayText.AutoSize = true;
+ this.lblPlayText.Location = new System.Drawing.Point(33, 112);
+ this.lblPlayText.Name = "lblPlayText";
+ this.lblPlayText.Size = new System.Drawing.Size(89, 13);
+ this.lblPlayText.TabIndex = 3;
+ this.lblPlayText.Text = "Play Text in Loop";
+ //
+ // txtServerIp
+ //
+ this.txtServerIp.Location = new System.Drawing.Point(85, 1);
+ this.txtServerIp.Name = "txtServerIp";
+ this.txtServerIp.Size = new System.Drawing.Size(163, 20);
+ this.txtServerIp.TabIndex = 5;
+ //
+ // txtTextFile
+ //
+ this.txtTextFile.Location = new System.Drawing.Point(85, -1);
+ this.txtTextFile.Name = "txtTextFile";
+ this.txtTextFile.Size = new System.Drawing.Size(163, 20);
+ this.txtTextFile.TabIndex = 6;
+ //
+ // txtSceneGraph
+ //
+ this.txtSceneGraph.Location = new System.Drawing.Point(85, 0);
+ this.txtSceneGraph.Name = "txtSceneGraph";
+ this.txtSceneGraph.Size = new System.Drawing.Size(163, 20);
+ this.txtSceneGraph.TabIndex = 7;
+ //
+ // cbPlayText
+ //
+ this.cbPlayText.AutoSize = true;
+ this.cbPlayText.Location = new System.Drawing.Point(151, 112);
+ this.cbPlayText.Name = "cbPlayText";
+ this.cbPlayText.Size = new System.Drawing.Size(15, 14);
+ this.cbPlayText.TabIndex = 8;
+ this.cbPlayText.UseVisualStyleBackColor = true;
+ //
+ // btnConnect
+ //
+ this.btnConnect.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnConnect.Location = new System.Drawing.Point(286, 16);
+ this.btnConnect.Name = "btnConnect";
+ this.btnConnect.Size = new System.Drawing.Size(97, 23);
+ this.btnConnect.TabIndex = 9;
+ this.btnConnect.Text = "Connect";
+ this.btnConnect.UseVisualStyleBackColor = true;
+ this.btnConnect.Click += new System.EventHandler(this.btnConnect_Click);
+ //
+ // btnLoadScene
+ //
+ this.btnLoadScene.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnLoadScene.Location = new System.Drawing.Point(395, 13);
+ this.btnLoadScene.Name = "btnLoadScene";
+ this.btnLoadScene.Size = new System.Drawing.Size(79, 68);
+ this.btnLoadScene.TabIndex = 10;
+ this.btnLoadScene.Text = "Load Scene";
+ this.btnLoadScene.UseVisualStyleBackColor = true;
+ this.btnLoadScene.Click += new System.EventHandler(this.btnLoadScene_Click);
+ //
+ // btnPlayDefaultController
+ //
+ this.btnPlayDefaultController.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnPlayDefaultController.Location = new System.Drawing.Point(8, 21);
+ this.btnPlayDefaultController.Name = "btnPlayDefaultController";
+ this.btnPlayDefaultController.Size = new System.Drawing.Size(108, 23);
+ this.btnPlayDefaultController.TabIndex = 11;
+ this.btnPlayDefaultController.Text = "Play";
+ this.btnPlayDefaultController.UseVisualStyleBackColor = true;
+ this.btnPlayDefaultController.Click += new System.EventHandler(this.btnPlayDefaultController_Click);
+ //
+ // btnPauseDefaultController
+ //
+ this.btnPauseDefaultController.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnPauseDefaultController.Location = new System.Drawing.Point(122, 21);
+ this.btnPauseDefaultController.Name = "btnPauseDefaultController";
+ this.btnPauseDefaultController.Size = new System.Drawing.Size(112, 23);
+ this.btnPauseDefaultController.TabIndex = 12;
+ this.btnPauseDefaultController.Text = "Pause";
+ this.btnPauseDefaultController.UseVisualStyleBackColor = true;
+ this.btnPauseDefaultController.Click += new System.EventHandler(this.btnPauseDefaultController_Click);
+ //
+ // btnStopDefaultController
+ //
+ this.btnStopDefaultController.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnStopDefaultController.Location = new System.Drawing.Point(240, 21);
+ this.btnStopDefaultController.Name = "btnStopDefaultController";
+ this.btnStopDefaultController.Size = new System.Drawing.Size(97, 23);
+ this.btnStopDefaultController.TabIndex = 13;
+ this.btnStopDefaultController.Text = "Stop";
+ this.btnStopDefaultController.UseVisualStyleBackColor = true;
+ this.btnStopDefaultController.Click += new System.EventHandler(this.btnStopDefaultController_Click);
+ //
+ // btnTextFile
+ //
+ this.btnTextFile.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnTextFile.Location = new System.Drawing.Point(286, 47);
+ this.btnTextFile.Name = "btnTextFile";
+ this.btnTextFile.Size = new System.Drawing.Size(97, 23);
+ this.btnTextFile.TabIndex = 17;
+ this.btnTextFile.Text = "...";
+ this.btnTextFile.UseVisualStyleBackColor = true;
+ this.btnTextFile.Click += new System.EventHandler(this.btnTextFile_Click);
+ //
+ // btnScene
+ //
+ this.btnScene.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnScene.Location = new System.Drawing.Point(286, 79);
+ this.btnScene.Name = "btnScene";
+ this.btnScene.Size = new System.Drawing.Size(97, 23);
+ this.btnScene.TabIndex = 18;
+ this.btnScene.Text = "...";
+ this.btnScene.UseVisualStyleBackColor = true;
+ this.btnScene.Click += new System.EventHandler(this.btnScene_Click);
+ //
+ // btnProgram
+ //
+ this.btnProgram.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnProgram.Location = new System.Drawing.Point(15, 21);
+ this.btnProgram.Name = "btnProgram";
+ this.btnProgram.Size = new System.Drawing.Size(104, 23);
+ this.btnProgram.TabIndex = 19;
+ this.btnProgram.Text = "Program";
+ this.btnProgram.UseVisualStyleBackColor = true;
+ this.btnProgram.Click += new System.EventHandler(this.btnProgram_Click);
+ //
+ // btnPreview
+ //
+ this.btnPreview.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnPreview.Location = new System.Drawing.Point(17, 60);
+ this.btnPreview.Name = "btnPreview";
+ this.btnPreview.Size = new System.Drawing.Size(102, 23);
+ this.btnPreview.TabIndex = 20;
+ this.btnPreview.Text = "Preview";
+ this.btnPreview.UseVisualStyleBackColor = true;
+ this.btnPreview.Click += new System.EventHandler(this.btnPreview_Click);
+ //
+ // gbRenderMode
+ //
+ this.gbRenderMode.Controls.Add(this.btnPreview);
+ this.gbRenderMode.Controls.Add(this.btnProgram);
+ this.gbRenderMode.Location = new System.Drawing.Point(395, 140);
+ this.gbRenderMode.Name = "gbRenderMode";
+ this.gbRenderMode.Size = new System.Drawing.Size(129, 105);
+ this.gbRenderMode.TabIndex = 21;
+ this.gbRenderMode.TabStop = false;
+ this.gbRenderMode.Text = "Render Mode";
+ //
+ // gbDefaultController
+ //
+ this.gbDefaultController.Controls.Add(this.btnOffAir);
+ this.gbDefaultController.Controls.Add(this.btnOnAir);
+ this.gbDefaultController.Controls.Add(this.btnStopDefaultController);
+ this.gbDefaultController.Controls.Add(this.btnPauseDefaultController);
+ this.gbDefaultController.Controls.Add(this.btnPlayDefaultController);
+ this.gbDefaultController.Location = new System.Drawing.Point(29, 140);
+ this.gbDefaultController.Name = "gbDefaultController";
+ this.gbDefaultController.Size = new System.Drawing.Size(351, 105);
+ this.gbDefaultController.TabIndex = 23;
+ this.gbDefaultController.TabStop = false;
+ this.gbDefaultController.Text = "Default Controller";
+ //
+ // btnOffAir
+ //
+ this.btnOffAir.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnOffAir.Location = new System.Drawing.Point(240, 60);
+ this.btnOffAir.Name = "btnOffAir";
+ this.btnOffAir.Size = new System.Drawing.Size(97, 23);
+ this.btnOffAir.TabIndex = 25;
+ this.btnOffAir.Text = "Off Air";
+ this.btnOffAir.UseVisualStyleBackColor = true;
+ this.btnOffAir.Click += new System.EventHandler(this.btnOffAir_Click);
+ //
+ // btnOnAir
+ //
+ this.btnOnAir.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnOnAir.Location = new System.Drawing.Point(8, 60);
+ this.btnOnAir.Name = "btnOnAir";
+ this.btnOnAir.Size = new System.Drawing.Size(108, 23);
+ this.btnOnAir.TabIndex = 24;
+ this.btnOnAir.Text = "On Air";
+ this.btnOnAir.UseVisualStyleBackColor = true;
+ this.btnOnAir.Click += new System.EventHandler(this.btnOnAir_Click);
+ //
+ // openFileDialog
+ //
+ this.openFileDialog.FileName = "openFileDialog";
+ //
+ // btnPlayController
+ //
+ this.btnPlayController.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnPlayController.Location = new System.Drawing.Point(8, 22);
+ this.btnPlayController.Name = "btnPlayController";
+ this.btnPlayController.Size = new System.Drawing.Size(108, 23);
+ this.btnPlayController.TabIndex = 14;
+ this.btnPlayController.Text = "Play";
+ this.btnPlayController.UseVisualStyleBackColor = true;
+ this.btnPlayController.Click += new System.EventHandler(this.btnPlayController_Click);
+ //
+ // btnPauseController
+ //
+ this.btnPauseController.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnPauseController.Location = new System.Drawing.Point(122, 22);
+ this.btnPauseController.Name = "btnPauseController";
+ this.btnPauseController.Size = new System.Drawing.Size(112, 23);
+ this.btnPauseController.TabIndex = 15;
+ this.btnPauseController.Text = "Pause";
+ this.btnPauseController.UseVisualStyleBackColor = true;
+ this.btnPauseController.Click += new System.EventHandler(this.btnPauseController_Click);
+ //
+ // btnStopController
+ //
+ this.btnStopController.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnStopController.Location = new System.Drawing.Point(240, 22);
+ this.btnStopController.Name = "btnStopController";
+ this.btnStopController.Size = new System.Drawing.Size(97, 23);
+ this.btnStopController.TabIndex = 16;
+ this.btnStopController.Text = "Stop";
+ this.btnStopController.UseVisualStyleBackColor = true;
+ this.btnStopController.Click += new System.EventHandler(this.btnStopController_Click);
+ //
+ // gbController
+ //
+ this.gbController.Controls.Add(this.btnStopController);
+ this.gbController.Controls.Add(this.btnPauseController);
+ this.gbController.Controls.Add(this.btnPlayController);
+ this.gbController.Location = new System.Drawing.Point(29, 251);
+ this.gbController.Name = "gbController";
+ this.gbController.Size = new System.Drawing.Size(351, 73);
+ this.gbController.TabIndex = 22;
+ this.gbController.TabStop = false;
+ this.gbController.Text = "Controller 1";
+ //
+ // pnlServer
+ //
+ this.pnlServer.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.pnlServer.Controls.Add(this.txtServerIp);
+ this.pnlServer.Controls.Add(this.lblServerIP);
+ this.pnlServer.Location = new System.Drawing.Point(31, 17);
+ this.pnlServer.Name = "pnlServer";
+ this.pnlServer.Size = new System.Drawing.Size(249, 24);
+ this.pnlServer.TabIndex = 31;
+ //
+ // panel1
+ //
+ this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel1.Controls.Add(this.lblTextFile);
+ this.panel1.Controls.Add(this.txtTextFile);
+ this.panel1.Location = new System.Drawing.Point(31, 50);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(249, 20);
+ this.panel1.TabIndex = 32;
+ //
+ // panel2
+ //
+ this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel2.Controls.Add(this.lblSceneGraph);
+ this.panel2.Controls.Add(this.txtSceneGraph);
+ this.panel2.Location = new System.Drawing.Point(31, 82);
+ this.panel2.Name = "panel2";
+ this.panel2.Size = new System.Drawing.Size(249, 20);
+ this.panel2.TabIndex = 33;
+ //
+ // Paging
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(536, 359);
+ this.Controls.Add(this.panel2);
+ this.Controls.Add(this.panel1);
+ this.Controls.Add(this.pnlServer);
+ this.Controls.Add(this.gbDefaultController);
+ this.Controls.Add(this.gbController);
+ this.Controls.Add(this.gbRenderMode);
+ this.Controls.Add(this.btnScene);
+ this.Controls.Add(this.btnTextFile);
+ this.Controls.Add(this.btnLoadScene);
+ this.Controls.Add(this.btnConnect);
+ this.Controls.Add(this.cbPlayText);
+ this.Controls.Add(this.lblPlayText);
+ this.Name = "Paging";
+ this.Text = "Paging";
+ this.Load += new System.EventHandler(this.Paging_Load);
+ this.gbRenderMode.ResumeLayout(false);
+ this.gbDefaultController.ResumeLayout(false);
+ this.gbController.ResumeLayout(false);
+ this.pnlServer.ResumeLayout(false);
+ this.pnlServer.PerformLayout();
+ this.panel1.ResumeLayout(false);
+ this.panel1.PerformLayout();
+ this.panel2.ResumeLayout(false);
+ this.panel2.PerformLayout();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Label lblServerIP;
+ private System.Windows.Forms.Label lblTextFile;
+ private System.Windows.Forms.Label lblSceneGraph;
+ private System.Windows.Forms.Label lblPlayText;
+ private System.Windows.Forms.TextBox txtServerIp;
+ private System.Windows.Forms.TextBox txtTextFile;
+ private System.Windows.Forms.TextBox txtSceneGraph;
+ private System.Windows.Forms.CheckBox cbPlayText;
+ private System.Windows.Forms.Button btnConnect;
+ private System.Windows.Forms.Button btnLoadScene;
+ private System.Windows.Forms.Button btnPlayDefaultController;
+ private System.Windows.Forms.Button btnPauseDefaultController;
+ private System.Windows.Forms.Button btnStopDefaultController;
+ private System.Windows.Forms.Button btnTextFile;
+ private System.Windows.Forms.Button btnScene;
+ private System.Windows.Forms.Button btnProgram;
+ private System.Windows.Forms.Button btnPreview;
+ private System.Windows.Forms.GroupBox gbRenderMode;
+ private System.Windows.Forms.GroupBox gbDefaultController;
+ private System.Windows.Forms.FolderBrowserDialog folderBrowserDialog1;
+ private System.Windows.Forms.OpenFileDialog openFileDialog;
+ private System.Windows.Forms.Button btnOffAir;
+ private System.Windows.Forms.Button btnOnAir;
+ private System.Windows.Forms.Button btnPlayController;
+ private System.Windows.Forms.Button btnPauseController;
+ private System.Windows.Forms.Button btnStopController;
+ private System.Windows.Forms.GroupBox gbController;
+ private System.Windows.Forms.Panel pnlServer;
+ private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.Panel panel2;
+ }
+}
+
diff --git a/Paging/Paging.cs b/Paging/Paging.cs
new file mode 100644
index 0000000..7245392
--- /dev/null
+++ b/Paging/Paging.cs
@@ -0,0 +1,725 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.IO;
+using System.Collections;
+using System.Configuration;
+using System.Windows.Forms;
+
+using Beesys.Wasp.Workflow;
+namespace PagingApp
+{
+ public partial class Paging : Form
+ {
+
+ #region class members
+
+ private LinkManager m_objLinkManager = null;
+ private Link m_objLink = null;
+ private ShotBox m_objShotBox = null;
+ private string m_sLinkType = string.Empty;
+ private string m_sEngineIP = string.Empty;
+ private string m_sEngineUrl = string.Empty;
+ private string m_sWslPath = string.Empty;
+ private bool m_bIsStop;
+ private bool m_bIsPauseInfinite;
+ private bool m_bIsPause;
+ private string m_sSGvariable;
+ private ArrayList m_objArrPageText = null;
+ private string m_sPort = string.Empty;
+ private int m_iPlayCount;
+ private TagData m_objTagData;
+ private const string MODULENAME = "WASP";
+
+ #endregion
+
+
+ #region constructor
+
+ public Paging()
+ {
+ InitializeComponent();
+ m_objArrPageText = new ArrayList();
+ m_objTagData = new TagData();
+ }//end (Paging)
+
+ #endregion
+
+
+ #region events
+
+ ///
+ /// fires when engine is connected
+ ///
+ ///
+ ///
+ private void objLink_OnEngineConnected(object sender, EventArgs e)
+ {
+ btnConnect.BackColor = Color.DarkGreen;
+ }//end (objLink_OnEngineConnected)
+
+
+ ///
+ /// used to connect with the server
+ ///
+ ///
+ ///
+ private void btnConnect_Click(object sender, EventArgs e)
+ {
+ string sLinkFormat = null;
+ try
+ {
+ if (m_objShotBox == null)
+ {
+ if (!string.IsNullOrEmpty(txtServerIp.Text.Trim()))
+ {
+ m_sEngineIP = txtServerIp.Text;
+ switch (m_sLinkType.ToLower())
+ {
+
+ case "namedpipe":
+ sLinkFormat = string.Format("net.pipe://{0}/WcfNamedPipeLink", txtServerIp.Text);
+ break;
+ default:
+ sLinkFormat = string.Format("net.tcp://{0}:{1}/TcpBinding/WcfTcpLink", txtServerIp.Text, m_sPort);
+ break;
+ }//end (switch)
+ m_sEngineUrl = sLinkFormat;
+ m_objLink.Connect(sLinkFormat);
+
+ }//end (if)
+
+ }//end (if)
+
+ }//end (try)
+ catch (Exception ex)
+ {
+ LogWriter.WriteLog(MODULENAME, ex);
+ }//end (catch)
+ }//end (btnConnect_Click)
+
+
+ ///
+ /// used to select and read the text file
+ ///
+ ///
+ ///
+ private void btnTextFile_Click(object sender, EventArgs e)
+ {
+ FileInfo objFileInfo = null;
+ try
+ {
+ openFileDialog.Filter = "Text Files (*.txt)|*.txt";
+ if (Equals(openFileDialog.ShowDialog(), DialogResult.OK))
+ {
+ if (!String.IsNullOrEmpty(openFileDialog.FileName))
+ {
+ txtTextFile.Text = String.Empty;
+ objFileInfo = new FileInfo(openFileDialog.FileName);
+ txtTextFile.Text = objFileInfo.Name;
+ txtTextFile.Tag = openFileDialog.FileName;
+ ReadFile(objFileInfo.FullName);
+ }//end (if)
+
+ }//end (if)
+ btnLoadScene.Enabled = true;
+ }//end (try)
+ catch (Exception ex)
+ {
+ LogWriter.WriteLog(MODULENAME, ex);
+ }//end (catch)
+ }//end (btnTextFile_Click)
+
+
+ ///
+ /// used to select the scenegraph
+ ///
+ ///
+ ///
+ private void btnScene_Click(object sender, EventArgs e)
+ {
+ FileInfo objFileInfo = null;
+ try
+ {
+ openFileDialog.Filter = "wsl or w3d files (*.wsl;*.w3d)|*.wsl;*.w3d";
+ openFileDialog.InitialDirectory = AppDomain.CurrentDomain.BaseDirectory + ConfigurationManager.AppSettings["WSL_PATH"];
+ if (m_objShotBox == null)
+ {
+ if (Equals(openFileDialog.ShowDialog(), DialogResult.OK))
+ {
+ txtSceneGraph.Text = string.Empty;
+ txtSceneGraph.Tag = string.Empty;
+ objFileInfo = new FileInfo(openFileDialog.FileName);
+ txtSceneGraph.Text = objFileInfo.Name;
+ txtSceneGraph.Tag = objFileInfo.FullName;
+ m_sWslPath = objFileInfo.FullName;
+ }//end (if)
+
+ }//end (if)
+ }//end (try)
+ catch (Exception ex)
+ {
+ LogWriter.WriteLog(MODULENAME, ex);
+ }//end (catch)
+ finally
+ {
+ objFileInfo = null;
+ }//end (finally)
+
+ }//end (btnScene_Click)
+
+
+ ///
+ /// used to prepare the scenegraph
+ ///
+ ///
+ ///
+ 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(m_objShotBox_OnShotBoxStatus);
+ m_objShotBox.OnShotBoxControllerStatus += new EventHandler(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)
+
+
+
+ ///
+ /// fires when controller send the pageout status
+ ///
+ ///
+ ///
+ void m_objShotBox_OnShotBoxControllerStatus(object sender, SHOTBOXARGS e)
+ {
+ switch (e.SHOTBOXRESPONSE)
+ {
+ case SHOTBOXMSG.PAGEOUT: HandlePageOut();
+ break;
+
+ }//end (switch)
+ }//end (m_objShotBox_OnShotBoxControllerStatus)
+
+
+
+ ///
+ /// used to taking the scenegraph on air
+ ///
+ ///
+ ///
+ private void btnOnAir_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!Equals(m_objShotBox, null))
+ {
+ m_objShotBox.SetRender(true);
+ }//end (if)
+
+ }//end (try)
+ catch (Exception ex)
+ {
+ LogWriter.WriteLog(MODULENAME, ex);
+ }//end (catch)
+ }//end (btnOnAir_Click)
+
+
+ ///
+ /// used to taking the scenegraph off air
+ ///
+ ///
+ ///
+ private void btnOffAir_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!Equals(m_objShotBox, null))
+ m_objShotBox.SetRender(false);
+ }//end (try)
+ catch (Exception ex)
+ {
+ LogWriter.WriteLog(MODULENAME, ex);
+ }//end (catch)
+ }//end (btnOffAir_Click)
+
+
+ ///
+ /// used to change the mode as program
+ ///
+ ///
+ ///
+ private void btnProgram_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!Equals(m_objShotBox, null))
+ {
+ btnProgram.BackColor = Color.DimGray;
+ btnPreview.BackColor = Color.DarkGreen;
+ m_objShotBox.SetMode(RENDERMODE.PROGRAM);
+
+ }//end (if)
+ }//end (try
+ catch (Exception ex)
+ {
+ LogWriter.WriteLog(MODULENAME, ex);
+ }//end (catch)
+
+ }//end (btnProgram_Click)
+
+
+ ///
+ /// used to change the mode as preview
+ ///
+ ///
+ ///
+ private void btnPreview_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!Equals(m_objShotBox, null))
+ {
+ btnProgram.BackColor = Color.DarkGreen;
+ btnPreview.BackColor = Color.DimGray;
+ m_objShotBox.SetMode(RENDERMODE.PREVIEW);
+
+ }//end (if)
+ }//end (try)
+ catch (Exception ex)
+ {
+ LogWriter.WriteLog(MODULENAME, ex);
+ }//end (catch)
+ }//end (btnPreview_Click)
+
+
+ ///
+ /// used to get the link from the link manager
+ ///
+ ///
+ ///
+ private void Paging_Load(object sender, EventArgs e)
+ {
+ string sLinkID = null;
+ try
+ {
+ m_objLinkManager = new LinkManager();
+ m_sPort = ConfigurationManager.AppSettings["port"].ToString();
+ m_sLinkType = ConfigurationManager.AppSettings["linktype"].ToString();
+ txtServerIp.Text = ConfigurationManager.AppSettings["ipconfig"];
+ if (!Equals(m_objLinkManager, null))
+ {
+ if (string.Compare(m_sLinkType, "TCP", StringComparison.OrdinalIgnoreCase) == 0)
+ m_objLink = m_objLinkManager.GetLink(LINKTYPE.TCP, out sLinkID);
+ if (string.Compare(m_sLinkType, "NAMEDPIPE", StringComparison.OrdinalIgnoreCase) == 0)
+ m_objLink = m_objLinkManager.GetLink(LINKTYPE.NAMEDPIPE, out sLinkID);
+
+ }//end (if)
+ //cbPlayText.Enabled = false;
+ m_objLink.OnEngineConnected += new EventHandler(objLink_OnEngineConnected);
+ this.FormClosing += new FormClosingEventHandler(Paging_FormClosing);
+
+ }//end (try)
+ catch (Exception ex)
+ {
+ LogWriter.WriteLog(MODULENAME, ex);
+ }//end (catch)
+ }//end (Paging_Load)
+
+
+ ///
+ /// fires when user wants to close the form
+ ///
+ ///
+ ///
+ void Paging_FormClosing(object sender, FormClosingEventArgs e)
+ {
+ try
+ {
+ if (!Equals(m_objShotBox, null))
+ {
+ m_objShotBox.DeleteSg();
+ }//end (if)
+ if (!Equals(m_objLink, null))
+ {
+ m_objLink.DisconnectAll();
+ }//end (if)
+ }//end (try)
+ catch (Exception ex)
+ {
+ LogWriter.WriteLog(MODULENAME, ex);
+ }//end (catch)
+ }//end (Paging_FormClosing)
+
+
+ ///
+ /// used to play the default controller
+ ///
+ ///
+ ///
+ private void btnPlayDefaultController_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ btnPlayDefaultController.BackColor = Color.DimGray;
+ if (m_objShotBox != null)
+ {
+ m_objTagData.UserTags = new string[] { m_objShotBox.UserTags[0].Name, m_objShotBox.UserTags[1].Name };
+ m_objTagData.Indexes = new string[] { "-1", "-1" };
+ m_objTagData.IsOnAirUpdate = true;
+ m_objTagData.SgXml = m_sSGvariable;
+ m_objTagData.TagType = new DataTargetType[] { DataTargetType.UserTag, DataTargetType.UserTag };
+ m_objTagData.Values = new string[] { "Header", m_objArrPageText[0].ToString().Trim() };
+ m_objShotBox.UpdateSceneGraph(m_objTagData);
+ m_objShotBox.Play(true,true);
+ m_iPlayCount++;
+ // m_objShotBox.Play();
+
+ #region old code
+ // m_objShotBox.Controllers[0].Play();
+ //if (m_bIsPause)
+ //{
+ // m_objShotBox.Play(false, false);
+ // m_objShotBox.Controllers[0].Play(false,false);
+ // m_bIsPause = false;
+ //}//end (if)
+ //else
+ //{
+ // if (m_bIsStop)
+ // {
+ // m_objShotBox.Controllers[0].Stop();
+ // m_iPlayCount = 0;
+ // m_objArrPageText.Clear();
+ // ReadFile(txtTextFile.Tag.ToString());
+ // m_bIsStop = false;
+ // }//end (if)
+ // m_objTagData.UserTags = new string[] { m_objShotBox.UserTags[0].Name, m_objShotBox.UserTags[1].Name };
+ // m_objTagData.Indexes = new string[] { "-1", "-1" };
+ // m_objTagData.IsOnAirUpdate = true;
+ // m_objTagData.SgXml = m_sSGvariable;
+ // m_objTagData.TagType = new DataTargetType[] { DataTargetType.UserTag, DataTargetType.UserTag };
+ // m_objTagData.Values = new string[] { "Header", m_objArrPageText[0].ToString().Trim() };
+
+ // m_objShotBox.UpdateSceneGraph(m_objTagData);
+ // m_objShotBox.Play(true, true);
+ // m_iPlayCount++;
+ //}//end (else)
+ #endregion
+
+
+
+ }//end (if)
+ }//end (btnPlayDefaultController_Click)
+ catch (Exception ex)
+ {
+ LogWriter.WriteLog(MODULENAME, ex);
+ }//end (catch)
+ }//end (btnPlayDefaultController_Click)
+
+
+ ///
+ /// used to pause the default controller
+ ///
+ ///
+ ///
+ private void btnPauseDefaultController_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!Equals(m_objShotBox, null))
+ {
+
+ }//end (if)
+ }//end (try)
+ catch (Exception ex)
+ {
+ LogWriter.WriteLog(MODULENAME, ex);
+
+ }//end (catch)
+
+ }//end (btnPauseDefaultController_Click)
+
+
+ ///
+ /// used to stop the default controller
+ ///
+ ///
+ ///
+ private void btnStopDefaultController_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!Equals(m_objShotBox, null))
+ {
+ m_bIsPause = false;
+ m_bIsStop = true;
+ m_objShotBox.Stop();
+ m_iPlayCount = 0;
+ }//end (if)
+ }//end (try)
+ catch (Exception ex)
+ {
+ LogWriter.WriteLog(MODULENAME, ex);
+ }//end (catch)
+ }//end (btnStopDefaultController_Click)
+
+
+ ///
+ /// used to play the controller 1
+ ///
+ ///
+ ///
+ private void btnPlayController_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (!Equals(m_objShotBox, null))
+ {
+ if (m_bIsPause)
+ {
+ m_objShotBox.Controllers[0].Play(false, false);
+ m_bIsPause = false;
+ }//end (if)
+ else
+ {
+ if (m_bIsStop)
+ {
+ //m_objShotBox.Controllers[0].Stop();
+ m_iPlayCount = 0;
+ m_objArrPageText.Clear();
+ ReadFile(txtTextFile.Tag.ToString());
+ m_bIsStop = false;
+ }//end (if)
+ m_objTagData.UserTags = new string[] { m_objShotBox.UserTags[0].Name, m_objShotBox.UserTags[1].Name };
+ m_objTagData.Indexes = new string[] { "-1", "-1" };
+ m_objTagData.IsOnAirUpdate = true;
+ m_objTagData.SgXml = m_sSGvariable;
+ m_objTagData.TagType = new DataTargetType[] { DataTargetType.UserTag, DataTargetType.UserTag };
+ m_objTagData.Values = new string[] { "Header", m_objArrPageText[0].ToString().Trim() };
+ m_objShotBox.UpdateSceneGraph(m_objTagData);
+ m_objShotBox.Play(true, true);
+ m_iPlayCount++;
+ }//end (else)
+
+ }//end (if)
+ }//end (try)
+ catch (Exception ex)
+ {
+ LogWriter.WriteLog(MODULENAME, ex);
+
+ }//end (catch)
+ }//end (btnPlayController_Click)
+
+
+ ///
+ /// used to pause the controller 1
+ ///
+ ///
+ ///
+ private void btnPauseController_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (m_objShotBox != null)
+ {
+ // m_objShotBox.Controllers[0].Pause();
+
+ // m_objShotBox.Pause();
+ m_objShotBox.Controllers[0].Pause();
+ m_bIsPause = true;
+ }//end (if)
+ }//end (try)
+ catch (Exception ex)
+ {
+ LogWriter.WriteLog(MODULENAME, ex);
+ }//end (catch)
+ }//end (btnPauseController_Click)
+
+
+ ///
+ /// used to stop the controller 1
+ ///
+ ///
+ ///
+ private void btnStopController_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (m_objShotBox != null)
+ {
+ //m_objShotBox.Stop();
+ m_objShotBox.Controllers[0].Stop();
+ m_bIsPause = false;
+ m_bIsStop = true;
+
+ m_iPlayCount = 0;
+ }//end (if)
+ }//end (try)
+ catch (Exception ex)
+ {
+ LogWriter.WriteLog(MODULENAME, ex);
+ }//end (catch)
+ }//end (btnStopController_Click)
+
+
+
+ ///
+ /// this event fires when scenegraph is loaded
+ ///
+ ///
+ ///
+ void m_objShotBox_OnShotBoxStatus(object sender, SHOTBOXARGS e)
+ {
+ if (Equals(e.SHOTBOXRESPONSE, SHOTBOXMSG.PREPARED))
+ {
+ btnProgram.BackColor = Color.DarkGreen;
+ btnPlayDefaultController.BackColor = Color.DarkGreen;
+ }//end (if)
+ }//end (m_objShotBox_OnShotBoxStatus)
+
+ #endregion
+
+
+ #region private methods
+
+ ///
+ /// handle pageout
+ ///
+ private void HandlePageOut()
+ {
+ try
+ {
+ if (m_objArrPageText.Count > m_iPlayCount)
+ {
+ UpdatePlayController();
+ }//end (if)
+ else if (Equals(m_objArrPageText.Count, m_iPlayCount))
+ {
+ ContinuePlay();
+ }//end (else if)
+
+ }//end (try)
+ catch (Exception ex)
+ {
+ LogWriter.WriteLog(MODULENAME, ex);
+
+ }//end (catch)
+
+ }//end (HandlePageOut)
+
+
+ private void ContinuePlay()
+ {
+ try
+ {
+ //if (!Equals(cbPlayText.CheckState, CheckState.Checked))
+ // m_objShotBox.Play();
+ if (Equals(cbPlayText.CheckState, CheckState.Checked))
+ {
+ m_iPlayCount = 0;
+ m_objArrPageText.Clear();
+ ReadFile(txtTextFile.Tag.ToString());
+ UpdatePlayController();
+
+ }//end (else if)
+ }//end (try)
+ catch (Exception ex)
+ {
+ LogWriter.WriteLog(MODULENAME, ex);
+ }//end (catch)
+ }//end (ContinuePlay)
+
+
+ ///
+ /// update the controller
+ ///
+ private void UpdatePlayController()
+ {
+ try
+ {
+ m_objTagData.UserTags = new string[] { m_objShotBox.UserTags[1].Name };
+ m_objTagData.Indexes = new string[] { "-1" };
+ m_objTagData.IsOnAirUpdate = true;
+ m_objTagData.SgXml = m_sSGvariable;
+ m_objTagData.TagType = new DataTargetType[] { DataTargetType.UserTag };
+ m_objTagData.Values = new string[] { m_objArrPageText[m_iPlayCount].ToString().Trim() };
+ m_objShotBox.Controllers[0].GoTo(0);
+ m_objShotBox.UpdateSceneGraph(m_objTagData);
+ m_objShotBox.Controllers[0].Play();
+ m_iPlayCount++;
+ }//end (try)
+ catch(Exception ex)
+ {
+ LogWriter.WriteLog(MODULENAME,ex);
+ }//end (catch)
+
+
+ }//end (UpdatePlayController)
+
+
+ ///
+ /// used for reading the file
+ ///
+ ///
+ private void ReadFile(string sFile)
+ {
+ string sLine = null;
+ try
+ {
+ if (!string.IsNullOrEmpty(sFile))
+ {
+ TextReader objTextReader = new StreamReader(sFile);
+ while (!Equals(sLine = objTextReader.ReadLine(), null))
+ {
+ m_objArrPageText.Add(sLine);
+ }//end (while)
+ objTextReader.Close();
+ }//end (if)
+ }//end (try)
+ catch (Exception ex)
+ {
+ LogWriter.WriteLog(MODULENAME, ex);
+
+ }//end (catch)
+ }//end (ReadFile)
+
+ #endregion
+
+
+
+ }
+
+
+}
diff --git a/Paging/Paging.csproj b/Paging/Paging.csproj
new file mode 100644
index 0000000..952fd03
--- /dev/null
+++ b/Paging/Paging.csproj
@@ -0,0 +1,143 @@
+
+
+
+ Debug
+ x86
+ 8.0.30703
+ 2.0
+ {3F3941E2-95AF-424F-B762-5004A6BC8960}
+ WinExe
+ Properties
+ PagingApp
+ PagingApp
+ v4.0
+
+
+ 512
+
+
+
+
+
+
+
+
+
+
+ x86
+ true
+ full
+ false
+ bin\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ x86
+ pdbonly
+ true
+ bin\
+ TRACE
+ prompt
+ 4
+
+
+
+ packages\Wasp3DSDK.3.50.15000.10206\lib\Beesys.Wasp.AddIn.ILinkCommandManager.dll
+
+
+ packages\Wasp3DSDK.3.50.15000.10206\lib\BeeSys.Wasp.CommonReference.dll
+
+
+ packages\Wasp3DSDK.3.50.15000.10206\lib\BeeSys.Wasp.Communicator.dll
+
+
+ packages\Wasp3DSDK.3.50.15000.10206\lib\BeeSys.Wasp.KernelController.IServices.dll
+
+
+ packages\Wasp3DSDK.3.50.15000.10206\lib\Beesys.Wasp.SceneReader.dll
+
+
+ packages\Wasp3DSDK.3.50.15000.10206\lib\Beesys.Wasp.ShotBoxManager.dll
+
+
+ packages\Wasp3DSDK.3.50.15000.10206\lib\Beesys.Wasp.Workflow.CommunicationHandler.dll
+
+
+ True
+ packages\Wasp3DSDK.3.50.15000.10206\lib\GeneralWorkings.dll
+
+
+ packages\Wasp3DSDK.3.50.15000.10206\lib\Interop.MSMQ.dll
+ True
+
+
+
+
+
+
+
+
+
+
+
+
+
+ packages\Wasp3DSDK.3.50.15000.10206\lib\Xceed.Compression.dll
+
+
+ packages\Wasp3DSDK.3.50.15000.10206\lib\Xceed.FileSystem.dll
+
+
+ packages\Wasp3DSDK.3.50.15000.10206\lib\Xceed.Zip.dll
+
+
+
+
+ Form
+
+
+ Paging.cs
+
+
+
+
+ Paging.cs
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+ Designer
+
+
+ True
+ Resources.resx
+ True
+
+
+ Designer
+
+
+
+ SettingsSingleFileGenerator
+ Settings.Designer.cs
+
+
+ True
+ Settings.settings
+ True
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Paging/Paging.resx b/Paging/Paging.resx
new file mode 100644
index 0000000..15a41df
--- /dev/null
+++ b/Paging/Paging.resx
@@ -0,0 +1,126 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ 17, 17
+
+
+ 175, 17
+
+
\ No newline at end of file
diff --git a/Paging/Paging.sln b/Paging/Paging.sln
new file mode 100644
index 0000000..3fa8c37
--- /dev/null
+++ b/Paging/Paging.sln
@@ -0,0 +1,22 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2013
+VisualStudioVersion = 12.0.30501.0
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Paging", "Paging.csproj", "{3F3941E2-95AF-424F-B762-5004A6BC8960}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|x86 = Debug|x86
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {3F3941E2-95AF-424F-B762-5004A6BC8960}.Debug|x86.ActiveCfg = Debug|x86
+ {3F3941E2-95AF-424F-B762-5004A6BC8960}.Debug|x86.Build.0 = Debug|x86
+ {3F3941E2-95AF-424F-B762-5004A6BC8960}.Release|x86.ActiveCfg = Release|x86
+ {3F3941E2-95AF-424F-B762-5004A6BC8960}.Release|x86.Build.0 = Release|x86
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/Paging/Program.cs b/Paging/Program.cs
new file mode 100644
index 0000000..2f17173
--- /dev/null
+++ b/Paging/Program.cs
@@ -0,0 +1,21 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Windows.Forms;
+
+namespace PagingApp
+{
+ static class Program
+ {
+ ///
+ /// The main entry point for the application.
+ ///
+ [STAThread]
+ static void Main()
+ {
+ Application.EnableVisualStyles();
+ Application.SetCompatibleTextRenderingDefault(false);
+ Application.Run(new Paging());
+ }
+ }
+}
diff --git a/Paging/Properties/AssemblyInfo.cs b/Paging/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..d3389e6
--- /dev/null
+++ b/Paging/Properties/AssemblyInfo.cs
@@ -0,0 +1,37 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("PagingApp")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Beehive Systems Ltd")]
+[assembly: AssemblyProduct("WASP3D")]
+[assembly: AssemblyCopyright("© Beehive Systems Ltd. All rights reserved.")]
+[assembly: AssemblyInformationalVersion("2015")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("2e412ccc-4fcc-4857-ade6-078df378935e")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("3.0.0.0")]
+[assembly: AssemblyFileVersion("3.50.15000.10206")]
diff --git a/Paging/Properties/Resources.Designer.cs b/Paging/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..d9de0b9
--- /dev/null
+++ b/Paging/Properties/Resources.Designer.cs
@@ -0,0 +1,63 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.1
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace PagingApp.Properties {
+ using System;
+
+
+ ///
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ ///
+ // This class was auto-generated by the StronglyTypedResourceBuilder
+ // class via a tool like ResGen or Visual Studio.
+ // To add or remove a member, edit your .ResX file then rerun ResGen
+ // with the /str option, or rebuild your VS project.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources() {
+ }
+
+ ///
+ /// Returns the cached ResourceManager instance used by this class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager {
+ get {
+ if (object.ReferenceEquals(resourceMan, null)) {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("PagingApp.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture {
+ get {
+ return resourceCulture;
+ }
+ set {
+ resourceCulture = value;
+ }
+ }
+ }
+}
diff --git a/Paging/Properties/Resources.resx b/Paging/Properties/Resources.resx
new file mode 100644
index 0000000..af7dbeb
--- /dev/null
+++ b/Paging/Properties/Resources.resx
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/Paging/Properties/Settings.Designer.cs b/Paging/Properties/Settings.Designer.cs
new file mode 100644
index 0000000..07261c9
--- /dev/null
+++ b/Paging/Properties/Settings.Designer.cs
@@ -0,0 +1,26 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.1
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace PagingApp.Properties {
+
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
+ internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
+
+ private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+ public static Settings Default {
+ get {
+ return defaultInstance;
+ }
+ }
+ }
+}
diff --git a/Paging/Properties/Settings.settings b/Paging/Properties/Settings.settings
new file mode 100644
index 0000000..3964565
--- /dev/null
+++ b/Paging/Properties/Settings.settings
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/Paging/Update.txt b/Paging/Update.txt
new file mode 100644
index 0000000..9fadee6
--- /dev/null
+++ b/Paging/Update.txt
@@ -0,0 +1,8 @@
+ ******************************************************
+ S.No.:- 1
+ Modified By: - Ravikant
+ Modify Date: - 11 Sep 2014
+ Purpose: - Convert port from 4 digit to 5 digit
+ File Name : - app.config
+
+ ******************************************************
\ No newline at end of file
diff --git a/Paging/packages.config b/Paging/packages.config
new file mode 100644
index 0000000..37b7b81
--- /dev/null
+++ b/Paging/packages.config
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file