Пример #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);
            });
        }
Пример #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);
        }