private void SaveSettings_Click(object sender, EventArgs e) { var editor = Editor.getInstance(); editor.settingsColor = Color.FromName(Colors.Text); editor.settingsType = (ElementType)Enum.Parse(typeof(ElementType), comboBox1.Text); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(Editor.getInstance()); }