private void btnFile_Click(object sender, EventArgs e)
        {
            wh = new WareHouse();
            OpenFileDialog fbd = new OpenFileDialog();

            if (fbd.ShowDialog() == DialogResult.OK)
            {
                fileName = fbd.FileName;
            }
            if (fileName != null)
            {
                wh.inputProcess(wh.inputInfo(fileName));
                draw();
                send();
            }
        }
예제 #2
0
 public FieldForm(ref WareHouse p, int index, WarehouseForm _f1)
 {
     InitializeComponent();
     f1                  = _f1;
     wh_backup           = p;
     _x                  = p.lf[index].x_coord;
     _y                  = p.lf[index].y_coord;
     _rotate             = p.lf[index].rotate;
     p.lf[index].x_coord = 0;
     p.lf[index].y_coord = 0;
     p.lf[index].rotate  = 0;
     _size               = Package.SIZE;
     wh.add(p.lf[index]);
     timer1.Enabled  = true;
     timer1.Interval = 200;
     pn            = new Panel();
     pn.MouseMove += Pn_MouseMove;
     pn.MouseDown += Pn_MouseDown;
     pn.MouseUp   += Pn_MouseUp;
     panel.Controls.Add(pn);
     draw();
 }
예제 #3
0
        private void Button2_Click(object sender, EventArgs e)
        {
            WareHouse newForm = new WareHouse();

            newForm.Show();
        }