private void StaticEvents_LocateArchorByIp(List <string> ips)
        {
            var win = new AreaCanvasWindow();

            win.LocateByIp(ips);
            win.Show();
        }
Exemple #2
0
        private void MenuLocalArchor_Click(object sender, RoutedEventArgs e)
        {
            var list = new List <int>();

            foreach (var item in DataGridDb.SelectedItems)
            {
                var archor = item as Archor;
                list.Add(archor.Id);
            }
            var win = new AreaCanvasWindow(list.ToArray());

            win.Show();
        }
Exemple #3
0
        public AnchorCheckWindow()
        {
            InitializeComponent();

            DataGrid2 = new UDPArchorListBox();
            DataGrid2.DataGrid.SelectionChanged += DataGrid2_SelectionChanged;
            DataGrid2.DataGridMenu.AddMenu("定位", (obj) =>
            {
                Bll bll  = new Bll();
                var list = new List <int>();
                foreach (var item in DataGrid2.SelectedItems)
                {
                    var archor      = item as UDPArchor;
                    Archor dbArchor = bll.Archors.FindByIp(archor.GetClientIP());
                    if (dbArchor != null)
                    {
                        list.Add(dbArchor.Id);
                    }
                }
                var win = new AreaCanvasWindow(list.ToArray());
                win.Show();
            });
            Group2.Content = DataGrid2;
        }
        private void MenuAreaCanvas_OnClick(object sender, RoutedEventArgs e)
        {
            var win = new AreaCanvasWindow();

            win.Show();
        }