Ejemplo n.º 1
0
        private void SweepersSetup()
        {
            QuickSweeper.SWF = this;

            radio_listbox.SelectedIndexChanged += (a, b) =>
            {
                if (radio_listbox.SelectedIndices.Count > 0)
                {
                    string s = radio_listbox.SelectedItem.ToString();
                    sweeper_listbox.Items.Clear();
                    List <RadioSWSettingsFolders> folders = RadioSWSettings.AllRadioSWSettings.Where((y) => y.RadioName == s)?.FirstOrDefault().RadioFolders;

                    folders.ForEach((x) => sweeper_listbox.Items.Add(x.FolderName));
                }
            };

            sweeper_listbox.SelectedIndexChanged += (a, b) =>
            {
                QuickSweeper.Updater();
            };
        }
Ejemplo n.º 2
0
 private static void CallChange()
 {
     if (SweeperModeOn == true)
     {
         try
         {
             //Current.box.Items.AddRange(new string[] {"a,", "b", "c"});
             Current.Show();
             Updater();
         }
         catch (ObjectDisposedException)
         {
             Current = new QuickSweeper();
             Current.Show();
         }
         Current.Location = new System.Drawing.Point(MousePosition.X + 20, MousePosition.Y + 20);
     }
     else
     {
         Current.Hide();
     }
 }