Beispiel #1
0
 private void btnRead_Click(object sender, EventArgs e)
 {
     foreach (String element in queuesData)
     {
         TxtDeque.AppendText(element + " ");
     }
     TxtDeque.Text = string.Join(" ", TxtDeque.Text.Split(' ').Reverse());
 }
Beispiel #2
0
        private void btnEnque_Click(object sender, EventArgs e)
        {
            string enqu = txtWrite.Text;

            queuesData.Enqueue(txtWrite.Text);

            txtWrite.Text = "";
            TxtDeque.Text = " ";

            foreach (String element in queuesData)
            {
                TxtDeque.AppendText(element + " ");
            }
            TxtDeque.Text = string.Join(" ", TxtDeque.Text.Split(' ').Reverse());
        }