Exemple #1
0
        private void btnAddNewItem_Click(object sender, EventArgs e)
        {
            // Add new item to doc.
            LinqToXmlObjectModel.InsertNewElement(txtMake.Text, txtColor.Text, txtPetName.Text);

            // Display current XML inventory document in TextBox control.
            txtInventory.Text = LinqToXmlObjectModel.GetXmlInventory().ToString();
        }
Exemple #2
0
 private void btnLookUpColors_Click(object sender, EventArgs e)
 {
     LinqToXmlObjectModel.LookUpColorsForMake(txtMakeToLookUp.Text);
 }
Exemple #3
0
 private void MainForm_Load(object sender, EventArgs e)
 {
     // Display current XML inventory document in TextBox control.
     txtInventory.Text = LinqToXmlObjectModel.GetXmlInventory().ToString();
 }