示例#1
0
 private void CloseControl()
 {
     if (SelectAllButton.Displayed)
     {
         ControlTab.Click();
     }
 }
示例#2
0
 private void OpenControl()
 {
     if (!SelectAllButton.Displayed)
     {
         ControlTab.Click();
     }
 }
示例#3
0
        public void SelectLicense()
        {
            ControlTab.Click();

            SelectLicenseeCheckbox.Click();

            CloseControl();
        }
示例#4
0
 private void ChangeMode(bool mode)
 {
     if (Controller.mode == true)
     {
         ControlTab.SelectTab(0);
         RefreshHostList(DeviceObserveGrid);
         MIpEndPointlab.Text = Controller.LocalIpEndPoint.ToString();
     }
     else
     {
         ControlTab.SelectTab(1);
         ConnectBtn.Enabled  = true;
         HIpEndPointLab.Text = Controller.LocalIpEndPoint.ToString();
         HMasterLab.Text     = Controller.MasterIpEndPont.ToString();
     }
 }
示例#5
0
        /// <summary>
        /// Verarbeitung
        /// </summary>
        public override void Process()
        {
            base.Process();

            Title = "Überblick";

            var tab = new ControlTab(this)
            {
                Layout = TypesLayoutTab.Pill, HorizontalAlignment = TypesTabHorizontalAlignment.Center
            };

            tab.Items.Add(new ControlLink(this)
            {
                Text = "Zentrale", Url = GetUrl(0), Class = "active", Icon = "fas fa-tachometer-alt"
            });
            tab.Items.Add(new ControlLink(this)
            {
                Text = "MPU 9250", Url = GetUrl(0, "mpu"), Icon = "fas fa-microchip"
            });

            Content.Add(tab);

            Content.Add(new ControlLine(this));
        }
示例#6
0
        /// <summary>
        /// Verarbeitung
        /// </summary>
        public override void Process()
        {
            base.Process();

            var mpu9250 = ViewModel.Instance.Mpu9250Data;

            Title = "MPU 9250";

            var tab = new ControlTab(this)
            {
                Layout = TypesLayoutTab.Pill, HorizontalAlignment = TypesTabHorizontalAlignment.Center
            };

            tab.Items.Add(new ControlLink(this)
            {
                Text = "Zentrale", Url = GetUrl(0), Icon = "fas fa-tachometer-alt"
            });
            tab.Items.Add(new ControlLink(this)
            {
                Text = "MPU 9250", Url = GetUrl(0, "mpu"), Class = "active", Icon = "fas fa-microchip"
            });

            Content.Add(tab);

            Content.Add(new ControlLine(this));

            Content.Add(new ControlText(this)
            {
                Text = "WHO AM I = " + ViewModel.Instance.Mpu9250WhoIAm
            });

            Content.Add(new ControlLine(this));

            Content.Add(new ControlCard
                        (
                            this,
                            new ControlPanel
                            (
                                this,
                                new ControlText(this)
            {
                Text = "X = ", Format = TypesTextFormat.Span
            },
                                new ControlText(this)
            {
                Text = mpu9250.Acceleration_X.ToString("F2"), Format = TypesTextFormat.Span
            },
                                new ControlText(this)
            {
                Text = "g", Format = TypesTextFormat.Span
            }
                            ),
                            new ControlPanel
                            (
                                this,
                                new ControlText(this)
            {
                Text = "Y = ", Format = TypesTextFormat.Span
            },
                                new ControlText(this)
            {
                Text = mpu9250.Acceleration_Y.ToString("F2"), Format = TypesTextFormat.Span
            },
                                new ControlText(this)
            {
                Text = "g", Format = TypesTextFormat.Span
            }
                            ),
                            new ControlPanel
                            (
                                this,
                                new ControlText(this)
            {
                Text = "Z = ", Format = TypesTextFormat.Span
            },
                                new ControlText(this)
            {
                Text = mpu9250.Acceleration_Z.ToString("F2"), Format = TypesTextFormat.Span
            },
                                new ControlText(this)
            {
                Text = "g", Format = TypesTextFormat.Span
            }
                            )
                        )
            {
                Header = "Beschleunigungsmesser"
            });

            Content.Add(new ControlCard
                        (
                            this,
                            new ControlPanel
                            (
                                this,
                                new ControlText(this)
            {
                Text = "X = ", Format = TypesTextFormat.Span
            },
                                new ControlText(this)
            {
                Text = mpu9250.AngularSpeed_X.ToString(), Format = TypesTextFormat.Span
            },
                                new ControlText(this)
            {
                Text = "°/s", Format = TypesTextFormat.Span
            }
                            ),
                            new ControlPanel
                            (
                                this,
                                new ControlText(this)
            {
                Text = "Y = ", Format = TypesTextFormat.Span
            },
                                new ControlText(this)
            {
                Text = mpu9250.AngularSpeed_Y.ToString(), Format = TypesTextFormat.Span
            },
                                new ControlText(this)
            {
                Text = "°/s", Format = TypesTextFormat.Span
            }
                            ),
                            new ControlPanel
                            (
                                this,
                                new ControlText(this)
            {
                Text = "Z = ", Format = TypesTextFormat.Span
            },
                                new ControlText(this)
            {
                Text = mpu9250.AngularSpeed_Z.ToString(), Format = TypesTextFormat.Span
            },
                                new ControlText(this)
            {
                Text = "°/s", Format = TypesTextFormat.Span
            }
                            )
                        )
            {
                Header = "Gyroskop"
            });

            Content.Add(new ControlCard
                        (
                            this,
                            new ControlPanel
                            (
                                this,
                                new ControlText(this)
            {
                Text = "X = ", Format = TypesTextFormat.Span
            },
                                new ControlText(this)
            {
                Text = "Wert", Format = TypesTextFormat.Span
            },
                                new ControlText(this)
            {
                Text = "T", Format = TypesTextFormat.Span
            }
                            ),
                            new ControlPanel
                            (
                                this,
                                new ControlText(this)
            {
                Text = "Y = ", Format = TypesTextFormat.Span
            },
                                new ControlText(this)
            {
                Text = "Wert", Format = TypesTextFormat.Span
            },
                                new ControlText(this)
            {
                Text = "T", Format = TypesTextFormat.Span
            }
                            ),
                            new ControlPanel
                            (
                                this,
                                new ControlText(this)
            {
                Text = "Z = ", Format = TypesTextFormat.Span
            },
                                new ControlText(this)
            {
                Text = "Wert", Format = TypesTextFormat.Span
            },
                                new ControlText(this)
            {
                Text = "T", Format = TypesTextFormat.Span
            }
                            )
                        )
            {
                Header = "Magnetometer"
            });

            Content.Add(new ControlCard
                        (
                            this,
                            new ControlPanel
                            (
                                this,
                                new ControlText(this)
            {
                Text = mpu9250.Temperature.ToString("F2"), Format = TypesTextFormat.Span
            },
                                new ControlText(this)
            {
                Text = "°C", Format = TypesTextFormat.Span
            }
                            )
                        )
            {
                Header = "Temperatur"
            });


            Content.Add(new ControlLine(this));

            foreach (var v in ViewModel.Instance.Mpu9250DataSet)
            {
                Content.Add(new ControlText(this)
                {
                    Text = "WHO AM I = " + ViewModel.Instance.Mpu9250WhoIAm
                });
            }
        }