Курсовая работа: Програма обробки зображень
using System.Windows.Forms;
namespace Kursach
{
public partial class WaitForm : Form
{
BackgroundWorker bw;
public WaitForm(BackgroundWorker bw)
{
InitializeComponent();
this.bw = bw;
}
private void button1_Click(object sender, EventArgs e)
{
this.Close();
}
private void WaitForm_FormClosing(object sender, FormClosingEventArgs e)
{
if (bw.IsBusy)
bw.CancelAsync();
}
}
}
KernelForm.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;