/// <summary>Handles the Click event of the btnOk control.</summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void btnOk_Click(object sender, EventArgs e) { BotRecord = new PandoraBotRecord(txtBotName.Text, txtBotId.Text); }
/// <summary>Adds a bot.</summary> /// <param name="groupKey">The group key.</param> /// <param name="botRecord">The bot record.</param> private void AddBot(string groupKey, PandoraBotRecord botRecord) { AddBot(groupKey, botRecord.Name, botRecord.Id, botRecord.Interactions); }
/// <summary>Handles the Click event of the btnCancel control.</summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void btnCancel_Click(object sender, EventArgs e) { BotRecord = null; }