コード例 #1
0
    private void btnClick_Start(object sender, EventArgs e)
    {
        var sqlBackupCreator = new SqlBackupCreator();
        var conStr           = tbConStr.Text;

        sqlBackupCreator.DoBackup(conStr);
    }
コード例 #2
0
        private void StartButton_Click(object sender, EventArgs e)
        {
            var sqlBackupCreator = new SqlBackupCreator();
            var conStr           = tbConStr.Text;

            if (conStr == null)
            {
                return;
            }
            sqlBackupCreator.DoBackup(conStr);
        }