Esempio n. 1
0
        private void buttonToggle_Click(object sender, EventArgs e)
        {
            SolutionTypeEntry solEntry = listBoxSolutions.SelectedItem as SolutionTypeEntry;
            ProcessEntry      pEntry   = comboBoxProcesses.SelectedItem as ProcessEntry;

            Task.Run(() =>
            {
                launcher.AttachAndLaunch(pEntry, solEntry);
            });
        }
Esempio n. 2
0
        public MainForm()
        {
            InitializeComponent();

            radarFrontBuffer = new Bitmap(radarCanvas.Width, radarCanvas.Width);
            radarBackBuffer  = new Bitmap(radarCanvas.Width, radarCanvas.Width);

            SFConfig config = SFConfig.LoadConfig();

            launcher = new Launcher(this);

            listBoxSolutions.DataSource  = new List <SolutionTypeEntry>(SolutionTypeEntry.GetSolutionTypes());
            comboBoxProcesses.DataSource = new List <ProcessEntry>(ProcessEntry.GetRunningWoWProcessess());
            comboBoxPresets.DataSource   = new List <Preset>(config.Presets);
        }
Esempio n. 3
0
 private void buttonRefresh_Click(object sender, EventArgs e)
 {
     comboBoxProcesses.DataSource = null;
     comboBoxProcesses.DataSource = new List <ProcessEntry>(ProcessEntry.GetRunningWoWProcessess());
 }