Ejemplo n.º 1
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            string num = contObj.SelectStocksRunningOut();

            if (num != "0")
            {
                lblWarning.Text    = num;
                lblWarning.Visible = picWarning.Visible = true;
            }
            else
            {
                lblWarning.Visible = picWarning.Visible = false;
            }
        }
Ejemplo n.º 2
0
        private void btnShowCritical_Click(object sender, EventArgs e)
        {
            ContMain contMain = new ContMain();

            contMain.SelectStocksRunningOut();
            btnSClear.PerformClick();
            LoadRunningOutStocks();
        }
        private void btnShowCritical_Click(object sender, EventArgs e)
        {
            if (btnShowAllStocks.ForeColor == Color.MidnightBlue)
            {
                btnShowCritical.ForeColor  = Color.MidnightBlue;
                btnShowAllStocks.ForeColor = Color.White;
            }
            ContMain contMain = new ContMain();

            contMain.SelectStocksRunningOut();
            btnSClear.PerformClick();
            LoadRunningOutStocks();
        }