コード例 #1
0
        bool IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection)
        {
            bool dataChanged;
            bool handledByAdapter =
                Adapter.LoadPostData(postDataKey,
                                     postCollection,
                                     SelectedIndicesInternal.ToArray(typeof(int)),
                                     out dataChanged);

            if (!handledByAdapter)
            {
                throw new
                      Exception(SR.GetString(SR.SelectionList_AdapterNotHandlingLoadPostData));
            }

            return(dataChanged);
        }
コード例 #2
0
ファイル: Listbox.cs プロジェクト: dox0/DotNet471RS3
 public virtual int[] GetSelectedIndices()
 {
     return((int[])SelectedIndicesInternal.ToArray(typeof(int)));
 }