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); } } }
void dataAanalysis_StationHyperlinkClick(string p_stationGuid) { if (string.IsNullOrEmpty(p_stationGuid)) { return; } if (!SystemLoginService.IsLogin)//脱机 { List <StationEmitInfo> listEmitInfo = SQLiteDataService.QueryEmitInfoByStatID(p_stationGuid); List <ActivitySurroundStation> listStation = SQLiteDataService.QueryStationBaseInfo(p_stationGuid); StationDetailDialog dialog1 = new StationDetailDialog(listStation, listEmitInfo); dialog1.ShowDialog(this); return; } StationDetailDialog dialog = new StationDetailDialog(p_stationGuid); dialog.ShowDialog(this); //List<RoundStationInfo> list = GetRoundStationInfos(p_freqGuid); //if (list.Count > 0) //{ // //AroundStationQueryDialog dialog = new AroundStationQueryDialog(list); // //dialog.ShowDialog(this); //} //else //{ // MessageBox.Show("数据库中没有找到频率ID为'" + p_freqGuid + "'的台站信息"); //} }
private void Stationdatagrid_MouseDoubleClick(object sender, MouseButtonEventArgs e) { StationInfo selectstation = this.stationdatagrid.SelectedItem as StationInfo; StationDetailDialog dialog = new StationDetailDialog(selectstation.STATGUID); dialog.ShowDialog(this); }
private void DataGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (sender != null) { DataGridRow gridrow = sender as DataGridRow; InterfereObject interfobj = gridrow.Item as InterfereObject; if (interfobj != null) { if (interfobj.Type == InterfereObjectEnum.设备) { ActivityEquipment equipment = PT_BS_Service.Client.Framework.BeOperationInvoker.Invoke <I_CO_IA.FreqStation.I_CO_IA_FreqStation, ActivityEquipment>(channel => { return(channel.GetActivityEquipment(interfobj.Guid)); }); EquipmentManageDialog equdialog = new EquipmentManageDialog(); equdialog.DataContext = equipment; equdialog.AllowEdit = false; equdialog.ShowDialog(); } else if (interfobj.Type == InterfereObjectEnum.周围台站) { StationDetailDialog dialog = new StationDetailDialog(interfobj.Guid); dialog.ShowDialog(this); } } } }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void stationdatagrid_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (SelectedActivitySurroundStation != null) { StationDetailDialog dialog = new StationDetailDialog(SelectedActivitySurroundStation.STATGUID); dialog.ShowDialog(this); } }
void item_Click(object sender, RoutedEventArgs e) { MenuItem item = sender as MenuItem; if (item.Tag != null && !String.IsNullOrEmpty(item.Tag.ToString())) { StationDetailDialog dialog = new StationDetailDialog(item.Tag.ToString()); dialog.ShowDialog(Element); } }
/// <summary> /// Modify connection record. /// </summary> /// <param name="id"></param> private void ModifyConnection(int id) { StationDetailDialog dialog = new StationDetailDialog(id); dialog.Text = ParentControlManager.Strings.GetString("edit_station") + " ..."; if (dialog.ShowDialog(this) == DialogResult.OK) { RefreshData(); } }
private void AddConnection() { StationDetailDialog dialog = new StationDetailDialog(); dialog.Text = ParentControlManager.Strings.GetString("add_station") + " ..."; if (dialog.ShowDialog(this) == DialogResult.OK) { RefreshData(); } }
void dataAanalysis_StationHyperlinkClick(string p_stationGuid) { if (string.IsNullOrEmpty(p_stationGuid)) { return; } StationDetailDialog dialog = new StationDetailDialog(p_stationGuid); dialog.ShowDialog(this); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void dataGridSurroundStation_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (e.LeftButton == MouseButtonState.Pressed) { DataGridRow dgr = DataGridRow.GetRowContainingElement(e.OriginalSource as FrameworkElement); if (dgr != null) { ActivitySurroundStation surroundStation = dgr.DataContext as ActivitySurroundStation; if (surroundStation != null) { StationDetailDialog dialog = new StationDetailDialog(surroundStation.STATGUID); dialog.ShowDialog(this); } } } }