/// <summary> /// 历史订单 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void CommandBinding_Executed_HistoryOrder(object sender, ExecutedRoutedEventArgs e) { FundChangeInformation data = (e.OriginalSource as DataGridRow).DataContext as FundChangeInformation; OrderInfoWindow orderInfo = new OrderInfoWindow(data.Account); orderInfo.DataContext = this.DataContext; orderInfo.ShowDialog(); }
/// <summary> /// 历史订单 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void CommandBinding_Executed_HistoryOrder(object sender, ExecutedRoutedEventArgs e) { MarketHistoryData data = (e.OriginalSource as DataGridRow).DataContext as MarketHistoryData; OrderInfoWindow orderInfo = new OrderInfoWindow(data.TradeAccount); orderInfo.DataContext = this.DataContext; orderInfo.ShowDialog(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.orderInfoWindow = ((Gss.ManagementMenu.AccountManager.Order.OrderInfoWindow)(target)); #line 8 "..\..\..\..\AccountManager\Order\OrderInfoWindow.xaml" this.orderInfoWindow.Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded); #line default #line hidden return; } this._contentLoaded = true; }
/// <summary> /// 历史订单 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void CommandBinding_Executed_HistoryOrder(object sender, ExecutedRoutedEventArgs e) { ClientAccount data = (e.OriginalSource as DataGridRow).DataContext as ClientAccount; OrderInfoWindow orderInfo = new OrderInfoWindow(data.AccInfo.AccountName); orderInfo.DataContext = this.DataContext; orderInfo.ShowDialog(); }
///// <summary> ///// 拒绝 ///// </summary> ///// <param name="sender"></param> ///// <param name="e"></param> //private void CommandBinding_Executed_Refused(object sender, ExecutedRoutedEventArgs e) //{ // vm.RefusedChuJinExecuted(); //} //private void dataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e) //{ // DataGrid dg = sender as DataGrid; // TradeChuJinInformation t = dg.SelectedItem as TradeChuJinInformation; // if (t != null) // { // DataGridRow dr = (DataGridRow)(dg.ItemContainerGenerator.ContainerFromItem(t)); // if (dr == null) // { // return; // } // if (vm.CurChuJin.State == "0") // { // dr.ContextMenu.Visibility = System.Windows.Visibility.Visible; // } // else // { // //dr.ContextMenu.Visibility = System.Windows.Visibility.Hidden; // dr.ContextMenu = null; // } // } //} /// <summary> /// 历史订单 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void CommandBinding_Executed_HistoryOrder(object sender, ExecutedRoutedEventArgs e) { TradeChuJinInformation data = this.dataGrid.SelectedItem as TradeChuJinInformation; OrderInfoWindow orderInfo = new OrderInfoWindow(data.Account); orderInfo.DataContext = this.DataContext; orderInfo.ShowDialog(); }