public DroneConfiguration()
        {
            General = new GeneralSection();
            Control = new ControlSection();
            Network = new NetworkSection();
            Pic     = new PicSection();
            Video   = new VideoSection();
            Leds    = new LedsSection();
            Detect  = new DetectSection();
            Syslog  = new SyslogSection();
            Userbox = new UserboxSection();
            Gps     = new GpsSection();
            Custom  = new CustomSection();

            _items = GetItems(General)
                     .Concat(GetItems(Control))
                     .Concat(GetItems(Network))
                     .Concat(GetItems(Pic))
                     .Concat(GetItems(Video))
                     .Concat(GetItems(Leds))
                     .Concat(GetItems(Detect))
                     .Concat(GetItems(Syslog))
                     .Concat(GetItems(Userbox))
                     .Concat(GetItems(Gps))
                     .Concat(GetItems(Custom))
                     .ToDictionary(x => x.Key);
        }
Esempio n. 2
0
        public DroneConfiguration()
        {
            General = new GeneralSection();
            Control = new ControlSection();
            Network = new NetworkSection();
            Pic = new PicSection();
            Video = new VideoSection();
            Leds = new LedsSection();
            Detect = new DetectSection();
            Syslog = new SyslogSection();
            Userbox = new UserboxSection();
            Gps = new GpsSection();
            Custom = new CustomSection();

            _items = GetItems(General)
                .Concat(GetItems(Control))
                .Concat(GetItems(Network))
                .Concat(GetItems(Pic))
                .Concat(GetItems(Video))
                .Concat(GetItems(Leds))
                .Concat(GetItems(Detect))
                .Concat(GetItems(Syslog))
                .Concat(GetItems(Userbox))
                .Concat(GetItems(Gps))
                .Concat(GetItems(Custom))
                .ToDictionary(x => x.Key);
        }
Esempio n. 3
0
        public void GeneralTapped(object sender, TappedRoutedEventArgs tappedRoutedEventArgs)
        {
            var classRace = GeneralSection.FindName("ClassAndRaceInfo") as FrameworkElement;

            classRace.Visibility = classRace.Visibility == Visibility.Visible ? Visibility.Collapsed : Visibility.Visible;
            (GeneralSection.FindName("GeneralExpandIcon") as TextBlock).Text = classRace.Visibility == Visibility.Visible ? "-" : "+";
        }
Esempio n. 4
0
 public Beatmap()
 {
     GeneralSection    = new GeneralSection();
     EditorSection     = new EditorSection();
     MetadataSection   = new MetadataSection();
     DifficultySection = new DifficultySection();
     EventsSection     = new EventsSection();
 }
Esempio n. 5
0
        /// <summary>
        /// Gets the configuraiton settings from the GUIHost.
        /// </summary>
        public void LoadConfiguration(string configurationSectionName)
        {
            this.pluginConfigurationSectionName = configurationSectionName;
            this.PlayMsgButtons  = new PlayMsgButtonsSection(this);
            this.PlayMsgMessages = new PlayMsgMessagesSection(this, PlayMsgButtons.MessagesList);

            this.General = new GeneralSection(this);
        }
Esempio n. 6
0
 public OsuBeatmap(Qua qua, Arguments args)
 {
     GeneralSection      = new GeneralSection(qua, args);
     EditorSection       = new EditorSection(qua, args);
     MetadataSection     = new MetadataSection(qua, args);
     DifficultySection   = new DifficultySection(qua, args);
     EventsSection       = new EventsSection(qua, args);
     TimingPointsSection = new TimingPointsSection(qua, args);
     HitObjectsSection   = new HitObjectsSection(qua, args);
 }
Esempio n. 7
0
        public override async Task P10_ReadValues()
        {
            await Section.ReadAsync();

            Section.Description.Should().NotBeNull();
            Section.SendReminders.Should().NotBeNull();
            Section.MaxMessageSize.Should().NotBeNull();

            _saved = Section;
        }
        public DroneConfiguration()
        {
            _items   = new Dictionary <string, string>();
            _changes = new Queue <KeyValuePair <string, string> >();

            DroneHostname = "192.168.1.1";

            General = new GeneralSection(this);
            Control = new ControlSection(this);
            Network = new NetworkSection(this);
            Pic     = new PicSection(this);
            Video   = new VideoSection(this);
            Leds    = new LedsSection(this);
            Detect  = new DetectSection(this);
            Syslog  = new SyslogSection(this);
            Userbox = new UserboxSection(this);
            Gps     = new GpsSection(this);
            Custom  = new CustomSection(this);
        }
Esempio n. 9
0
        public static List <string> GeneralSection(GeneralSection section)
        {
            var list = BaseListFormat("General");

            list.AddRange(new List <string>
            {
                "AudioFilename: " + section.AudioFilename,
                "AudioLeadIn: " + section.AudioLeadIn,
                "PreviewTime: " + section.PreviewTime,
                "Countdown: " + section.Countdown.ToInt32(),
                "SampleSet: " + section.SampleSet,
                "StackLeniency: " + section.StackLeniency.Format(),
                "Mode: " + (int)section.Mode,
                "LetterboxInBreaks: " + section.LetterboxInBreaks.ToInt32()
            });

            if (section.StoryFireInFront)
            {
                list.Add("StoryFireInFront: " + section.StoryFireInFront.ToInt32());
            }
            if (section.UseSkinSprites)
            {
                list.Add("UseSkinSprites: " + section.UseSkinSprites.ToInt32());
            }
            if (section.EpilepsyWarning)
            {
                list.Add("EpilepsyWarning: " + section.EpilepsyWarning.ToInt32());
            }
            if (section.Mode == Enums.Ruleset.Mania)
            {
                list.Add("SpecialStyle: " + section.SpecialStyle.ToInt32());
            }

            list.Add("WidescreenStoryboard: " + section.WidescreenStoryboard.ToInt32());

            return(list);
        }
Esempio n. 10
0
 public static void Init()
 {
     Conf = new GeneralSection();
     Config.AddSection("general", Conf);
 }