Exemplo n.º 1
0
 private void AddDriver_Click(object sender, RoutedEventArgs e)
 {
     XMLWorker.AddXMLElement("drivers", DriverModel.Text, DriverName.Text, DriverPath.Text, DriverParametrs.Text);
     DriverName.Text      = "";
     DriverPath.Text      = "";
     DriverParametrs.Text = "";
     DriversGrid.Items.Clear();
     foreach (Driver driver in XMLWorker.GetDrivers(DriverModel.Text))
     {
         DriversGrid.Items.Add(driver);
     }
 }
Exemplo n.º 2
0
        private void AddSoft_Click(object sender, RoutedEventArgs e)
        {
            XMLWorker.AddXMLElement("programs", SoftType.Text, SoftName.Text, SoftPath.Text, SoftParametrs.Text);
            SoftName.Text      = "";
            SoftPath.Text      = "";
            SoftParametrs.Text = "";
            SoftGrid.Items.Clear();

            foreach (Soft soft in XMLWorker.GetPrograms(SoftType.SelectedItem.ToString()))
            {
                SoftGrid.Items.Add(soft);
            }
        }