예제 #1
0
        public bool toHTML(TDString str, String urlBase)
        {
            throw new NotImplementedException();

            //Itinerary* it = find_itinerary(_itinerary);
            //string buff;

            //if(!it) {
            //  str.Append(wxPorting.T("<td class=\"empty\">"));
            //  str.Append(_text);
            //  str.Append(wxPorting.T("</td>\n"));
            //  return false;
            //}

            //str.Append(wxPorting.T("<td class=\""));
            //if(it.CanSelect())
            //  str.Append(wxPorting.T("available"));
            //else if(it.IsSelected())
            //  str.Append(wxPorting.T("selected"));
            //else
            //  str.Append(wxPorting.T("locked"));
            //str.Append(wxPorting.T("\"><a href=\""));
            //buff = String.Format(wxPorting.L("%s/%d/%d\">"), urlBase, this._x, this._y);
            //str.Append(buff);
            //str.Append(this._text);
            //str.Append(wxPorting.T("</a></td>\n"));
            //return true;
        }
예제 #2
0
        public bool toHTML(TDString str, String urlBase)
        {
            throw new NotImplementedException();

            //int xMax = 0;
            //int yMax = 0;
            //int x, y;
            //SwitchBoardCell cell;
            //SwitchBoardCell[][] grid = new SwitchBoardCell[Configuration.MAX_SWBD_X];

            //for(int tmpX = 0; tmpX < grid.Length; x++) {
            //  grid[x] = new SwitchBoardCell[Configuration.MAX_SWBD_Y];
            //}

            //memset(grid, 0, sizeof(grid));
            //for(cell = _cells; cell; cell = cell._next) {
            //  if(cell._x < MAX_SWBD_X && cell._y < MAX_SWBD_Y) {
            //    grid[cell._x][cell._y] = cell;
            //    if(cell._x + 1 > xMax)
            //      xMax = cell._x + 1;
            //    if(cell._y + 1 > yMax)
            //      yMax = cell._y + 1;
            //  }
            //}
            //if(!xMax || !yMax)
            //  return false;

            //curSwitchBoard = this;	    // TODO: remove
            //++xMax;
            //++yMax;
            //str.Append(wxPorting.T("<table class=\"switchboard\">\n"));
            //for(y = 0; y < yMax; ++y) {
            //  str.Append(wxPorting.T("<tr>\n"));
            //  for(x = 0; x < xMax; ++x) {
            //    cell = grid[x][y];
            //    if(!cell)
            //      str.Append(wxPorting.T("<td class=\"empty\">&nbsp;</td>\n"));
            //    else
            //      cell.toHTML(str, urlBase);
            //  }
            //  str.Append(wxPorting.T("</tr>\n"));
            //}
            //str.Append(wxPorting.T("</table>\n"));
            //return true;
        }