コード例 #1
0
ファイル: WorldSearchForm.cs プロジェクト: dexyfex/CodeWalker
        private void EntitySearchSetMarkersButton_Click(object sender, EventArgs e)
        {
            var usetextbox = EntityResults.Count < 250;

            if (!usetextbox)
            {
                MessageBox.Show("Markers will not be placed into the markers textbox\nbecause there are too many.", "Too many markers", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
            Task.Run(() =>
            {
                foreach (var ent in EntityResults)
                {
                    WorldForm.AddMarker(ent.Position, ent.Name, usetextbox);
                }
            });
        }