private void button3_Click(object sender, EventArgs e) { danet dant = new danet(); dant.Owner = this; dant.ShowDialog(); if (DialogResult.Yes == dant.DialogResult) { this.Close(); } }
private void button1_Click(object sender, EventArgs e) { danet dant = new danet(); dant.Owner = this; dant.ShowDialog(); if (DialogResult.Yes == dant.DialogResult) { this.ExtractWorker.CancelAsync(); this.Close(); } }