private void createQRButton_Click(object sender, EventArgs e) { if (currentPattern == null) { MessageBox.Show("There is no pattern currently active.", Text); return; } SavePattern(); QRDialog qrDialog = new QRDialog(currentPattern); qrDialog.ShowDialog(); }
private void createQRButton_Click(object sender, EventArgs e) { using (QRDialog qrDialog = new QRDialog(GetPattern())) qrDialog.ShowDialog(); }