Exemplo n.º 1
0
        public Main()
        {
            InitializeComponent();

            FileVersion.Text = "Version:" + FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location).FileVersion.ToString();

            //load configuration
            conf = new Config();

            state         = States.SSIdle;
            myTimer.Tick += new EventHandler(TimerEventProcessor);
            // Sets the timer interval to 3 seconds.
            myTimer.Interval = 2000;

            pumpTimer.Tick += new EventHandler(PumpTimerEventProcessor);
            // Sets the timer interval to 0.5 seconds.
            pumpTimer.Interval = 500;
            pumpTimer.Start(); //run allways

            CardType.SelectedIndex = 0;

            /*add some items
             * Items item = new Items();
             * item.Code = 1;
             * item.Name = "מים";
             * item.price = 12.00;
             * items.Add(item);
             * item = new Items();
             * item.Code = 2;
             * item.Name ="שמן";
             * item.price = 23.50;
             * items.Add(item);
             *
             * //add some itemscat
             * ItemsCat itemcat = new ItemsCat();
             * itemcat.Name = "שמנים";
             * //build items list
             * item = new Items();
             * item.Code = 1;
             * item.Name = "מים";
             * item.price = 12.00;
             * items.Add(item);
             */


            //open the OPT screen

            invenco = new Invenco(this);

            SetMultiPump(PumpUsed);

            invenco.Show();



            //do not show ORPT
            orpt = new OrPT(this);
            //orpt.Show();
        }
Exemplo n.º 2
0
 // Constructor.
 public MyScriptManager(Invenco form)
 {
     // Save the form so it can be referenced later.
     mForm = form;
 }