Esempio n. 1
0
File: MainForm.cs Progetto: akx/ltag
 private void saveSettingsButton_Click(object sender, EventArgs e)
 {
     var iser = new IniSerializer();
     iser.WriteObject("Tracker", _tracker);
     iser.WriteObject("StrokeRecognizer", _strokeRecognizer);
     iser.WriteObject("Drawing", _drawing);
     iser.WriteObject("DrawParams", _drawWindow.DrawParams);
     var path = GetIniPath();
     using (var tw = new StreamWriter(path, false, Encoding.UTF8))
     {
         tw.Write(iser.GetValue());
     }
     SetStatus("Saved to " + path);
 }