/// <summary>
 /// Print engine combo box change event handler
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void PrintEngineDD_TextChanged(object sender, EventArgs e)
 {
     // Change print engine to selected
     printer.printEngine = PrintEngines.find(Text);
     // Config save (no one like alerts and message boxes)
     Program.config.save();
 }
Beispiel #2
0
 /// <summary>
 /// Convert string print engine name to engine instance
 /// </summary>
 /// <param name="reader"></param>
 /// <param name="objectType"></param>
 /// <param name="existingValue"></param>
 /// <param name="serializer"></param>
 /// <returns></returns>
 public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
 {
     // Getting engine name string and searching
     return(PrintEngines.find((string)JToken.Load(reader)));
 }