Ejemplo n.º 1
0
 private void btnAddress_Click(object sender, EventArgs e)
 {
     entity.CainzFactory _fac = (entity.CainzFactory)CainzFactoryBindingSource.Current;
     if (_fac != null)
     {
         FAddress _faddress = new FAddress(_fac);
         _faddress.StartPosition = FormStartPosition.CenterParent;
         _faddress.ShowDialog();
     }
 }
Ejemplo n.º 2
0
        private void btnChangeAdd_Click(object sender, EventArgs e)
        {
            if (FCainzOrderD.FACTORY != null && FCainzOrderD.FACTORY.FactoryName!=null)
            {
                FAddress _fadd = new FAddress(FCainzOrderD.FACTORY);
                if(_fadd.ShowDialog()== System.Windows.Forms.DialogResult.OK)
                {
                    this.txbAdd.Text = FAddress.add;
                }

            }
            else
            {
                MessageBox.Show("请先选择工厂后,再选择地址");
            }

            //switch (addint)
            //{
            //    case 0:
            //        {
            //            txbAdd.Text = FACTORY.FactoryAddress2;
            //            addint = 1;

            //        } break;
            //    case 1:
            //        {
            //            txbAdd.Text = FACTORY.FactoryAddress;
            //            addint = 2;
            //        } break;
            //    case 2:
            //        {
            //            if (ORDER != null)
            //                txbAdd.Text = ORDER.Address;
            //            addint = 0;
            //        } break;
            //}
        }