private void dataGrid_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { if ((sender as DataGrid).SelectedItem is WorkShopViewModal) { ShopAlert SA = new ShopAlert(References.GetReferences .GetIdCeh(((sender as DataGrid).SelectedItem as WorkShopViewModal).Nom_ceh)); SA.Show(); } }
public void InitStalker(Dispatcher pdis, ShopAlert pSA) { dis = pdis; SA = pSA; StalkerForShop(); }
static void Main(string[] args) { //try //{ //while (true) //{ ShopAlert act = new ShopAlert(); if (1 == 1) { //店铺等级和过期检查 act.StartDeleteShop(); //更新特殊用户 string sql = "UPDATE TCS_ShopSession SET version = 2 WHERE nick = '玩具第一城'"; utils.ExecuteNonQuery(sql); //更新特殊用户 sql = "UPDATE TCS_ShopSession SET version = 3 WHERE nick = '魔女茶花'"; utils.ExecuteNonQuery(sql); } //if (1 == 1) //{ // //检查有很多未审核评价的卖家并给出提示 // act.StartUnChecked(); //} if (1 == 1) { //检查优惠券过期的卖家并给出提示 act.StartCouponExpired(); } if (1 == 1) { //检查优惠券赠送完毕的卖家并给出提示 act.StartCouponExpiredMax(); } if (1 == 1) { //充值过短信但是现在短信为0的客户清单并给出提示 act.StartMsgZero(); } if (1 == 1) { //给客户发出消息汇总 act.StartShopStatusAlert(); } // Thread.Sleep(86400000); //} //} //catch (Exception ex) //{ // Console.Write(ex.Message); //} //Console.ReadLine(); }