public DisplayQuote(DeskQuote quote)
 {
     InitializeComponent();
     this.quote = quote;
 }
Example #2
0
 public void Add(DeskQuote quote)
 {
     quotes.Add(quote);
     string[] lines = quotes.ConvertAll(x => x.MakeFileRecord()).ToArray();
     File.WriteAllLines("quotes.txt", lines);
 }