Permalink
Browse files

c sharp example

  • Loading branch information...
1 parent 69dd5a4 commit b2fe31d927cf2fc6a6b02e3d61a11da529a9eff0 @kywon kywon committed Oct 25, 2012
Showing with 2,048 additions and 1 deletion.
  1. +1 −1 README.md
  2. +29 −0 examples/c# example/TeamPlatformAPIExample/TeamPlatformAPIExample.sln
  3. BIN examples/c# example/TeamPlatformAPIExample/TeamPlatformAPIExample.suo
  4. +446 −0 examples/c# example/TeamPlatformAPIExample/TeamPlatformAPIExample/MainForm.Designer.cs
  5. +519 −0 examples/c# example/TeamPlatformAPIExample/TeamPlatformAPIExample/MainForm.cs
  6. +126 −0 examples/c# example/TeamPlatformAPIExample/TeamPlatformAPIExample/MainForm.resx
  7. +36 −0 examples/c# example/TeamPlatformAPIExample/TeamPlatformAPIExample/Program.cs
  8. +36 −0 examples/c# example/TeamPlatformAPIExample/TeamPlatformAPIExample/Properties/AssemblyInfo.cs
  9. +63 −0 examples/c# example/TeamPlatformAPIExample/TeamPlatformAPIExample/Properties/Resources.Designer.cs
  10. +117 −0 examples/c# example/TeamPlatformAPIExample/TeamPlatformAPIExample/Properties/Resources.resx
  11. +26 −0 examples/c# example/TeamPlatformAPIExample/TeamPlatformAPIExample/Properties/Settings.Designer.cs
  12. +7 −0 examples/c# example/TeamPlatformAPIExample/TeamPlatformAPIExample/Properties/Settings.settings
  13. +97 −0 examples/c# example/TeamPlatformAPIExample/TeamPlatformAPIExample/TeamPlatformAPIExample.csproj
  14. +3 −0 examples/c# example/TeamPlatformAPIExample/TeamPlatformAPIExample/app.config
  15. BIN ...s/c# example/TeamPlatformAPIExample/TeamPlatformAPIExample/bin/Release/TeamPlatformAPIExample.exe
  16. +3 −0 ...ample/TeamPlatformAPIExample/TeamPlatformAPIExample/bin/Release/TeamPlatformAPIExample.exe.config
  17. BIN ...s/c# example/TeamPlatformAPIExample/TeamPlatformAPIExample/bin/Release/TeamPlatformAPIExample.pdb
  18. BIN ...ample/TeamPlatformAPIExample/TeamPlatformAPIExample/bin/Release/TeamPlatformAPIExample.vshost.exe
  19. +3 −0 ...eamPlatformAPIExample/TeamPlatformAPIExample/bin/Release/TeamPlatformAPIExample.vshost.exe.config
  20. +11 −0 ...mPlatformAPIExample/TeamPlatformAPIExample/bin/Release/TeamPlatformAPIExample.vshost.exe.manifest
  21. +112 −0 examples/c# example/TeamPlatformAPIExample/TeamPlatformAPIExample/tpAPI/tpModels.cs
  22. +392 −0 examples/c# example/TeamPlatformAPIExample/TeamPlatformAPIExample/tpAPI/tpOAuth2.cs
  23. +11 −0 examples/c# example/c-sharp.md
  24. +10 −0 examples/examples.md
View
@@ -61,4 +61,4 @@ Help us make it better
Please tell us how we can make the API better. If you have a specific feature request or if you found a bug, please use GitHub issues.
-This documentation is inspired by 37signals's [bcx-api](https://github.com/vispower/teamplatform-api)
+This documentation is inspired by 37signals's [bcx-api](https://github.com/37signals/bcx-api)
@@ -0,0 +1,29 @@
+
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TeamPlatformAPIExample", "TeamPlatformAPIExample\TeamPlatformAPIExample.csproj", "{9977A1E1-1A7B-4DC8-A133-6339D4790709}"
+EndProject
+Global
+ GlobalSection(TeamFoundationVersionControl) = preSolution
+ SccNumberOfProjects = 2
+ SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
+ SccTeamFoundationServer = http://vispower-pc:8080/tfs/defaultcollection
+ SccLocalPath0 = .
+ SccProjectUniqueName1 = TeamPlatformAPIExample\\TeamPlatformAPIExample.csproj
+ SccProjectName1 = TeamPlatformAPIExample
+ SccLocalPath1 = TeamPlatformAPIExample
+ EndGlobalSection
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|x86 = Debug|x86
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {9977A1E1-1A7B-4DC8-A133-6339D4790709}.Debug|x86.ActiveCfg = Debug|x86
+ {9977A1E1-1A7B-4DC8-A133-6339D4790709}.Debug|x86.Build.0 = Debug|x86
+ {9977A1E1-1A7B-4DC8-A133-6339D4790709}.Release|x86.ActiveCfg = Release|x86
+ {9977A1E1-1A7B-4DC8-A133-6339D4790709}.Release|x86.Build.0 = Release|x86
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
Oops, something went wrong.
Oops, something went wrong.
@@ -0,0 +1,126 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" use="required" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <metadata name="status_strip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>17, 17</value>
+ </metadata>
+ <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>51</value>
+ </metadata>
+</root>
@@ -0,0 +1,36 @@
+/*
+ * Copyright © 2012 VISPOWER TECHNOLOGY, INC.
+ * All rights reserved under the copyright laws of the United States and applicable international laws, treaties, and conventions.
+ * You may freely redistribute and use this sample code, with or without modification, provided you include the original copyright notice and use restrictions.
+ *
+ * Disclaimer:
+ * THE SAMPLE CODE IS PROVIDED "AS IS," AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ARE DISCLAIMED.
+ * IN NO EVENT SHALL VISPOWER TECHNOLOGY, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) SUSTAINED BY YOU OR A THIRD PARTY, HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT, ARISING IN ANY WAY OUT OF THE USE OF THIS SAMPLE CODE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * For additional information, contact
+ * support@teamplatform.com
+ *
+ * Oct. 22nd, 2012
+ *
+ */
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Windows.Forms;
+
+namespace TeamPlatformAPIExample
+{
+ static class Program
+ {
+ [STAThread]
+ static void Main()
+ {
+ Application.EnableVisualStyles();
+ Application.SetCompatibleTextRenderingDefault(false);
+ Application.Run(new MainForm());
+ }
+ }
+}
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("TeamPlatformAPIExample")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("RFI")]
+[assembly: AssemblyProduct("TeamPlatformAPIExample")]
+[assembly: AssemblyCopyright("Copyright © RFI 2012")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("a5e5fa23-96b3-4695-b683-3371c8950bec")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Oops, something went wrong.
Oops, something went wrong.

0 comments on commit b2fe31d

Please sign in to comment.