private void DeleteByName_button_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(AppName_TextBox.Text)) { DeleteAppManager deleteAppManager = new DeleteAppManager(); logMessages.Text = deleteAppManager.DeleteApp(null, AppName_TextBox.Text); } else { logMessages.Text = "App name empty"; } }
private void DeleteById_button_Click(object sender, EventArgs e) { int appId; if (int.TryParse(AppID_TextBox.Text, out appId)) { DeleteAppManager deleteAppManager = new DeleteAppManager(); logMessages.Text = deleteAppManager.DeleteApp(appId.ToString(), null); } else { logMessages.Text = "App Id Not numeric"; } }