public void serialize() { Console.WriteLine("Podaj sciezke"); string path = Console.ReadLine(); try { srv.Serialize(assemblyMetadata, path); Console.WriteLine("serialize succeed"); } catch (Exception e) { Console.WriteLine(e.StackTrace); } }
private void Jsonserialize() { string UserAnswer = Microsoft.VisualBasic.Interaction.InputBox("Wprowadz sciezke ", "Serialization", ""); if (UserAnswer == "") { MessageBox.Show("nic nie wprowadziles"); } else { if (assemblyMetadata == null) { MessageBox.Show("NAJPIERW COS WYBIERZ"); } else { srv.Serialize(assemblyMetadata, UserAnswer); } } }