pallavi more

pallavi more

  • 1.6k
  • 167
  • 4.9k

how to get canvas place object in txt file without using ser

Aug 3 2018 6:55 AM
#region SaveProject Command
private Command _saveProjectCommand;
public Command SaveProjectCommand
{
get { return _saveProjectCommand ?? (_saveProjectCommand = new Command(SaveProject)); }
}
private void SaveProject()
{
SaveFileDialog saveFileDialog1 = new SaveFileDialog();
saveFileDialog1.Filter = "XML File|*.xml";
saveFileDialog1.Title = "Save XML File";
saveFileDialog1.ShowDialog();
if (saveFileDialog1.FileName != "")
{
FileStream fs = (FileStream)saveFileDialog1.OpenFile();
new XmlSerializer(typeof(DiagramData)).Serialize(fs, dd);
fs.Close();
}
}
#endregion
 
 
 
 
m using this code but i want to do same without using serialization..will u please suggest how it is possible