Ejemplo n.º 1
0
        private void cboLocation_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (cboLocation.Text == NEWCOMBOENTRY)
            {
                FLoc_AddEdit loc;
                int          tmpID;

                tmpID = ((RSLib.COListItem)cboCustomer.SelectedItem).ID;
                loc   = new FLoc_AddEdit(tmpID);

                cboLocation.SelectedItem = null;
                cboLocation.Text         = "";

                loc.OnChangeLocation += new RSLib.ItemReturnAction(loc_OnChangeLocation);
                loc.ShowDialog();
                loc.OnChangeLocation -= new RSLib.ItemReturnAction(loc_OnChangeLocation);

                loc.Close();
            }
            else
            {
                if (cboLocation.Text.Length > 0)
                {
                    mbItemChanged = true;
                }
            }
        }
Ejemplo n.º 2
0
        private void bttAdd_Click(object sender, EventArgs e)
        {
            FLoc_AddEdit floc;

            floc = new FLoc_AddEdit(0, 0);
            floc.OnChangeLocation += new RSLib.ItemReturnAction(floc_OnAddLocation);
            floc.ShowDialog();
            floc.OnChangeLocation -= new RSLib.ItemReturnAction(floc_OnAddLocation);

            floc.Close();
        }
Ejemplo n.º 3
0
        private void bttEdit_Click(object sender, EventArgs e)
        {
            FLoc_AddEdit floc;
            int          tmpID;

            tmpID = ((RSLib.COListItem)lstLocations.SelectedItem).ID;

            floc = new FLoc_AddEdit(0, tmpID);
            floc.OnChangeLocation += new RSLib.ItemReturnAction(floc_OnChangeLocation);
            floc.ShowDialog();
            floc.OnChangeLocation -= new RSLib.ItemReturnAction(floc_OnChangeLocation);

            floc.Close();
        }