title: Bubble Sort C# windows form
body: <p>I am making a bubble sort for class and I am unsure of syntax. I have most of the coding working just missing a random 10-100 number syntax to get to sort and the code to get it to sort can anyone point me in the right direction.</p>
  
  <pre><code>public partial class BubbleSort : Form
  {
      public BubbleSort()
      {
          InitializeComponent();
      }
  
      private void btnAdd_Click(object sender, EventArgs e)
      {
  
          if (txtNumber.Text != "")
          {
              lstSort.Items.Add(txtNumber.Text);
          }
          else
          {
              MessageBox.Show("Please enter a number to add.");
          }
  
          txtNumber.Clear();
  
      }
  
      private void btnExit_Click(object sender, EventArgs e)
      {
          Application.Exit();
      }
  
      private void btnClear_Click(object sender, EventArgs e)
      {
          txtNumber.Clear();
          lstSort.Items.Clear();
      }
  
      private void Sort_Click(object sender, EventArgs e)
      {
  
      }
  
      private void btnView_Click(object sender, EventArgs e)
      {
  
      }
  }
  </code></pre>