SIOControls.cs 1.2 KB
using DeviceLibrary;
using OnlineStore;
using OnlineStore.Common;
using OnlineStore.LoadCSVLibrary;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace TheMachine
{
    public partial class SIOControls : UserControl
    {
        Store_ConfigBase _Config;
        public Store_ConfigBase Config
        {
            get { return _Config; }
            set
            {
                _Config = value;
                ioControl1.Config = value;
            }
        }
        public StoreMachine Machine;
        public SIOControls(StoreMachine machine)
        {
            Machine = machine;
            InitializeComponent();
            ioControl1.Machine = Machine;
        }


        private void ioControl1_Load(object sender, EventArgs e)
        {
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Machine.door.LiftUp(null); 
        }

        private void button2_Click(object sender, EventArgs e)
        {
            Machine.door.LiftDown(null);
        }
    }
}