Esempio n. 1
0
        private int GetDataAreaIndex()
        {
            if (cbDataArea.SelectedItem == null)
            {
                return(-1);
            }
            int           idx = 0;
            ComboBindData obj = (ComboBindData)cbDataArea.SelectedItem;

            idx = Convert.ToInt32(obj.ValueMember);
            return(idx);
        }
Esempio n. 2
0
        protected int GetTargetSeelectedIndex()
        {
            if (cbDataArea.SelectedItem == null)
            {
                return(-1);
            }
            int           idx = 0;
            ComboBindData obj = (ComboBindData)cbDataArea.SelectedItem;

            idx = Convert.ToInt32(obj.ValueMember);
            //MessageBox.Show("idx: " + idx);
            return(1);
        }