Пример #1
0
 public void RenderSession()
 {
     if (fiscal.Ready())
     {
         fiscal.IsSessionOpen();
         if (SessionOpen)
         {
             SessionOpened.Text = "Смена открыта";
             openSessionToolStripMenuItem.Enabled  = false;
             closeSessionToolStripMenuItem.Enabled = true;
         }
         else
         {
             SessionOpened.Text = "Смена не открыта";
             openSessionToolStripMenuItem.Enabled  = true;
             closeSessionToolStripMenuItem.Enabled = false;
         }
     }
     else
     {
         SessionOpened.Text = "Отсутствует драйвер АТОЛ";
         Console.WriteLine("Show form");
         openSessionToolStripMenuItem.Enabled  = false;
         closeSessionToolStripMenuItem.Enabled = false;
         orderButton.Enabled = false;
     }
 }
Пример #2
0
        public void RenderSession()
        {
            SessionOpen = fiscal.IsSessionOpen();

            if (SessionOpen)
            {
                SessionOpened.Text = "Смена открыта";
                openSessionToolStripMenuItem.Enabled  = false;
                closeSessionToolStripMenuItem.Enabled = true;
            }
            else
            {
                SessionOpened.Text = "Смена не открыта";
                openSessionToolStripMenuItem.Enabled  = true;
                closeSessionToolStripMenuItem.Enabled = false;
            }
        }