コード例 #1
0
 public static void NextEpisode(Main main, ComboBox epsList)
 {
     TrayRefresh.RefreshTrayArea();
     if (epsList.Items.Count >= 1)
     {
         if (epsList.SelectedIndex < (epsList.Items.Count - 1))
         {
             epsList.SelectedIndex += 1;
         }
         else
         {
             epsList.SelectedIndex = 0;
         }
         main.StartWatch();
     }
 }
コード例 #2
0
 public static void PrevEpisode(Main main, ComboBox epsList)
 {
     TrayRefresh.RefreshTrayArea();
     if (epsList.Items.Count >= 1)
     {
         if (epsList.SelectedIndex != 0)
         {
             epsList.SelectedIndex -= 1;
         }
         else
         {
             epsList.SelectedIndex = epsList.Items.Count - 1;
         }
         main.StartWatch();
     }
 }
コード例 #3
0
        private void Form1_Load(object sender, EventArgs e)
        {
            TrayRefresh.RefreshTrayArea();
            GlobalHotkey.Subscribe();
            SetButtons();
            AnimeLoader.Loadlist();
            icon = new NotifyIcon
            {
                Icon    = Icon,
                Visible = false,
                Text    = "Easy RP Helper"
            };

            icon.MouseClick += Icon_MouseClick;
            icon.Text        = "AnimePlayer with Discord Presence";

            foreach (var item in AnimeLoader.Animes)
            {
                if (item.Value.Name != "Name")
                {
                    animeList.Items.Add(item.Value.Name);
                }
            }
        }