示例#1
0
        private void OpenGeneralConfigDialog()
        {
            if (droneControl.IsConnected)
            {
                return;
            }

            GeneralConfigWindow configGeneral = new GeneralConfigWindow(currentDroneConfig, currentHudConfig);

            configGeneral.ShowDialog();

            if (configGeneral.ConfigChanged)
            {
                SaveDroneAndHudConfigStates(configGeneral.DroneConfig, configGeneral.HudConfig);
                ReinitializeDroneControlAndHud();
            }
        }
        private void OpenGeneralConfigDialog()
        {
            if (droneControl.IsConnected)
                return;

            GeneralConfigWindow configGeneral = new GeneralConfigWindow(currentDroneConfig, currentHudConfig);
            configGeneral.ShowDialog();

            if (configGeneral.ConfigChanged)
            {
                SaveDroneAndHudConfigStates(configGeneral.DroneConfig, configGeneral.HudConfig);
                ReinitializeDroneControlAndHud();
            }
        }