Как сохранить новый интерфейс приложения после закрытия окна приложения
Hi Guys! I'm working a project with window form and C#. My idea for this project is, when the user run app, they can change interface of app, Example: Create new label, change the label location, or change color of button. Therefore I want my apps can save all change interface by user after close app. Below is my code, i just write for it create new label. if can, please share me your code or your project you did it. Thanks!
Что я уже пробовал:
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Data.SqlClient; namespace Form1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } bool selected = false; private void Form1_Load(object sender, EventArgs e) { } int B = 1; public System.Windows.Forms.Label AddNewLabel() { System.Windows.Forms.Label newLabel = new System.Windows.Forms.Label(); this.Controls.Add(newLabel); newLabel.Top = B * 28; newLabel.Left = 50; newLabel.Text = "DOOR EXIT " + this.B.ToString(); B = B + 1; newLabel.BorderStyle = BorderStyle.FixedSingle; newLabel.TextAlign = ContentAlignment.MiddleCenter; return newLabel; } private void btn_Create_Click_1(object sender, EventArgs e) { AddNewLabel(); } } }