Пример #1
0
        void btnGoToProduct_Click(object sender, EventArgs e)
        {
            Button         btn  = (Button)sender;
            PriceListModel data = (PriceListModel)(btn.Tag);

            if (data.NameDesc == null)
            {
                string      title       = "Waring.";
                string      description = "Please choose product.";
                frmMessager frmMessager = new frmMessager(title, description);
                frmOpacity.ShowDialog(this, frmMessager);
            }
            else
            {
                frmEditProductPriceList frmEditProductPriceList = new frmEditProductPriceList(data);
                if (frmEditProductPriceList.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    addPriceList(5, this.CurrentPage);
                }
            }
        }
Пример #2
0
 void btnGoToProduct_Click(object sender, EventArgs e)
 {
     Button btn = (Button)sender;
     PriceListModel data = (PriceListModel)(btn.Tag);
     if (data.NameDesc == null)
     {
         string title = "Waring.";
         string description = "Please choose product.";
         frmMessager frmMessager = new frmMessager(title, description);
         frmOpacity.ShowDialog(this, frmMessager);
     }
     else
     {
         frmEditProductPriceList frmEditProductPriceList = new frmEditProductPriceList(data);
         if (frmEditProductPriceList.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             addPriceList(5, this.CurrentPage);
         }
     }
 }