public FormInformRegister() { InitializeComponent(); FormClosed += (obj, e) => { if (e.CloseReason == CloseReason.UserClosing) { FunctionWindow f = Program.FunctionWindow; f.Show(); } }; }
static void Main() { Init(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); FunctionWindow = new FunctionWindow(); Application.Run(FunctionWindow); /*Backgroud.GetNetString += str => { * Util.AppendFile(INFO_FILE, str); * };*/ }
public FormInformRegister(EventArgs e) { var eventArgs = e as IEnumerableEventArgs <string>; pictureList = eventArgs.List; InitializeComponent(); FormClosed += (obj, e) => { if (e.CloseReason == CloseReason.UserClosing) { FunctionWindow f = Program.FunctionWindow; f.Show(); } }; }