Ejemplo n.º 1
0
        void TestSave()
        {
            PS8 ps8 = new PS8();

            ps8.Speed = 500;
            for (int i = 1; i <= 3; i++)
            {
                ps8.AddPhoto("this is a test" + i, "path" + i);
            }
            PS8Writer.Save(ps8, Application.StartupPath + @"/playlist2.txt");
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Saves the playlist to a File
 /// </summary>
 /// <param name="_playlistName"></param>
 void SavePlaylist(string _playlistName)
 {
     try
     {
         if (this.toolStriptxtSpeed.Text == string.Empty)
         {
             throw new PS8Exception("Save Error: Please specify a time.");
         }
         imageList.Speed = Convert.ToInt32(this.toolStriptxtSpeed.Text);
         PS8Writer.Save(imageList, _playlistName);
     }
     catch (PS8Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
     GC.Collect();
 }