using Api.Framework.Tools; 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; namespace FissionSend { public partial class Form1 : Form { public Form1() { InitializeComponent(); } public void CloseForm() { try { if (!this.IsDisposed) { this.Invoke(new Action(delegate { this.Close(); this.Dispose(); })); } } catch (Exception ex) {} } private void Form1_Load(object sender, EventArgs e) { richTextBox1.Text = Class1.Config.SendGroups; } private void Form1_FormClosing(object sender, FormClosingEventArgs e) { Class1.Config.SendGroups = richTextBox1.Text; Util.Save(Class1.Config); } } }