Ejemplo n.º 1
0
        public frmVendorCreateOrder(AccessToken acctoken)
        {
            InitializeComponent();
            _myAccessToken = acctoken;
            _vendorList    = _myVendorManager.GetVendors();
            _productList   = _myProductManager.GetProducts();
            var RoleAccess = new RoleAccess(acctoken, this);

            tbOrderDate.Text = DateTime.Now.ToString();
            populateListView();

            for (int i = 0; i <= 100; i++)
            {
                comboQuanity.Items.Add(i);
            }

            for (int i = 0; i <= 10; i++)
            {
                comboShipments.Items.Add(i);
            }

            foreach (var vendor in _vendorList)
            {
                comboVendor.Items.Add(vendor.Id + " " + vendor.Name);
            }

            Instance = this;
        }
Ejemplo n.º 2
0
        public frmVendorCreateOrder(AccessToken acctoken)
        {
            InitializeComponent();
            _myAccessToken = acctoken;
            _vendorList = _myVendorManager.GetVendors();
            _productList = _myProductManager.GetProducts();
            var RoleAccess = new RoleAccess(acctoken, this);

            tbOrderDate.Text = DateTime.Now.ToString();
            populateListView();

            for (int i = 0; i <= 100; i++)
            {
                comboQuanity.Items.Add(i);
            }

            for (int i = 0; i <= 10; i++)
            {
                comboShipments.Items.Add(i);
            }

            foreach (var vendor in _vendorList)
            {
                comboVendor.Items.Add(vendor.Id + " " + vendor.Name);
            }

            Instance = this;
        }
Ejemplo n.º 3
0
        private void newOrderToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmVendorCreateOrder frmVendorCreateOrder;

            if (frmVendorCreateOrder.Instance == null)
            {
                frmVendorCreateOrder               = new frmVendorCreateOrder(_myAccessToken);
                frmVendorCreateOrder.MdiParent     = this;
                frmVendorCreateOrder.StartPosition = FormStartPosition.CenterScreen;
                frmVendorCreateOrder.Show();
            }
            else
            {
                frmVendorCreateOrder.Instance.WindowState = FormWindowState.Normal;
                frmVendorCreateOrder.Instance.Show();
                frmVendorCreateOrder.Instance.BringToFront();
            }
        }
Ejemplo n.º 4
0
 private void newOrderToolStripMenuItem_Click(object sender, EventArgs e)
 {
     frmVendorCreateOrder frmVendorCreateOrder;
     if (frmVendorCreateOrder.Instance == null)
     {
         frmVendorCreateOrder = new frmVendorCreateOrder(_myAccessToken);
         frmVendorCreateOrder.MdiParent = this;
         frmVendorCreateOrder.StartPosition = FormStartPosition.CenterScreen;
         frmVendorCreateOrder.Show();
     }
     else
     {
         frmVendorCreateOrder.Instance.WindowState = FormWindowState.Normal;
         frmVendorCreateOrder.Instance.Show();
         frmVendorCreateOrder.Instance.BringToFront();
     }
 }
Ejemplo n.º 5
0
 private void frmVendorCreateOrder_FormClosed(object sender, FormClosedEventArgs e)
 {
     Instance = null;
 }
Ejemplo n.º 6
0
 private void frmVendorCreateOrder_FormClosed(object sender, FormClosedEventArgs e)
 {
     Instance = null;
 }