old_flsystem/应用/FissionSend/Form1.cs

50 lines
1.1 KiB
C#
Raw Normal View History

2022-09-20 03:10:29 +00:00
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);
}
}
}