コード例 #1
0
        public AppInfo this[int row, int col]
        {
            get { return(SelectedApps[GridSize.Pos(row, col)]); }
            set
            {
                AppInfo info = value;
                if (info == null)
                {
                    info = AppInfo.GetEmptyAppInfo();
                }

                int pos = GridSize.Pos(row, col);
                SelectedApps[pos]     = info;
                SelectedApps[pos].Row = row;
                SelectedApps[pos].Col = col;
            }
        }