예제 #1
0
 internal Spreadsheet(GoogleSpreadsheetEntry entry)
 {
     // Can't use an array since we don't want to call
     // entry.Worksheets.Entries.Count since it does a query veery sloooow.
     // The workaround it's to use a dictionary and get the worksheet when need.
     this.entry      = entry;
     this.worksheets = new Dictionary <int, Worksheet>();
 }
예제 #2
0
 public void AddWorksheetEntry(Google.GData.Spreadsheets.WorksheetEntry in_entry, string in_url)
 {
     if (SpreadsheetEntry == null)
         SpreadsheetEntry = new Google.GData.Spreadsheets.SpreadsheetEntry();
     Google.GData.Client.AtomEntry.ImportFromFeed(in_entry);
     Title = in_entry.Feed.Title.Text;
     Url = in_url;
     ManualEntries.Add(in_entry);
 }
예제 #3
0
 public void AddWorksheetEntry(Google.GData.Spreadsheets.WorksheetEntry in_entry, string in_url)
 {
     if (SpreadsheetEntry == null)
     {
         SpreadsheetEntry = new Google.GData.Spreadsheets.SpreadsheetEntry();
     }
     Google.GData.Client.AtomEntry.ImportFromFeed(in_entry);
     Title = in_entry.Feed.Title.Text;
     Url   = in_url;
     ManualEntries.Add(in_entry);
 }
예제 #4
0
 public void AddWorksheetEntry(Google.GData.Spreadsheets.WorksheetEntry entry, string url)
 {
     if (spreadsheetEntry == null)
     {
         spreadsheetEntry = new Google.GData.Spreadsheets.SpreadsheetEntry();
     }
     Google.GData.Spreadsheets.SpreadsheetEntry.ImportFromFeed(entry);
     Title = entry.Feed.Title.Text;
     Url   = url;
     ManualEntries.Add(entry);
 }
예제 #5
0
 public void SetupFromSpreadsheetEntry(Google.GData.Spreadsheets.SpreadsheetEntry in_entry)
 {
     SpreadsheetEntry = in_entry;
     WorksheetEntries = SpreadsheetEntry.Worksheets.Entries;
     Title = in_entry.Title.Text;
     foreach (var link in in_entry.Links)
     {
         if (link.Rel.Equals("alternate", StringComparison.OrdinalIgnoreCase))
         {
             Url = link.HRef.ToString();
             break;
         }
     }
 }
예제 #6
0
 public void SetupFromSpreadsheetEntry(Google.GData.Spreadsheets.SpreadsheetEntry in_entry)
 {
     SpreadsheetEntry = in_entry;
     WorksheetEntries = SpreadsheetEntry.Worksheets.Entries;
     Title            = in_entry.Title.Text;
     foreach (var link in in_entry.Links)
     {
         if (link.Rel.Equals("alternate", StringComparison.OrdinalIgnoreCase))
         {
             Url = link.HRef.ToString();
             break;
         }
     }
 }
예제 #7
0
 public WorkBookInfo(Google.GData.Spreadsheets.SpreadsheetEntry entry)
 {
     spreadsheetEntry = entry;
     WorksheetEntries = spreadsheetEntry.Worksheets.Entries;
     Title            = entry.Title.Text;
     foreach (var link in entry.Links)
     {
         if (link.Rel.ToLower() == "alternate")
         {
             Url = link.HRef.ToString();
             break;
         }
     }
 }
예제 #8
0
 public WorkBookInfo(Google.GData.Spreadsheets.SpreadsheetEntry in_entry)
 {
     SetupFromSpreadsheetEntry(in_entry);
 }