Exemple #1
0
        private void tsmiCascadeWindow_Click(object sender, EventArgs e)
        {
            ToolStripMenuItem tsmi = sender as ToolStripMenuItem;

            if (tsmi != null)
            {
                if (tsmi.Equals(this.tsmiCascadeWindow))
                {
                    this.LayoutMdi(MdiLayout.Cascade);
                }
                else if (tsmi.Equals(this.tsmiTileHorizontalWindow))
                {
                    this.LayoutMdi(MdiLayout.TileHorizontal);
                }
                else if (tsmi.Equals(this.tsmiTileVerticalWindow))
                {
                    this.LayoutMdi(MdiLayout.TileVertical);
                }
                else if (tsmi.Equals(this.tsmiAllWindowClose))
                {
                    this.CloseAllMdiForm();
                }
                else if (tsmi.Equals(this.tsmiArrangeIconsWindow))
                {
                    this.LayoutMdi(MdiLayout.ArrangeIcons);
                }
            }
        }
        private void quảnLýALBUMToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ToolStripMenuItem tsmi = (ToolStripMenuItem)sender;

            if (tsmi.Equals(quảnLýALBUMToolStripMenuItem))
            {
                tabControl1.SelectedIndex = 1;
            }
            else if (tsmi.Equals(quảnLýTHỂLOẠIToolStripMenuItem))
            {
                tabControl1.SelectedIndex = 2;
            }
            else if (tsmi.Equals(quảnLýCASĨToolStripMenuItem))
            {
                tabControl1.SelectedIndex = 3;
            }
            else if (tsmi.Equals(quảnLýTÁCGIẢToolStripMenuItem))
            {
                tabControl1.SelectedIndex = 4;
            }
            else if (tsmi.Equals(quảnLýHÃNGSẢNXUẤTToolStripMenuItem))
            {
                tabControl1.SelectedIndex = 5;
            }
            else
            {
                tabControl1.SelectedIndex = 6;
            }
        }
Exemple #3
0
        private void DebugStripMenuItem_Click(object sender, System.EventArgs e)
        {
            ToolStripMenuItem item  = sender as ToolStripMenuItem;
            DebuggerLogLevel  level = DebuggerLogLevel.Log;

            // Only one Toolstrip item checked at a time
            this.debugDiagnosticMenuItem.Checked = false;
            this.debugLogMenuItem.Checked        = false;
            this.debugEventMenuItem.Checked      = false;
            this.debugMsgMenuItem.Checked        = false;
            item.Checked = true;

            // Update the debugger
            if (item.Equals(debugDiagnosticMenuItem))
            {
                level = DebuggerLogLevel.Diagnostic;
            }
            if (item.Equals(debugEventMenuItem))
            {
                level = DebuggerLogLevel.Event;
            }
            if (item.Equals(debugMsgMenuItem))
            {
                level = DebuggerLogLevel.Message;
            }

            base.LogLevel = level;
        }
Exemple #4
0
        private void FileNewMenu_click(object sender, EventArgs e)
        {
            ToolStripMenuItem clicked = (ToolStripMenuItem)sender;

            if (clicked.Equals(FileNewDatasetMenuItem))
            {
                readDataset();
            }

            else if (clicked.Equals(FileNewSongMenuItem))
            {
                OpenFileDialog of = new OpenFileDialog();
                of.Filter = "Sound Files (*.wav)|*.wav|(*.mp3)|*.mp3|(*.au)|*.au";
                of.ShowDialog();
                if (of.FileName != "")
                {
                    String dir  = Path.GetDirectoryName(Directory.GetParent(Directory.GetParent(of.FileName).ToString()).ToString());
                    Song   song = new Song(Path.GetFileName(of.FileName), dir, of.FileName);
                }
            }
            else if (clicked.Equals(FileNewFeatureMenuItem))
            {
                Add_Item_Popup popup = new Add_Item_Popup();
                popup.ShowDialog();
            }
        }
Exemple #5
0
        private void editCreateBitmapMenu_Click(object sender, EventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;

            ToolStripMenuItem selectedMenu = sender as ToolStripMenuItem;

            if (selectedMenu.Equals(editCreateBitmapA4300Menu))
            {
                CreateBitmap("A4\n300 dpi", 2481, 3507, 300, 300);
            }
            else if (selectedMenu.Equals(editCreateBitmapA4600Menu))
            {
                CreateBitmap("A4\n600 dpi", 4962, 7014, 600, 600);
            }
            else if (selectedMenu.Equals(editCreateBitmapLetter300Menu))
            {
                CreateBitmap("Letter\n300 dpi", 2550, 3300, 300, 300);
            }
            else
            {
                CreateBitmap("Letter\n600 dpi", 5100, 6600, 600, 600);
            }

            Cursor.Current = Cursors.Default;
        }
