Example #1
0
        private void DataGrid_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            if (e.ClickCount == 2)
            {
                DataGrid        datagrid  = sender as DataGrid;
                InterfereObject interfobj = datagrid.SelectedItem as InterfereObject;

                if (interfobj.Type == InterfereObjectEnum.设备)
                {
                    ActivityEquipmentInfo equ = new ActivityEquipmentInfo();
                    equ.GUID = interfobj.Guid;
                    PT_BS_Service.Client.Framework.BeOperationInvoker.Invoke <I_CO_IA.FreqPlan.I_CO_IA_FreqPlan>(channel =>
                    {
                        equ = channel.GetEquipmentInfo(equ);
                        if (equ != null)
                        {
                            EquipmentDetailDialog dialog = new EquipmentDetailDialog(equ);
                            dialog.IsEnabled             = false;
                            dialog.WindowTitle           = "设备-详细信息";
                            dialog.ShowDialog(this);
                        }
                    });
                }
                else if (interfobj.Type == InterfereObjectEnum.周围台站)
                {
                    StationDetailDialog dialog = new StationDetailDialog(interfobj.Guid);
                    dialog.ShowDialog(this);
                }
            }
        }
Example #2
0
        private void xFreqAssignGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            EquipmentDetailDialog dialog = new EquipmentDetailDialog(SelectedEquipment);

            dialog.IsEnabled   = false;
            dialog.WindowTitle = "设备-详细信息";
            dialog.ShowDialog(this);
        }
        /// <summary>
        /// 手工录入
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ManualRegister_Click(object sender, RoutedEventArgs e)
        {
            ActivityEquipmentInfo equapply = new ActivityEquipmentInfo();
            EquipmentDetailDialog dialog   = new EquipmentDetailDialog(equapply);

            dialog.WindowTitle = "设备-手工登记";
            dialog.ShowDialog(this);
        }
Example #4
0
 /// <summary>
 /// DataGrid行双击事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void InterferedResult_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (InterfereEquipment != null)
     {
         EquipmentDetailDialog dialog = new EquipmentDetailDialog(InterfereEquipment);
         dialog.IsEnabled   = false;
         dialog.WindowTitle = "设备-详细信息";
         dialog.ShowDialog(this);
     }
 }
 private void equdatagrid_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (dg_equiplist.SelectedItem != null)
     {
         ActivityEquipmentInfo SelectedEquipment = dg_equiplist.SelectedItem as ActivityEquipmentInfo;
         EquipmentDetailDialog dialog            = new EquipmentDetailDialog(SelectedEquipment);
         dialog.IsEnabled   = false;
         dialog.WindowTitle = "设备-详细信息";
         dialog.ShowDialog(this);
     }
 }