void btnClose_Click(object sender, EventArgs e)
{
if( _isRunning )
{
DialogResult result = MessageBox.Show("Are you sure you want to cancel data generation?", "SharePoint Data Generation", MessageBoxButtons.YesNo);
if (result == System.Windows.Forms.DialogResult.Yes)
{
RootForm.MoveAt(12, this);
this.Hide();
}
}
else
{
RootForm.MoveAt(12, this);
this.Hide();
}
}