Example #1
0
        private void nextBtn_Click(object sender, EventArgs e)
        {
            tagIndex++;
            if (tagIndex < 0 || tagIndex == circularLinkedList.str_name.Length - 1)
            {
                tagIndex = 0;
            }
            try
            {
                currentMovie = listView1.Items[tagIndex].Text;
            }
            catch
            {
                tagIndex     = 1;
                currentMovie = listView1.Items[tagIndex].Text;
            }
            while (currentMovie == "" || currentMovie == null)
            {
                currentMovie = listView1.Items[++tagIndex].Text;
            }
            string selected      = circularLinkedList.str_name[tagIndex];
            string fileDirectory = Environment.CurrentDirectory + @"\Data\Profiles\" + accountName + @"\" + userName + @"\Log.txt";

            fileHandling.WriteData(fileDirectory, selected);
            startMovie();
        }
        private void addUserAndPassword()
        {
            FileHandlingUtilites f = new FileHandlingUtilites();
            string fileDirectory   = Environment.CurrentDirectory + @"\Data\Profiles\" + currentAccount + "/";

            f.WriteData((fileDirectory + currentAccount + "Profiles.txt"), inputBox(false));
            f.WriteData((fileDirectory + currentAccount + "Passwords.txt"), inputBox(true));
            storeProfiles();
        }
 private void storeLog()
 {
     for (int i = 0; i < totalOptions; i++)
     {
         if (selectedLabels[i] != "")
         {
             f.WriteData(fileDirectory, selectedLabels[i]);
         }
     }
 }
Example #4
0
        // ? A Utility Function Loads & Runs The Selected Video Title/ThumbNail
        private void listView1_MouseClick(object sender, MouseEventArgs e)
        {
            this.Hide();
            string selected        = listView1.SelectedItems[0].Text;
            string fileDirectory   = Environment.CurrentDirectory + @"\Data\Profiles\" + accountName + @"\" + userName + @"\Log.txt";
            FileHandlingUtilites f = new FileHandlingUtilites();

            f.WriteData(fileDirectory, selected);
            VideoPlayer j = new VideoPlayer(userName, accountName, selected, profileIndex);

            j.Show();
        }
Example #5
0
        private void storeData(string fileDirectory, string content)
        {
            FileHandlingUtilites f = new FileHandlingUtilites();

            f.WriteData(fileDirectory, content);
        }