/// <summary> /// 下发 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnRelease_Click(object sender, RoutedEventArgs e) { if (titleAddataGrid.SelectedIndex > -1) { TitleAdViewModel TitleVM = titleAddataGrid.Items[titleAddataGrid.SelectedIndex] as TitleAdViewModel; IssueCommand ic = new IssueCommand(); ic.Command = AdvertManage.Model.Enum.CommandType.TitleAd; ic.CommandId = TitleVM.Id; ic.ShowDialog(); } }
/// <summary> /// 窗体载入 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Window_Loaded(object sender, RoutedEventArgs e) { TitleInfo = new TitleAdViewModel(); }