using System; using System.Collections.Generic; using Atomic.Language; using AtomicLib; using Eto.Drawing; using Eto.Forms; namespace Atomic; public class SettingsForm : Dialog { public SettingsForm() { Title = Text.SettingsTitle; Icon = new Icon(1f, new Bitmap(Resources.icon64)); Resizable = true; var layout = new DynamicLayout() { Padding = 10, Spacing = new Size(20, 20) }; List languageList = new List { Text.SystemLanguage, "Deutsch", "English", "Español", "Français", "Italiano", "Português", "Русский", "日本語", "中文(简体)" }; var langdropDown = new DropDown() { DataStore = languageList }; langdropDown.SelectedIndexChanged += (sender, args) => { // TODO: save new setting }; var fillInContents = new CheckBox() { Text = Text.RememberFields }; fillInContents.CheckedChanged += (sender, args) => { // TODO: save new setting }; layout.AddRange(Text.LanguageNotice, langdropDown, fillInContents); //layout.AddSpace(); Content = layout; } }