You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.3 KiB
51 lines
1.3 KiB
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<String> languageList = new List<String>
|
|
{
|
|
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;
|
|
}
|
|
} |