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>(); }
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); }
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); }
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); }
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; } } }
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; } } }
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; } } }
public WorkBookInfo(Google.GData.Spreadsheets.SpreadsheetEntry in_entry) { SetupFromSpreadsheetEntry(in_entry); }