private void btnClick_Start(object sender, EventArgs e) { var sqlBackupCreator = new SqlBackupCreator(); var conStr = tbConStr.Text; sqlBackupCreator.DoBackup(conStr); }
private void StartButton_Click(object sender, EventArgs e) { var sqlBackupCreator = new SqlBackupCreator(); var conStr = tbConStr.Text; if (conStr == null) { return; } sqlBackupCreator.DoBackup(conStr); }