示例#1
0
 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";
     }
 }
示例#2
0
        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";
            }
        }