Ejemplo n.º 1
0
        protected void bttnRightAll_Click(object sender, EventArgs e)
        {
            try
            {
                SelectedList.AddRange(UnSelectedList);
                UnSelectedList.Clear();

                bindData();
            }
            catch (Exception ex)
            {
                Messages.ShowError("当前操作出错!<br />详细信息:" + ex.Message);
            }
        }
Ejemplo n.º 2
0
        public IEnumerator SelectAll()
        {
            IEnumerator iterator;

            foreach (var payload in UnSelectedList)
            {
                payload.VisualData.Bound.ClearBounds();

                iterator = SelectedState.Transmit(payload);
                while (iterator.MoveNext())
                {
                    yield return(null);
                }
            }

            SelectedList.AddRange(UnSelectedList);
            UnSelectedList.Clear();

            iterator = TransmitMultiStates();
            while (iterator.MoveNext())
            {
                yield return(null);
            }
        }