Exemple #6
0
        // Menu items -----------------------------------------------------------------------------
        private void Open_URL_From_Menu_Item(object sender, EventArgs e)
        {
            ToolStripMenuItem item = (ToolStripMenuItem)sender;

            if (item.Equals(githubToolStripMenuItem))
            {
                System.Diagnostics.Process.Start(Resources.ResourceManager.GetString("URL_Github"));
            }
            else if (item.Equals(payPalToolStripMenuItem))
            {
                System.Diagnostics.Process.Start(Resources.ResourceManager.GetString("URL_PayPal"));
            }
            else if (item.Equals(twitterToolStripMenuItem))
            {
                System.Diagnostics.Process.Start(Resources.ResourceManager.GetString("URL_Twitter"));
            }
            else if (item.Equals(supportToolStripMenuItem))
            {
                System.Diagnostics.Process.Start(Resources.ResourceManager.GetString("URL_Support"));
            }
            else
            {
                throw new ArgumentOutOfRangeException("Unknown URL requested,");
            }
        }
Exemple #7
0
        private void ShutdownToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ToolStripMenuItem menuItem = (ToolStripMenuItem)sender;
            String            msg      = String.Empty;

            FavoriteConfigurationElement fav = this.TreeView.SelectedFavorite;

            if (fav != null)
            {
                MagicPacket.ShutdownCommands shutdownStyle;
                if (menuItem.Equals(this.shutdownToolStripMenuItem))
                {
                    msg           = String.Format("Are you sure you want to shutdown this machine: {0}", fav.ServerName);
                    shutdownStyle = MagicPacket.ShutdownCommands.ForcedShutdown;
                }
                else if (menuItem.Equals(this.rebootToolStripMenuItem))
                {
                    msg           = String.Format("Are you sure you want to reboot this machine: {0}", fav.ServerName);
                    shutdownStyle = MagicPacket.ShutdownCommands.ForcedReboot;
                }
                else
                {
                    return;
                }

                if (MessageBox.Show(msg, "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes)
                {
                    try
                    {
                        if (MagicPacket.ForceShutdown(fav.ServerName, shutdownStyle, fav.Credential) == 0)
                        {
                            MessageBox.Show(AssemblyInfo.Title + " successfully sent the shutdown command.");
                            return;
                        }
                    }
                    catch (ManagementException ex)
                    {
                        Log.Info(ex.ToString(), ex);
                        MessageBox.Show("Terminals was not able to shutdown the machine remotely.\r\nPlease check the log file.");
                    }
                    catch (UnauthorizedAccessException)
                    {
                        MessageBox.Show("Terminals was not able to shutdown the machine remotely.\r\n\r\nAccess is Denied.");
                        return;
                    }
                }
            }
            else
            {
                MessageBox.Show("Terminals was not able to shutdown the machine remotely.");
            }
        }
Exemple #8
0
        private void FileMenu_click(object sender, EventArgs e)
        {
            ToolStripMenuItem clicked = (ToolStripMenuItem)sender;

            if (clicked.Equals(FileSaveDataMenuItem))
            {
                saveData();
            }
            else if (clicked.Equals(FileLoadDataMenuItem))
            {
                loadData();
            }
        }
Exemple #9
0
        // Update the game difficulty when a selection is made
        private void DifficultyChangeHandler(object sender, EventArgs e)
        {
            ToolStripMenuItem item = (ToolStripMenuItem)sender;

            if (item.Equals(easyToolStripMenuItem))
            {
                easyToolStripMenuItem.Checked = blnEasyMode = true;
                hardToolStripMenuItem.Checked = false;
            }
            else if (item.Equals(hardToolStripMenuItem))
            {
                easyToolStripMenuItem.Checked = blnEasyMode = false;
                hardToolStripMenuItem.Checked = true;
            }
        }
Exemple #10
0
        private void tsmiSQLWindow_Click(object sender, EventArgs e)
        {
            ToolStripMenuItem tsmi = sender as ToolStripMenuItem;

            if (tsmi != null)
            {
                if (tsmi.Equals(this.tsmiSQLWindow))
                {
                    if (!this.tsSub.Items.Contains(this.mTsBtnSqlWindow))
                    {
                        this.tsSub.Items.Add(this.mTsBtnSqlWindow);
                    }

                    this.tsBtn_Click(this.mTsBtnSqlWindow, null);
                }
                else if (tsmi.Equals(this.tsmiSchemaBrowser))
                {
                    if (!this.tsSub.Items.Contains(this.mTsBtnSchemaBrowser))
                    {
                        this.tsSub.Items.Add(this.mTsBtnSchemaBrowser);
                    }

                    this.tsBtn_Click(this.mTsBtnSchemaBrowser, null);
                }
                else if (tsmi.Equals(this.tsmiSessionView))
                {
                    if (!this.tsSub.Items.Contains(this.mTsBtnSessionView))
                    {
                        this.tsSub.Items.Add(this.mTsBtnSessionView);
                    }

                    this.tsBtn_Click(this.mTsBtnSessionView, null);
                }
                else if (tsmi.Equals(this.tsmiTableSpaceViewer))
                {
                    if (!this.tsSub.Items.Contains(this.mTsBtnTableSpaceView))
                    {
                        this.tsSub.Items.Add(this.mTsBtnTableSpaceView);
                    }

                    this.tsBtn_Click(this.mTsBtnTableSpaceView, null);
                }
            }
        }
Exemple #11
0
        private void cmnuPC_Click(object sender, EventArgs e)
        {
            ToolStripMenuItem mnu = (ToolStripMenuItem)sender; //取得觸發事件的物件

            if (mnu.Equals(cmnuPC))                            //若是cmnuPC
            {
                price1 = 20000;
            }
            else if (mnu.Equals(cmnuNB))//若是cmnuNB
            {
                price1 = 30000;
            }
            else    //其他即cmnuPAD
            {
                price1 = 25000;
            }
            lblType.Text  = mnu.Text + price1.ToString() + "元"; //顯示電腦價格
            lblTotal.Text = (price1 + price2).ToString() + "元"; //顯示總價
        }
        private void select(ToolStripMenuItem item)
        {
            try
            {
                if (!item.Equals(toolStripMenuItem10))
                {
                    toolStripMenuItem10.Checked = false;
                }

                if (!item.Equals(toolStripMenuItem11))
                {
                    toolStripMenuItem11.Checked = false;
                }

                if (!item.Equals(toolStripMenuItem12))
                {
                    toolStripMenuItem12.Checked = false;
                }

                if (!item.Equals(toolStripMenuItem13))
                {
                    toolStripMenuItem13.Checked = false;
                }

                if (!item.Equals(toolStripMenuItem14))
                {
                    toolStripMenuItem14.Checked = false;
                }

                if (!item.Equals(toolStripMenuItem15))
                {
                    toolStripMenuItem15.Checked = false;
                }

                if (!item.Equals(toolStripMenuItem16))
                {
                    toolStripMenuItem16.Checked = false;
                }

                if (!item.Equals(toolStripMenuItem17))
                {
                    toolStripMenuItem17.Checked = false;
                }

                this.Image = item.Image;

                item.Checked = true;
            }
            catch (Exception err)
            {
            }
        }
Exemple #13
0
        private void toolMenuStretch_Click(object sender, EventArgs e)
        {
            krbTabControl1.HeaderVisibility = !krbTabControl1.HeaderVisibility;
            toolMenuStretch.Text            = String.Format("Stretch To Parent: {0}", krbTabControl1.HeaderVisibility ? "ON" : "OFF");
            toolMenuStretch.Checked         = krbTabControl1.HeaderVisibility ? true : false;
            this.Text = String.Format("Test Client{0}", krbTabControl1.HeaderVisibility ? String.Format(" [{0}]", krbTabControl1.SelectedTab) : null);

            if (krbTabControl1.HeaderVisibility)
            {
                tabPageWindows = new ToolStripMenuItem("Window");
                menuStrip1.Items.Insert(2, tabPageWindows);

                // Add each tabpage window in the collection of the window menu item.
                foreach (KRBTabControl.TabPageEx tabPage in krbTabControl1.TabPages)
                {
                    ToolStripMenuItem item = new ToolStripMenuItem(tabPage.ToString());
                    item.Name = tabPage.Name;
                    if (krbTabControl1.SelectedTab.Equals(tabPage))
                    {
                        item.Checked = true;
                    }

                    item.Click += (thrower, ea) =>
                    {
                        if (krbTabControl1.SelectedTab.Name != item.Name)
                        {
                            krbTabControl1.SelectTab(item.Name);
                            item.Checked = true;
                            this.Text    = String.Format("Test Client [{0}]", item.Text);

                            ToolStripItemCollection collection = tabPageWindows.DropDownItems;
                            foreach (ToolStripMenuItem menuItem in collection)
                            {
                                if (!item.Equals(menuItem))
                                {
                                    menuItem.Checked = false;
                                }
                            }
                        }
                    };

                    tabPageWindows.DropDownItems.Add(item);
                }
            }
            else
            {
                if (tabPageWindows == null)
                {
                    return;
                }

                tabPageWindows.Visible = false;
            }
        }
Exemple #14
0
        private void viewPageMenu_Click(object sender, EventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;

            ToolStripMenuItem selectedMenu = sender as ToolStripMenuItem;

            if (selectedMenu.Equals(viewPreviousPageMenu))
            {
                this.urfDocument.PrevPage();
                selectedMenu.Enabled = this.urfDocument.CurrentPage > 1;
            }
            else if (selectedMenu.Equals(viewNextPageMenu))
            {
                this.urfDocument.NextPage();
                selectedMenu.Enabled = this.urfDocument.CurrentPage < this.urfDocument.PageCount;
            }

            this.imageViewer.Image = urfDocument.CreateBitmap();

            Cursor.Current = Cursors.Default;
        }
Exemple #15
0
        private void tsmiConnect_Click(object sender, EventArgs e)
        {
            ToolStripMenuItem tsmi = sender as ToolStripMenuItem;

            if (tsmi != null)
            {
                if (tsmi.Equals(this.tsmiConnect))
                {
                    this.ShowLoginForm();
                }
                else if (tsmi.Equals(this.tsmiDisconnect))
                {
                    Common.Comm.DBWorker.Close();
                    this.CloseAllMdiForm();
                }
                else if (tsmi.Equals(this.tsmiExit))
                {
                    this.Close();
                }
            }
        }
Exemple #16
0
        private void CntMenuAngle_Click(object sender, EventArgs e)
        {
            ToolStripMenuItem item = (ToolStripMenuItem)sender;

            if (item.Equals(CntMenuAngle0d))
            {
                _angle = 0.0;
            }
            if (item.Equals(CntMenuAngle90d))
            {
                _angle = 90.0;
            }
            if (item.Equals(CntMenuAngle180d))
            {
                _angle = 180.0;
            }
            if (item.Equals(CntMenuAngle270d))
            {
                _angle = 270.0;
            }
            Refresh();
        }
Exemple #17
0
        private void CntMenuZoomPer_Click(object sender, EventArgs e)
        {
            ToolStripMenuItem item = (ToolStripMenuItem)sender;

            if (item.Equals(CntMenuZoom025p))
            {
                _zoom = 0.25;
            }
            if (item.Equals(CntMenuZoom050p))
            {
                _zoom = 0.5;
            }
            if (item.Equals(CntMenuZoom075p))
            {
                _zoom = 0.75;
            }
            if (item.Equals(CntMenuZoom100p))
            {
                _zoom = 1.0;
            }
            if (item.Equals(CntMenuZoom150p))
            {
                _zoom = 1.5;
            }
            if (item.Equals(CntMenuZoom200p))
            {
                _zoom = 2.0;
            }
            if (item.Equals(CntMenuZoom400p))
            {
                _zoom = 4.0;
            }
            if (item.Equals(CntMenuZoom600p))
            {
                _zoom = 6.0;
            }
            if (item.Equals(CntMenuZoom800p))
            {
                _zoom = 8.0;
            }
            Refresh();
        }
        private void toolStripDropDownButtonAlignToStrength_MenuItem_Click(object sender, EventArgs e)
        {
            ToolStripMenuItem item = sender as ToolStripMenuItem;

            if (item != null && !item.Checked)
            {
                foreach (ToolStripMenuItem subItem in item.Owner.Items)
                {
                    if (!item.Equals(subItem) && subItem != null)
                    {
                        subItem.Checked = false;
                    }
                }
                item.Checked      = true;
                AlignTo_Threshold = item.ToString();
            }
        }
        private void toolStripButtonCloseGapStrength_MenuItem_Click(object sender, EventArgs e)
        {
            ToolStripMenuItem item = sender as ToolStripMenuItem;

            if (item != null && !item.Checked)
            {
                foreach (ToolStripMenuItem subItem in item.Owner.Items)
                {
                    if (!item.Equals(subItem) && subItem != null)
                    {
                        subItem.Checked = false;
                    }
                }
                item.Checked = true;
                TimelineControl.grid.CloseGap_Threshold = item.Tag.ToString();
            }
        }
Exemple #20
0
 /// <summary>
 /// Cambia el color de acuerdo al definido previamente
 /// </summary>
 /// <param name="tool">Control tipo ToolStripMenu a modificar</param>
 void toolChange(ToolStripMenuItem tool)
 {
     if (tool.ForeColor == Color.Black)
     {
         if (tool.Equals(tms_user))
         {
             tool.ForeColor = Color.FromArgb(254, 222, 126);
         }
         else
         {
             tool.ForeColor = Color.White;
         }
     }
     else
     {
         tool.ForeColor = Color.Black;
     }
 }
        private void toolStripButtonSnapToStrength_MenuItem_Click(object sender, EventArgs e)
        {
            ToolStripMenuItem item = sender as ToolStripMenuItem;

            if (item != null && !item.Checked)
            {
                foreach (ToolStripMenuItem subItem in item.Owner.Items)
                {
                    if (!item.Equals(subItem) && subItem != null)
                    {
                        subItem.Checked = false;
                    }
                }
                item.Checked = true;
                PopulateSnapStrength(Convert.ToInt32(item.Tag));
            }
            // clicking the currently checked one--do not uncheck it
        }
        private void ChangeUpdateRate(object myObject, EventArgs myEventArgs)
        {
            ToolStripMenuItem dropDown = (ToolStripMenuItem)UpdateCMS.Items[0];

            for (int i = 0; i < dropDown.DropDownItems.Count; i++)
            {
                ToolStripMenuItem item = (ToolStripMenuItem)dropDown.DropDownItems[i];
                if (item.Equals(myObject))
                {
                    UPDATE_MS = UPDATE_OPTIONS[i];
                }
                else
                {
                    item.Checked = false;
                }
            }
            UpdateTimer.Stop();
            UpdateTimer.Interval = UPDATE_MS;
            UpdateTimer.Start();
        }
Exemple #23
0
        private void menuActionSelected(object sender, EventArgs e)
        {
            UserControl usrctl = null;

            pnlMain.Controls.Clear();
            menuInitial.Checked          = false;
            menuTRSReader.Checked        = false;
            menuTestResult.Checked       = false;
            menuDataMaintainance.Checked = false;
            ToolStripMenuItem mi = sender as ToolStripMenuItem;

            if (mi.Equals(menuTRSReader))
            {
                if (frmInstall == null)
                {
                    frmInstall = new FormInstall(this);
                }
                usrctl = frmInstall;
                menuTRSReader.Checked = true;
            }
            else if (mi.Equals(menuInitial))
            {
                if (platform.ToLower().Equals("android"))
                {
                    if (frmInitial == null)
                    {
                        frmInitial = new FormInitial(this);
                    }
                    usrctl = frmInitial;
                }
                else
                {
                    MessageBox.Show("Only Android devices are supported now.");
                }
                menuInitial.Checked = true;
            }
            else if (mi.Equals(menuTestResult))
            {
                if (frmTestResult == null)
                {
                    frmTestResult = new FormTestResult(this);
                }
                usrctl = frmTestResult;
                menuTestResult.Checked = true;
            }
            else if (mi.Equals(menuDataMaintainance))
            {
                if (frmDataMaintainance == null)
                {
                    frmDataMaintainance = new FormDataMaintaince(this);
                }
                usrctl = frmDataMaintainance;
                menuDataMaintainance.Checked = true;
            }
            if (usrctl != null)
            {
                pnlMain.Controls.Add(usrctl);
                usrctl.Dock = DockStyle.Fill;
                usrctl.Show();
            }
        }
Exemple #24
0
        private void ToolStripMenuItem_Status_Click(object sender, EventArgs e)
        {
            cRoadSideObject RoadSideObject = null;

            bool bAlwaysUpdateOnChange = false;

            cJSon.StatusMsgType statusMsgType;

            ToolStripMenuItem menuitem = (ToolStripMenuItem)sender;

            string sUpdateRate = "";

            if (menuitem.Equals(ToolStripMenuItem_StatusRequest))
            {
                statusMsgType = cJSon.StatusMsgType.Request;
            }
            else if (menuitem.Equals(ToolStripMenuItem_StatusUnsubscribe))
            {
                statusMsgType = cJSon.StatusMsgType.UnSubscribe;
            }
            else if (menuitem.Equals(ToolStripMenuItem_StatusSubscribe_UpdateOnChangeOnly))
            {
                bAlwaysUpdateOnChange = true;
                sUpdateRate           = "0";
                statusMsgType         = cJSon.StatusMsgType.Subscribe;
            }
            else if (menuitem.Equals(ToolStripMenuItem_StatusSubscribe_UpdateOnInterval_Manually) || menuitem.Equals(ToolStripMenuItem_StatusSubscribe_UpdateOnChangeAndInterval_Manually))
            {
                if (cFormsHelper.InputBox("Enter Update Rate (seconds)", "UpdateRate:", ref sUpdateRate, false, true) != DialogResult.OK)
                {
                    return;
                }
                if (sUpdateRate == "")
                {
                    return;
                }
                bAlwaysUpdateOnChange = menuitem.OwnerItem.Equals(ToolStripMenuItem_StatusSubscribe_UpdateOnChangeAndInterval);
                statusMsgType         = cJSon.StatusMsgType.Subscribe;
            }
            else
            {
                sUpdateRate           = menuitem.Tag.ToString();
                bAlwaysUpdateOnChange = menuitem.OwnerItem.Equals(ToolStripMenuItem_StatusSubscribe_UpdateOnChangeAndInterval);
                statusMsgType         = cJSon.StatusMsgType.Subscribe;
            }

            // Each group belongs to a RoadSide object
            foreach (ListViewGroup lvGroup in listView_Status.Groups)
            {
                RoadSideObject = null;

                List <RSMP_Messages.StatusSubscribe_Status_Over_3_1_4> StatusSubscribeValues = new List <RSMP_Messages.StatusSubscribe_Status_Over_3_1_4>();

                foreach (ListViewItem lvItem in lvGroup.Items)
                {
                    if (lvItem.Selected)
                    {
                        cStatusReturnValue StatusReturnValue = (cStatusReturnValue)lvItem.Tag;

                        if (RoadSideObject == null)
                        {
                            RoadSideObject = StatusReturnValue.StatusObject.RoadSideObject;
                        }

                        RSMP_Messages.StatusSubscribe_Status_Over_3_1_4 statusSubscribe_Status = new RSMP_Messages.StatusSubscribe_Status_Over_3_1_4();

                        statusSubscribe_Status.sCI = StatusReturnValue.StatusObject.sStatusCodeId;
                        statusSubscribe_Status.n   = StatusReturnValue.sName;

                        if (statusMsgType == cJSon.StatusMsgType.Subscribe)
                        {
                            statusSubscribe_Status.uRt = sUpdateRate;
                            statusSubscribe_Status.sOc = bAlwaysUpdateOnChange;
                        }
                        else
                        {
                            statusSubscribe_Status.uRt = null;
                            statusSubscribe_Status.sOc = false;
                        }

                        StatusReturnValue.sLastUpdateRate     = statusSubscribe_Status.uRt;
                        StatusReturnValue.bLastUpdateOnChange = statusSubscribe_Status.sOc;

                        StatusSubscribeValues.Add(statusSubscribe_Status);
                    }
                }

                if (StatusSubscribeValues.Count == 0 || RoadSideObject == null)
                {
                    continue;
                }


                switch (statusMsgType)
                {
                case cJSon.StatusMsgType.Subscribe:
                    RSMPGS.JSon.CreateAndSendSubscriptionMessage(RoadSideObject, StatusSubscribeValues);
                    break;

                case cJSon.StatusMsgType.Request:
                    RSMPGS.JSon.CreateAndSendStatusMessage(RoadSideObject, StatusSubscribeValues, "StatusRequest");
                    break;

                case cJSon.StatusMsgType.UnSubscribe:
                    RSMPGS.JSon.CreateAndSendStatusMessage(RoadSideObject, StatusSubscribeValues, "StatusUnsubscribe");
                    break;

                default:
                    return;
                }
            }
        }