private void ConsultOrders_Load(object sender, EventArgs e)
 {
     bd.OrderView(listBox1);
     order = bd.OrderView(sub.IndReturn(listBox1.Items[0].ToString(), "Full"));
     listBox1.SelectedIndex = 0;
     Filded();
 }
示例#2
0
        private void ViewGuest_Load(object sender, EventArgs e)
        {
            bd.ViewAll(listBox1, false);


            listBox1.SelectedIndex = 0;
            string listMsg = listBox1.Text;

            products = bd.WorkWithBD(subString.IndReturn(listMsg, "Title"));
            Filded();
        }
示例#3
0
        public void IndReturn_CorrectStr_GoodID()
        {
            string str      = "Id: 6 Title: RPG";
            string secStr   = "Title";
            int    expected = 6;

            SubString subString = GetSubString();
            int       actual    = subString.IndReturn(str, secStr);

            Assert.AreEqual(expected, actual);
        }