Exemple #1
0
        public static void Main()
        {
            if (Environment.OSVersion.Version.Major >= 6)
            {
                SetProcessDPIAware();
            }
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            directDeviceInitialized = false;

            mainWindow = new MainWindow();

            directDevice = new BaseNode();
            radioDevices = new List <RadioNode>();
            radioDevices.Add(new RadioNode(1));

            SettingHandler.Load();

            logger = new Logger("log_", "txt");

            connectionDialog = new ConnectionDialog();
            mainWindow.FlowLayout.Controls.Add(directDevice.GroupBox);
            mainWindow.FlowLayout.Controls.Add(radioDevices[0].GroupBox);
            directDevice.GroupBox.Enabled = false;
            mainWindow.AddControl(logger.Interface);
            SetBigChartData(radioDevices[0].GroupBox.PowerChart);

            connectionDialog.Show();
            Application.Run(mainWindow);
        }
Exemple #2
0
        private void ConfigureButton_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            ConnectionDialog connDialog = new ConnectionDialog(ModelItem);

            connDialog.Show();
        }