private void startAdvancedView()
        {
            lmiAdvancedView1 = new LMIAdvancedView();
            var actorSystemRef = ActorSystem.Create("MySystem");

            LMIAdvancedViewModel = lmiAdvancedView1.GetViewModel(actorSystemRef);
            lmiAdvancedView1.Show();
            btn_AdvViso.Enabled = false;
        }
        public void UpdateContentFromViewModel()
        {
            try
            {
                ReceiveLMI1Actor.LMIData lmiData = new ReceiveLMI1Actor.LMIData();

                // Auto Mode
                if (cB_saveData.Checked == true)
                {
                    while (dataBuffer.Count != 0)
                    {
                        dataBuffer.TryDequeue(out lmiData);
                        savedDataBuffer.Enqueue(lmiData);
                    }
                    countCurrent = 0;
                    if (dgv_current.Rows.Count > 1)
                    {
                        dgv_current.Rows.Clear();
                    }
                }

                // Add Current Grid View
                if (dataBuffer.TryPeek(out lmiData))
                {
                    if (countCurrent < dataBuffer.Count && cB_saveData.Checked == false)
                    {
                        addCurrentGridView(dataBuffer.Last());
                        countCurrent++;
                    }
                }

                // Add Saved Grid View
                if (savedDataBuffer.TryPeek(out lmiData))
                {
                    if (countSaved < savedDataBuffer.Count)
                    {
                        addSavedGridView(savedDataBuffer.ElementAt(countSaved));
                        countSaved++;
                    }
                }

                //Send to Advanced

                if (lmiAdvancedView1 != null)
                {
                    int toSend = 0;
                    while (countAdvanced + toSend < savedDataBuffer.Count)
                    {
                        LMIAdvancedViewModel.Tell(savedDataBuffer.ElementAt(toSend + countAdvanced));
                        toSend++;
                    }
                    countAdvanced += toSend;
                }

                if (cB_saveData.Checked == true)
                {
                    btn_saveData.Enabled = false;
                }
                else
                {
                    btn_saveData.Enabled = true;
                }

                if (lmiAdvancedView1 != null)
                {
                    lmiAdvancedView1.UpdateContentFromViewModel();
                }

                if (lmiAdvancedView1 != null)
                {
                    if (lmiAdvancedView1.IsDisposed == true)
                    {
                        lmiAdvancedView1    = null;
                        countAdvanced       = 0;
                        btn_AdvViso.Enabled = true;
                    }
                }
            }
            catch (Exception ex)
            {
                System.Diagnostics.Debug.WriteLine(this.ToString() + '\n' + ex.Message);
            }
        }