コード例 #1
0
        private void btn_New_Click(object sender, RoutedEventArgs e)
        {
            W_PromotionEdit promotionAdvert = new W_PromotionEdit();

            promotionAdvert.ShowDialog();
            GetData();
        }
コード例 #2
0
        private void Btn_edit_Click(object sender, RoutedEventArgs e)
        {
            W_PromotionEdit promotionAdvert = new W_PromotionEdit();

            promotionAdvert.viewModel.PromotionModel = LB_Promotion.SelectedItem as AMS.Model.PromotionAdvertInfo;
            promotionAdvert.viewModel.IsEdit         = true;
            promotionAdvert.ShowDialog();
            GetData();
        }