コード例 #1
0
ファイル: Sweeper_Form.cs プロジェクト: malebra/FireXer
        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();
            };
        }
コード例 #2
0
ファイル: QuickSweeper.cs プロジェクト: malebra/FireXer
 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();
     }
 }