public class InputToolsClass
{
public InputToolsClass()
{
}
public InputToolsClass(string companytitle, string phonenumber, string site, string printer1, string Printer2 )
{
this.Title = title;
this.PhoneNumber = phonenumber;
this.Site = site;
this.Printer1 = printer1;
this.Printer2 = Printer2 ;
}
public string Title { get; set; }
public string PhoneNumber { get; set; }
public string Site { get; set; }
public string Printer1 { get; set; }
public string Printer2 { get; set; }
}
public void SetAllProperties()
{
XmlSerializer ser = new XmlSerializer(typeof(InputToolsClass));
InputToolsClass inputs;
using (StreamReader reader = new StreamReader(@"C:\Desktop\Inputs.xml"))
{
inputs = (InputToolsClass)ser.Deserialize(reader);
}
}