示例#1
0
        public void loadCriticalStocks()
        {
            try
            {
                String critcalVal = "";
                String count      = pos.countCritical();
                int    i          = 0;


                using (reader = pos.loadCriticalStocks())
                {
                    while (reader.Read())
                    {
                        i++;
                        critcalVal += i + "." + reader["description"].ToString() + Environment.NewLine;
                    }
                }

                PopupNotifier pop = new PopupNotifier();
                pop.Image       = Properties.Resources.ekis;
                pop.TitleText   = count + " CRITACAL ITEM(S)";
                pop.ContentText = critcalVal;
                pop.Popup();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }