You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by mr...@apache.org on 2016/09/02 17:06:25 UTC
[02/10] usergrid-dotnet git commit: Initial commit of Usergrid .NET
SDK into its own rep
http://git-wip-us.apache.org/repos/asf/usergrid-dotnet/blob/94c0483c/samples/messageeTutorial/Messagee/App.config
----------------------------------------------------------------------
diff --git a/samples/messageeTutorial/Messagee/App.config b/samples/messageeTutorial/Messagee/App.config
new file mode 100644
index 0000000..84651f3
--- /dev/null
+++ b/samples/messageeTutorial/Messagee/App.config
@@ -0,0 +1,23 @@
+\ufeff<?xml version="1.0" encoding="utf-8" ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<configuration>
+ <startup>
+ <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
+ </startup>
+</configuration>
http://git-wip-us.apache.org/repos/asf/usergrid-dotnet/blob/94c0483c/samples/messageeTutorial/Messagee/Globals.vb
----------------------------------------------------------------------
diff --git a/samples/messageeTutorial/Messagee/Globals.vb b/samples/messageeTutorial/Messagee/Globals.vb
new file mode 100644
index 0000000..d49058f
--- /dev/null
+++ b/samples/messageeTutorial/Messagee/Globals.vb
@@ -0,0 +1,22 @@
+\ufeff' Licensed to the Apache Software Foundation (ASF) under one or more
+' contributor license agreements. See the NOTICE file distributed with
+' this work for additional information regarding copyright ownership.
+' The ASF licenses this file to You under the Apache License, Version 2.0
+' (the "License"); you may not use this file except in compliance with
+' the License. You may obtain a copy of the License at
+'
+' http://www.apache.org/licenses/LICENSE-2.0
+'
+' Unless required by applicable law or agreed to in writing, software
+' distributed under the License is distributed on an "AS IS" BASIS,
+' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+' See the License for the specific language governing permissions and
+' limitations under the License.
+
+Imports Usergrid.Sdk
+
+Public Class Globals
+ Public Shared client As Usergrid.Sdk.Client
+ Public Shared mainWindow As MessageeMainWindow
+
+End Class
http://git-wip-us.apache.org/repos/asf/usergrid-dotnet/blob/94c0483c/samples/messageeTutorial/Messagee/MainForm.Designer.vb
----------------------------------------------------------------------
diff --git a/samples/messageeTutorial/Messagee/MainForm.Designer.vb b/samples/messageeTutorial/Messagee/MainForm.Designer.vb
new file mode 100644
index 0000000..1285be2
--- /dev/null
+++ b/samples/messageeTutorial/Messagee/MainForm.Designer.vb
@@ -0,0 +1,260 @@
+\ufeff' Licensed to the Apache Software Foundation (ASF) under one or more
+' contributor license agreements. See the NOTICE file distributed with
+' this work for additional information regarding copyright ownership.
+' The ASF licenses this file to You under the Apache License, Version 2.0
+' (the "License"); you may not use this file except in compliance with
+' the License. You may obtain a copy of the License at
+'
+' http://www.apache.org/licenses/LICENSE-2.0
+'
+' Unless required by applicable law or agreed to in writing, software
+' distributed under the License is distributed on an "AS IS" BASIS,
+' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+' See the License for the specific language governing permissions and
+' limitations under the License.
+
+
+<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
+Partial Class MessageeMainWindow
+ Inherits System.Windows.Forms.Form
+
+ 'Form overrides dispose to clean up the component list.
+ <System.Diagnostics.DebuggerNonUserCode()> _
+ Protected Overrides Sub Dispose(ByVal disposing As Boolean)
+ Try
+ If disposing AndAlso components IsNot Nothing Then
+ components.Dispose()
+ End If
+ Finally
+ MyBase.Dispose(disposing)
+ End Try
+ End Sub
+
+ 'Required by the Windows Form Designer
+ Private components As System.ComponentModel.IContainer
+
+ 'NOTE: The following procedure is required by the Windows Form Designer
+ 'It can be modified using the Windows Form Designer.
+ 'Do not modify it using the code editor.
+ <System.Diagnostics.DebuggerStepThrough()> _
+ Private Sub InitializeComponent()
+ Me.UsersLabel = New System.Windows.Forms.Label()
+ Me.PostMessage = New System.Windows.Forms.RichTextBox()
+ Me.MessageLabel = New System.Windows.Forms.Label()
+ Me.MenuStrip1 = New System.Windows.Forms.MenuStrip()
+ Me.MenuStrip2 = New System.Windows.Forms.MenuStrip()
+ Me.UserDetailsToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
+ Me.SettingsToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
+ Me.Followers = New System.Windows.Forms.ListBox()
+ Me.Label1 = New System.Windows.Forms.Label()
+ Me.Users = New System.Windows.Forms.ListBox()
+ Me.Label2 = New System.Windows.Forms.Label()
+ Me.Following = New System.Windows.Forms.ListBox()
+ Me.btnPost = New System.Windows.Forms.Button()
+ Me.YourFeed = New System.Windows.Forms.TabPage()
+ Me.YourFeedBox = New System.Windows.Forms.RichTextBox()
+ Me.RichTextBox1 = New System.Windows.Forms.RichTextBox()
+ Me.Feeds = New System.Windows.Forms.TabControl()
+ Me.MenuStrip2.SuspendLayout()
+ Me.YourFeed.SuspendLayout()
+ Me.Feeds.SuspendLayout()
+ Me.SuspendLayout()
+ '
+ 'UsersLabel
+ '
+ Me.UsersLabel.AutoSize = True
+ Me.UsersLabel.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.2!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
+ Me.UsersLabel.Location = New System.Drawing.Point(12, 397)
+ Me.UsersLabel.Name = "UsersLabel"
+ Me.UsersLabel.Size = New System.Drawing.Size(118, 20)
+ Me.UsersLabel.TabIndex = 2
+ Me.UsersLabel.Text = "Choose User"
+ '
+ 'PostMessage
+ '
+ Me.PostMessage.Location = New System.Drawing.Point(250, 424)
+ Me.PostMessage.Name = "PostMessage"
+ Me.PostMessage.Size = New System.Drawing.Size(342, 96)
+ Me.PostMessage.TabIndex = 3
+ Me.PostMessage.Text = ""
+ '
+ 'MessageLabel
+ '
+ Me.MessageLabel.AutoSize = True
+ Me.MessageLabel.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.2!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
+ Me.MessageLabel.Location = New System.Drawing.Point(246, 397)
+ Me.MessageLabel.Name = "MessageLabel"
+ Me.MessageLabel.Size = New System.Drawing.Size(146, 20)
+ Me.MessageLabel.TabIndex = 4
+ Me.MessageLabel.Text = "Post A Message"
+ '
+ 'MenuStrip1
+ '
+ Me.MenuStrip1.Location = New System.Drawing.Point(0, 28)
+ Me.MenuStrip1.Name = "MenuStrip1"
+ Me.MenuStrip1.Size = New System.Drawing.Size(763, 24)
+ Me.MenuStrip1.TabIndex = 5
+ Me.MenuStrip1.Text = "MenuStrip1"
+ '
+ 'MenuStrip2
+ '
+ Me.MenuStrip2.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.UserDetailsToolStripMenuItem, Me.SettingsToolStripMenuItem})
+ Me.MenuStrip2.Location = New System.Drawing.Point(0, 0)
+ Me.MenuStrip2.Name = "MenuStrip2"
+ Me.MenuStrip2.Size = New System.Drawing.Size(763, 28)
+ Me.MenuStrip2.TabIndex = 6
+ Me.MenuStrip2.Text = "MenuStrip2"
+ '
+ 'UserDetailsToolStripMenuItem
+ '
+ Me.UserDetailsToolStripMenuItem.Name = "UserDetailsToolStripMenuItem"
+ Me.UserDetailsToolStripMenuItem.Size = New System.Drawing.Size(100, 24)
+ Me.UserDetailsToolStripMenuItem.Text = "User Details"
+ '
+ 'SettingsToolStripMenuItem
+ '
+ Me.SettingsToolStripMenuItem.Name = "SettingsToolStripMenuItem"
+ Me.SettingsToolStripMenuItem.Size = New System.Drawing.Size(74, 24)
+ Me.SettingsToolStripMenuItem.Text = "Settings"
+ '
+ 'Followers
+ '
+ Me.Followers.FormattingEnabled = True
+ Me.Followers.ItemHeight = 16
+ Me.Followers.Location = New System.Drawing.Point(16, 531)
+ Me.Followers.Name = "Followers"
+ Me.Followers.Size = New System.Drawing.Size(148, 68)
+ Me.Followers.TabIndex = 7
+ '
+ 'Label1
+ '
+ Me.Label1.AutoSize = True
+ Me.Label1.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.2!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
+ Me.Label1.Location = New System.Drawing.Point(12, 508)
+ Me.Label1.Name = "Label1"
+ Me.Label1.Size = New System.Drawing.Size(90, 20)
+ Me.Label1.TabIndex = 8
+ Me.Label1.Text = "Followers"
+ '
+ 'Users
+ '
+ Me.Users.FormattingEnabled = True
+ Me.Users.ItemHeight = 16
+ Me.Users.Location = New System.Drawing.Point(16, 421)
+ Me.Users.Name = "Users"
+ Me.Users.Size = New System.Drawing.Size(148, 84)
+ Me.Users.TabIndex = 9
+ '
+ 'Label2
+ '
+ Me.Label2.AutoSize = True
+ Me.Label2.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.2!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
+ Me.Label2.Location = New System.Drawing.Point(14, 602)
+ Me.Label2.Name = "Label2"
+ Me.Label2.Size = New System.Drawing.Size(88, 20)
+ Me.Label2.TabIndex = 10
+ Me.Label2.Text = "Following"
+ '
+ 'Following
+ '
+ Me.Following.FormattingEnabled = True
+ Me.Following.ItemHeight = 16
+ Me.Following.Location = New System.Drawing.Point(16, 624)
+ Me.Following.Name = "Following"
+ Me.Following.Size = New System.Drawing.Size(148, 68)
+ Me.Following.TabIndex = 11
+ '
+ 'btnPost
+ '
+ Me.btnPost.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.2!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
+ Me.btnPost.Location = New System.Drawing.Point(250, 531)
+ Me.btnPost.Name = "btnPost"
+ Me.btnPost.Size = New System.Drawing.Size(75, 28)
+ Me.btnPost.TabIndex = 12
+ Me.btnPost.Text = "Post"
+ Me.btnPost.UseVisualStyleBackColor = True
+ '
+ 'YourFeed
+ '
+ Me.YourFeed.Controls.Add(Me.YourFeedBox)
+ Me.YourFeed.Controls.Add(Me.RichTextBox1)
+ Me.YourFeed.Location = New System.Drawing.Point(4, 25)
+ Me.YourFeed.Name = "YourFeed"
+ Me.YourFeed.Padding = New System.Windows.Forms.Padding(3)
+ Me.YourFeed.Size = New System.Drawing.Size(700, 319)
+ Me.YourFeed.TabIndex = 2
+ Me.YourFeed.Text = "Your Feed"
+ Me.YourFeed.UseVisualStyleBackColor = True
+ '
+ 'YourFeedBox
+ '
+ Me.YourFeedBox.Location = New System.Drawing.Point(3, 3)
+ Me.YourFeedBox.Name = "YourFeedBox"
+ Me.YourFeedBox.Size = New System.Drawing.Size(698, 313)
+ Me.YourFeedBox.TabIndex = 1
+ Me.YourFeedBox.Text = ""
+ '
+ 'RichTextBox1
+ '
+ Me.RichTextBox1.Location = New System.Drawing.Point(14, 193)
+ Me.RichTextBox1.Name = "RichTextBox1"
+ Me.RichTextBox1.Size = New System.Drawing.Size(8, 8)
+ Me.RichTextBox1.TabIndex = 0
+ Me.RichTextBox1.Text = ""
+ '
+ 'Feeds
+ '
+ Me.Feeds.Controls.Add(Me.YourFeed)
+ Me.Feeds.Location = New System.Drawing.Point(12, 31)
+ Me.Feeds.Name = "Feeds"
+ Me.Feeds.SelectedIndex = 0
+ Me.Feeds.Size = New System.Drawing.Size(708, 348)
+ Me.Feeds.TabIndex = 0
+ '
+ 'MessageeMainWindow
+ '
+ Me.AutoScaleDimensions = New System.Drawing.SizeF(8!, 16!)
+ Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
+ Me.ClientSize = New System.Drawing.Size(763, 704)
+ Me.Controls.Add(Me.btnPost)
+ Me.Controls.Add(Me.Following)
+ Me.Controls.Add(Me.Label2)
+ Me.Controls.Add(Me.Users)
+ Me.Controls.Add(Me.Label1)
+ Me.Controls.Add(Me.Followers)
+ Me.Controls.Add(Me.MessageLabel)
+ Me.Controls.Add(Me.PostMessage)
+ Me.Controls.Add(Me.UsersLabel)
+ Me.Controls.Add(Me.Feeds)
+ Me.Controls.Add(Me.MenuStrip1)
+ Me.Controls.Add(Me.MenuStrip2)
+ Me.MainMenuStrip = Me.MenuStrip1
+ Me.Name = "MessageeMainWindow"
+ Me.Text = "Messagee"
+ Me.MenuStrip2.ResumeLayout(false)
+ Me.MenuStrip2.PerformLayout
+ Me.YourFeed.ResumeLayout(false)
+ Me.Feeds.ResumeLayout(false)
+ Me.ResumeLayout(false)
+ Me.PerformLayout
+
+End Sub
+ Friend WithEvents UsersLabel As System.Windows.Forms.Label
+ Friend WithEvents PostMessage As System.Windows.Forms.RichTextBox
+ Friend WithEvents MessageLabel As System.Windows.Forms.Label
+ Friend WithEvents MenuStrip1 As System.Windows.Forms.MenuStrip
+ Friend WithEvents MenuStrip2 As System.Windows.Forms.MenuStrip
+ Friend WithEvents UserDetailsToolStripMenuItem As System.Windows.Forms.ToolStripMenuItem
+ Friend WithEvents SettingsToolStripMenuItem As System.Windows.Forms.ToolStripMenuItem
+ Friend WithEvents Followers As System.Windows.Forms.ListBox
+ Friend WithEvents Label1 As System.Windows.Forms.Label
+ Friend WithEvents Users As System.Windows.Forms.ListBox
+ Friend WithEvents Label2 As System.Windows.Forms.Label
+ Friend WithEvents Following As System.Windows.Forms.ListBox
+ Friend WithEvents btnPost As System.Windows.Forms.Button
+ Friend WithEvents YourFeed As System.Windows.Forms.TabPage
+ Friend WithEvents YourFeedBox As System.Windows.Forms.RichTextBox
+ Friend WithEvents RichTextBox1 As System.Windows.Forms.RichTextBox
+ Friend WithEvents Feeds As System.Windows.Forms.TabControl
+
+End Class
http://git-wip-us.apache.org/repos/asf/usergrid-dotnet/blob/94c0483c/samples/messageeTutorial/Messagee/MainForm.resx
----------------------------------------------------------------------
diff --git a/samples/messageeTutorial/Messagee/MainForm.resx b/samples/messageeTutorial/Messagee/MainForm.resx
new file mode 100644
index 0000000..9d29dab
--- /dev/null
+++ b/samples/messageeTutorial/Messagee/MainForm.resx
@@ -0,0 +1,143 @@
+\ufeff<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<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=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <metadata name="MenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>17, 17</value>
+ </metadata>
+ <metadata name="MenuStrip2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>149, 17</value>
+ </metadata>
+</root>
http://git-wip-us.apache.org/repos/asf/usergrid-dotnet/blob/94c0483c/samples/messageeTutorial/Messagee/MainForm.vb
----------------------------------------------------------------------
diff --git a/samples/messageeTutorial/Messagee/MainForm.vb b/samples/messageeTutorial/Messagee/MainForm.vb
new file mode 100644
index 0000000..0ba998a
--- /dev/null
+++ b/samples/messageeTutorial/Messagee/MainForm.vb
@@ -0,0 +1,97 @@
+\ufeff' Licensed to the Apache Software Foundation (ASF) under one or more
+' contributor license agreements. See the NOTICE file distributed with
+' this work for additional information regarding copyright ownership.
+' The ASF licenses this file to You under the Apache License, Version 2.0
+' (the "License"); you may not use this file except in compliance with
+' the License. You may obtain a copy of the License at
+'
+' http://www.apache.org/licenses/LICENSE-2.0
+'
+' Unless required by applicable law or agreed to in writing, software
+' distributed under the License is distributed on an "AS IS" BASIS,
+' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+' See the License for the specific language governing permissions and
+' limitations under the License.
+
+Imports Usergrid.Sdk
+Imports Usergrid.Sdk.Model
+
+Public Class MessageeMainWindow
+ Public Sub UpdateUsers()
+ Dim userList As UsergridCollection(Of UsergridUser)
+ userList = Globals.client.GetEntities(Of UsergridUser)("users", 10)
+ Dim i As Integer = 0
+ While i < userList.Count
+ Users.Items.Add(userList(i).UserName)
+ i = i + 1
+ End While
+ End Sub
+ Private Sub SettingsToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles SettingsToolStripMenuItem.Click
+ Settings.Show()
+ End Sub
+
+ Private Sub Users_SelectedIndexChanged(sender As Object, e As EventArgs) Handles Users.SelectedIndexChanged
+ UpdateFollowersAndFollowing()
+ UpdateYourFeed()
+ End Sub
+ Public Sub UpdateFollowersAndFollowing()
+ Followers.Items.Clear()
+ Following.Items.Clear()
+ Dim followersList As IList(Of UsergridEntity)
+ Dim followingList As IList(Of UsergridEntity)
+ Dim conn As Connection = New Connection()
+ Dim userName As String = Users.Items(Users.SelectedIndex).ToString
+ followingList = Utils.GetFollowers(userName)
+ followersList = Utils.GetFollowed(userName)
+
+ Dim i As Integer = 0
+ While i < followersList.Count
+ Followers.Items.Add(followersList(i).Name)
+ i = i + 1
+ End While
+ i = 0
+ While i < followingList.Count
+ Following.Items.Add(followingList(i).Name)
+ i = i + 1
+ End While
+ End Sub
+
+ Public Sub UpdateYourFeed()
+ YourFeedBox.Text = ""
+ Dim userFeed As UsergridCollection(Of UsergridActivity)
+ userFeed = Globals.client.GetUserFeed(Of UsergridActivity)(Users.Items(Users.SelectedIndex).ToString)
+ Dim i As Integer = 0
+ While i < userFeed.Count
+ YourFeedBox.Text = YourFeedBox.Text & "Posted By: " & userFeed(i).Actor.DisplayName & " on " & userFeed(i).PublishedDate & vbCrLf
+ YourFeedBox.Text = YourFeedBox.Text & userFeed(i).Content & vbCrLf
+ YourFeedBox.Text = YourFeedBox.Text & vbCrLf
+ i = i + 1
+ End While
+ End Sub
+
+
+ Private Sub btnPost_Click(sender As Object, e As EventArgs) Handles btnPost.Click
+ Dim activity As UsergridActivity = New UsergridActivity()
+ activity.Actor = New UsergridActor
+ activity.Actor.DisplayName = Users.Items(Users.SelectedIndex).ToString
+ activity.Actor.UserName = Users.Items(Users.SelectedIndex).ToString
+ activity.Content = PostMessage.Text
+ activity.Verb = "post"
+ Globals.client.PostActivity(Of UsergridActivity)(Users.Items(Users.SelectedIndex).ToString, activity)
+ UpdateYourFeed()
+ PostMessage.Text = ""
+ End Sub
+
+ Private Sub UserDetailsToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles UserDetailsToolStripMenuItem.Click
+ UserSettings.Show()
+
+ End Sub
+
+ Private Sub MessageeMainWindow_Load(sender As Object, e As EventArgs) Handles MyBase.Load
+ Globals.mainWindow = Me
+ End Sub
+
+ Private Sub MenuStrip2_ItemClicked(sender As Object, e As ToolStripItemClickedEventArgs) Handles MenuStrip2.ItemClicked
+
+ End Sub
+End Class
http://git-wip-us.apache.org/repos/asf/usergrid-dotnet/blob/94c0483c/samples/messageeTutorial/Messagee/Messagee.vbproj
----------------------------------------------------------------------
diff --git a/samples/messageeTutorial/Messagee/Messagee.vbproj b/samples/messageeTutorial/Messagee/Messagee.vbproj
new file mode 100644
index 0000000..4a3676a
--- /dev/null
+++ b/samples/messageeTutorial/Messagee/Messagee.vbproj
@@ -0,0 +1,173 @@
+\ufeff<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{E8C3967E-11F2-49E8-8818-ABF83F9927B2}</ProjectGuid>
+ <OutputType>WinExe</OutputType>
+ <StartupObject>Messagee.My.MyApplication</StartupObject>
+ <RootNamespace>Messagee</RootNamespace>
+ <AssemblyName>Messagee</AssemblyName>
+ <FileAlignment>512</FileAlignment>
+ <MyType>WindowsForms</MyType>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <PlatformTarget>AnyCPU</PlatformTarget>
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <DefineDebug>true</DefineDebug>
+ <DefineTrace>true</DefineTrace>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DocumentationFile>Messagee.xml</DocumentationFile>
+ <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <PlatformTarget>AnyCPU</PlatformTarget>
+ <DebugType>pdbonly</DebugType>
+ <DefineDebug>false</DefineDebug>
+ <DefineTrace>true</DefineTrace>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DocumentationFile>Messagee.xml</DocumentationFile>
+ <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
+ </PropertyGroup>
+ <PropertyGroup>
+ <OptionExplicit>On</OptionExplicit>
+ </PropertyGroup>
+ <PropertyGroup>
+ <OptionCompare>Binary</OptionCompare>
+ </PropertyGroup>
+ <PropertyGroup>
+ <OptionStrict>Off</OptionStrict>
+ </PropertyGroup>
+ <PropertyGroup>
+ <OptionInfer>On</OptionInfer>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\..\..\GitHub\usergrid-.net-sdk\Usergrid.Sdk\bin\Debug\Newtonsoft.Json.dll</HintPath>
+ </Reference>
+ <Reference Include="RestSharp">
+ <HintPath>..\..\..\..\GitHub\usergrid-.net-sdk\Usergrid.Sdk\bin\Debug\RestSharp.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Deployment" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Windows.Forms" />
+ <Reference Include="System.Xml" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Usergrid.Sdk">
+ <HintPath>..\..\..\..\GitHub\usergrid-.net-sdk\Usergrid.Sdk\bin\Debug\Usergrid.Sdk.dll</HintPath>
+ </Reference>
+ </ItemGroup>
+ <ItemGroup>
+ <Import Include="Microsoft.VisualBasic" />
+ <Import Include="System" />
+ <Import Include="System.Collections" />
+ <Import Include="System.Collections.Generic" />
+ <Import Include="System.Data" />
+ <Import Include="System.Drawing" />
+ <Import Include="System.Diagnostics" />
+ <Import Include="System.Windows.Forms" />
+ <Import Include="System.Linq" />
+ <Import Include="System.Xml.Linq" />
+ <Import Include="System.Threading.Tasks" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Globals.vb" />
+ <Compile Include="MainForm.Designer.vb">
+ <DependentUpon>MainForm.vb</DependentUpon>
+ </Compile>
+ <Compile Include="MainForm.vb">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="My Project\AssemblyInfo.vb" />
+ <Compile Include="My Project\Application.Designer.vb">
+ <AutoGen>True</AutoGen>
+ <DependentUpon>Application.myapp</DependentUpon>
+ </Compile>
+ <Compile Include="My Project\Resources.Designer.vb">
+ <AutoGen>True</AutoGen>
+ <DesignTime>True</DesignTime>
+ <DependentUpon>Resources.resx</DependentUpon>
+ </Compile>
+ <Compile Include="My Project\Settings.Designer.vb">
+ <AutoGen>True</AutoGen>
+ <DependentUpon>Settings.settings</DependentUpon>
+ <DesignTimeSharedInput>True</DesignTimeSharedInput>
+ </Compile>
+ <Compile Include="Settings.Designer.vb">
+ <DependentUpon>Settings.vb</DependentUpon>
+ </Compile>
+ <Compile Include="Settings.vb">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="UserSettings.Designer.vb">
+ <DependentUpon>UserSettings.vb</DependentUpon>
+ </Compile>
+ <Compile Include="UserSettings.vb">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Utils.vb" />
+ </ItemGroup>
+ <ItemGroup>
+ <EmbeddedResource Include="MainForm.resx">
+ <DependentUpon>MainForm.vb</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="My Project\Resources.resx">
+ <Generator>VbMyResourcesResXFileCodeGenerator</Generator>
+ <LastGenOutput>Resources.Designer.vb</LastGenOutput>
+ <CustomToolNamespace>My.Resources</CustomToolNamespace>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Settings.resx">
+ <DependentUpon>Settings.vb</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="UserSettings.resx">
+ <DependentUpon>UserSettings.vb</DependentUpon>
+ </EmbeddedResource>
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="My Project\Application.myapp">
+ <Generator>MyApplicationCodeGenerator</Generator>
+ <LastGenOutput>Application.Designer.vb</LastGenOutput>
+ </None>
+ <None Include="My Project\Settings.settings">
+ <Generator>SettingsSingleFileGenerator</Generator>
+ <CustomToolNamespace>My</CustomToolNamespace>
+ <LastGenOutput>Settings.Designer.vb</LastGenOutput>
+ </None>
+ <None Include="App.config" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
http://git-wip-us.apache.org/repos/asf/usergrid-dotnet/blob/94c0483c/samples/messageeTutorial/Messagee/My Project/Application.Designer.vb
----------------------------------------------------------------------
diff --git a/samples/messageeTutorial/Messagee/My Project/Application.Designer.vb b/samples/messageeTutorial/Messagee/My Project/Application.Designer.vb
new file mode 100644
index 0000000..9f09467
--- /dev/null
+++ b/samples/messageeTutorial/Messagee/My Project/Application.Designer.vb
@@ -0,0 +1,53 @@
+\ufeff' Licensed to the Apache Software Foundation (ASF) under one or more
+' contributor license agreements. See the NOTICE file distributed with
+' this work for additional information regarding copyright ownership.
+' The ASF licenses this file to You under the Apache License, Version 2.0
+' (the "License"); you may not use this file except in compliance with
+' the License. You may obtain a copy of the License at
+'
+' http://www.apache.org/licenses/LICENSE-2.0
+'
+' Unless required by applicable law or agreed to in writing, software
+' distributed under the License is distributed on an "AS IS" BASIS,
+' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+' See the License for the specific language governing permissions and
+' limitations under the License.
+
+'------------------------------------------------------------------------------
+' <auto-generated>
+' This code was generated by a tool.
+' Runtime Version:4.0.30319.18331
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+' </auto-generated>
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+
+Namespace My
+
+ 'NOTE: This file is auto-generated; do not modify it directly. To make changes,
+ ' or if you encounter build errors in this file, go to the Project Designer
+ ' (go to Project Properties or double-click the My Project node in
+ ' Solution Explorer), and make changes on the Application tab.
+ '
+ Partial Friend Class MyApplication
+
+ <Global.System.Diagnostics.DebuggerStepThroughAttribute()> _
+ Public Sub New()
+ MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows)
+ Me.IsSingleInstance = false
+ Me.EnableVisualStyles = true
+ Me.SaveMySettingsOnExit = true
+ Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses
+ End Sub
+
+ <Global.System.Diagnostics.DebuggerStepThroughAttribute()> _
+ Protected Overrides Sub OnCreateMainForm()
+ Me.MainForm = Global.Messagee.MessageeMainWindow
+ End Sub
+ End Class
+End Namespace
http://git-wip-us.apache.org/repos/asf/usergrid-dotnet/blob/94c0483c/samples/messageeTutorial/Messagee/My Project/Application.myapp
----------------------------------------------------------------------
diff --git a/samples/messageeTutorial/Messagee/My Project/Application.myapp b/samples/messageeTutorial/Messagee/My Project/Application.myapp
new file mode 100644
index 0000000..615b8fc
--- /dev/null
+++ b/samples/messageeTutorial/Messagee/My Project/Application.myapp
@@ -0,0 +1,27 @@
+\ufeff<?xml version="1.0" encoding="utf-16"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <MySubMain>true</MySubMain>
+ <MainForm>MessageeMainWindow</MainForm>
+ <SingleInstance>false</SingleInstance>
+ <ShutdownMode>0</ShutdownMode>
+ <EnableVisualStyles>true</EnableVisualStyles>
+ <AuthenticationMode>0</AuthenticationMode>
+ <SaveMySettingsOnExit>true</SaveMySettingsOnExit>
+</MyApplicationData>
http://git-wip-us.apache.org/repos/asf/usergrid-dotnet/blob/94c0483c/samples/messageeTutorial/Messagee/My Project/AssemblyInfo.vb
----------------------------------------------------------------------
diff --git a/samples/messageeTutorial/Messagee/My Project/AssemblyInfo.vb b/samples/messageeTutorial/Messagee/My Project/AssemblyInfo.vb
new file mode 100644
index 0000000..88a0f58
--- /dev/null
+++ b/samples/messageeTutorial/Messagee/My Project/AssemblyInfo.vb
@@ -0,0 +1,50 @@
+\ufeff' Licensed to the Apache Software Foundation (ASF) under one or more
+' contributor license agreements. See the NOTICE file distributed with
+' this work for additional information regarding copyright ownership.
+' The ASF licenses this file to You under the Apache License, Version 2.0
+' (the "License"); you may not use this file except in compliance with
+' the License. You may obtain a copy of the License at
+'
+' http://www.apache.org/licenses/LICENSE-2.0
+'
+' Unless required by applicable law or agreed to in writing, software
+' distributed under the License is distributed on an "AS IS" BASIS,
+' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+' See the License for the specific language governing permissions and
+' limitations under the License.
+
+Imports System
+Imports System.Reflection
+Imports 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.
+
+' Review the values of the assembly attributes
+
+<Assembly: AssemblyTitle("Messagee")>
+<Assembly: AssemblyDescription("")>
+<Assembly: AssemblyCompany("")>
+<Assembly: AssemblyProduct("Messagee")>
+<Assembly: AssemblyCopyright("Copyright � 2013")>
+<Assembly: AssemblyTrademark("")>
+
+<Assembly: ComVisible(False)>
+
+'The following GUID is for the ID of the typelib if this project is exposed to COM
+<Assembly: Guid("56fbdedb-0160-4cf9-993f-12067af9ee8b")>
+
+' 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")>
http://git-wip-us.apache.org/repos/asf/usergrid-dotnet/blob/94c0483c/samples/messageeTutorial/Messagee/My Project/Resources.Designer.vb
----------------------------------------------------------------------
diff --git a/samples/messageeTutorial/Messagee/My Project/Resources.Designer.vb b/samples/messageeTutorial/Messagee/My Project/Resources.Designer.vb
new file mode 100644
index 0000000..827f128
--- /dev/null
+++ b/samples/messageeTutorial/Messagee/My Project/Resources.Designer.vb
@@ -0,0 +1,77 @@
+\ufeff' Licensed to the Apache Software Foundation (ASF) under one or more
+' contributor license agreements. See the NOTICE file distributed with
+' this work for additional information regarding copyright ownership.
+' The ASF licenses this file to You under the Apache License, Version 2.0
+' (the "License"); you may not use this file except in compliance with
+' the License. You may obtain a copy of the License at
+'
+' http://www.apache.org/licenses/LICENSE-2.0
+'
+' Unless required by applicable law or agreed to in writing, software
+' distributed under the License is distributed on an "AS IS" BASIS,
+' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+' See the License for the specific language governing permissions and
+' limitations under the License.
+
+'------------------------------------------------------------------------------
+' <auto-generated>
+' This code was generated by a tool.
+' Runtime Version:4.0.30319.18331
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+' </auto-generated>
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+
+Namespace My.Resources
+
+ 'This class was auto-generated by the StronglyTypedResourceBuilder
+ 'class via a tool like ResGen or Visual Studio.
+ 'To add or remove a member, edit your .ResX file then rerun ResGen
+ 'with the /str option, or rebuild your VS project.
+ '''<summary>
+ ''' A strongly-typed resource class, for looking up localized strings, etc.
+ '''</summary>
+ <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0"), _
+ Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
+ Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
+ Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
+ Friend Module Resources
+
+ Private resourceMan As Global.System.Resources.ResourceManager
+
+ Private resourceCulture As Global.System.Globalization.CultureInfo
+
+ '''<summary>
+ ''' Returns the cached ResourceManager instance used by this class.
+ '''</summary>
+ <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
+ Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
+ Get
+ If Object.ReferenceEquals(resourceMan, Nothing) Then
+ Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("Messagee.Resources", GetType(Resources).Assembly)
+ resourceMan = temp
+ End If
+ Return resourceMan
+ End Get
+ End Property
+
+ '''<summary>
+ ''' Overrides the current thread's CurrentUICulture property for all
+ ''' resource lookups using this strongly typed resource class.
+ '''</summary>
+ <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
+ Friend Property Culture() As Global.System.Globalization.CultureInfo
+ Get
+ Return resourceCulture
+ End Get
+ Set(ByVal value As Global.System.Globalization.CultureInfo)
+ resourceCulture = value
+ End Set
+ End Property
+ End Module
+End Namespace
http://git-wip-us.apache.org/repos/asf/usergrid-dotnet/blob/94c0483c/samples/messageeTutorial/Messagee/My Project/Resources.resx
----------------------------------------------------------------------
diff --git a/samples/messageeTutorial/Messagee/My Project/Resources.resx b/samples/messageeTutorial/Messagee/My Project/Resources.resx
new file mode 100644
index 0000000..098d9b6
--- /dev/null
+++ b/samples/messageeTutorial/Messagee/My Project/Resources.resx
@@ -0,0 +1,134 @@
+\ufeff<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<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.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: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" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ </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" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ </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>
+</root>
http://git-wip-us.apache.org/repos/asf/usergrid-dotnet/blob/94c0483c/samples/messageeTutorial/Messagee/My Project/Settings.Designer.vb
----------------------------------------------------------------------
diff --git a/samples/messageeTutorial/Messagee/My Project/Settings.Designer.vb b/samples/messageeTutorial/Messagee/My Project/Settings.Designer.vb
new file mode 100644
index 0000000..888a2d9
--- /dev/null
+++ b/samples/messageeTutorial/Messagee/My Project/Settings.Designer.vb
@@ -0,0 +1,88 @@
+\ufeff' Licensed to the Apache Software Foundation (ASF) under one or more
+' contributor license agreements. See the NOTICE file distributed with
+' this work for additional information regarding copyright ownership.
+' The ASF licenses this file to You under the Apache License, Version 2.0
+' (the "License"); you may not use this file except in compliance with
+' the License. You may obtain a copy of the License at
+'
+' http://www.apache.org/licenses/LICENSE-2.0
+'
+' Unless required by applicable law or agreed to in writing, software
+' distributed under the License is distributed on an "AS IS" BASIS,
+' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+' See the License for the specific language governing permissions and
+' limitations under the License.
+
+'------------------------------------------------------------------------------
+' <auto-generated>
+' This code was generated by a tool.
+' Runtime Version:4.0.30319.18331
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+' </auto-generated>
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+
+Namespace My
+
+ <Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0"), _
+ Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
+ Partial Friend NotInheritable Class MySettings
+ Inherits Global.System.Configuration.ApplicationSettingsBase
+
+ Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings), MySettings)
+
+#Region "My.Settings Auto-Save Functionality"
+#If _MyType = "WindowsForms" Then
+ Private Shared addedHandler As Boolean
+
+ Private Shared addedHandlerLockObject As New Object
+
+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
+ Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
+ If My.Application.SaveMySettingsOnExit Then
+ My.Settings.Save()
+ End If
+ End Sub
+#End If
+#End Region
+
+ Public Shared ReadOnly Property [Default]() As MySettings
+ Get
+
+#If _MyType = "WindowsForms" Then
+ If Not addedHandler Then
+ SyncLock addedHandlerLockObject
+ If Not addedHandler Then
+ AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
+ addedHandler = True
+ End If
+ End SyncLock
+ End If
+#End If
+ Return defaultInstance
+ End Get
+ End Property
+ End Class
+End Namespace
+
+Namespace My
+
+ <Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
+ Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
+ Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
+ Friend Module MySettingsProperty
+
+ <Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
+ Friend ReadOnly Property Settings() As Global.Messagee.My.MySettings
+ Get
+ Return Global.Messagee.My.MySettings.Default
+ End Get
+ End Property
+ End Module
+End Namespace
http://git-wip-us.apache.org/repos/asf/usergrid-dotnet/blob/94c0483c/samples/messageeTutorial/Messagee/My Project/Settings.settings
----------------------------------------------------------------------
diff --git a/samples/messageeTutorial/Messagee/My Project/Settings.settings b/samples/messageeTutorial/Messagee/My Project/Settings.settings
new file mode 100644
index 0000000..9c270f1
--- /dev/null
+++ b/samples/messageeTutorial/Messagee/My Project/Settings.settings
@@ -0,0 +1,24 @@
+\ufeff<?xml version='1.0' encoding='utf-8'?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" UseMySettingsClassName="true">
+ <Profiles>
+ <Profile Name="(Default)" />
+ </Profiles>
+ <Settings />
+</SettingsFile>
http://git-wip-us.apache.org/repos/asf/usergrid-dotnet/blob/94c0483c/samples/messageeTutorial/Messagee/Settings.Designer.vb
----------------------------------------------------------------------
diff --git a/samples/messageeTutorial/Messagee/Settings.Designer.vb b/samples/messageeTutorial/Messagee/Settings.Designer.vb
new file mode 100644
index 0000000..a1f4040
--- /dev/null
+++ b/samples/messageeTutorial/Messagee/Settings.Designer.vb
@@ -0,0 +1,159 @@
+\ufeff' Licensed to the Apache Software Foundation (ASF) under one or more
+' contributor license agreements. See the NOTICE file distributed with
+' this work for additional information regarding copyright ownership.
+' The ASF licenses this file to You under the Apache License, Version 2.0
+' (the "License"); you may not use this file except in compliance with
+' the License. You may obtain a copy of the License at
+'
+' http://www.apache.org/licenses/LICENSE-2.0
+'
+' Unless required by applicable law or agreed to in writing, software
+' distributed under the License is distributed on an "AS IS" BASIS,
+' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+' See the License for the specific language governing permissions and
+' limitations under the License.
+
+<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
+Partial Class Settings
+ Inherits System.Windows.Forms.Form
+
+ 'Form overrides dispose to clean up the component list.
+ <System.Diagnostics.DebuggerNonUserCode()> _
+ Protected Overrides Sub Dispose(ByVal disposing As Boolean)
+ Try
+ If disposing AndAlso components IsNot Nothing Then
+ components.Dispose()
+ End If
+ Finally
+ MyBase.Dispose(disposing)
+ End Try
+ End Sub
+
+ 'Required by the Windows Form Designer
+ Private components As System.ComponentModel.IContainer
+
+ 'NOTE: The following procedure is required by the Windows Form Designer
+ 'It can be modified using the Windows Form Designer.
+ 'Do not modify it using the code editor.
+ <System.Diagnostics.DebuggerStepThrough()> _
+ Private Sub InitializeComponent()
+ Me.Label1 = New System.Windows.Forms.Label()
+ Me.txtUserName = New System.Windows.Forms.TextBox()
+ Me.Password = New System.Windows.Forms.Label()
+ Me.txtPassword = New System.Windows.Forms.TextBox()
+ Me.Label2 = New System.Windows.Forms.Label()
+ Me.txtOrg = New System.Windows.Forms.TextBox()
+ Me.App = New System.Windows.Forms.Label()
+ Me.txtApp = New System.Windows.Forms.TextBox()
+ Me.btnSave = New System.Windows.Forms.Button()
+ Me.SuspendLayout()
+ '
+ 'Label1
+ '
+ Me.Label1.AutoSize = True
+ Me.Label1.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.2!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
+ Me.Label1.Location = New System.Drawing.Point(27, 41)
+ Me.Label1.Name = "Label1"
+ Me.Label1.Size = New System.Drawing.Size(103, 20)
+ Me.Label1.TabIndex = 0
+ Me.Label1.Text = "User Name"
+ '
+ 'txtUserName
+ '
+ Me.txtUserName.Location = New System.Drawing.Point(160, 41)
+ Me.txtUserName.Name = "txtUserName"
+ Me.txtUserName.Size = New System.Drawing.Size(180, 22)
+ Me.txtUserName.TabIndex = 1
+ '
+ 'Password
+ '
+ Me.Password.AutoSize = True
+ Me.Password.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.2!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
+ Me.Password.Location = New System.Drawing.Point(31, 94)
+ Me.Password.Name = "Password"
+ Me.Password.Size = New System.Drawing.Size(91, 20)
+ Me.Password.TabIndex = 2
+ Me.Password.Text = "Password"
+ '
+ 'txtPassword
+ '
+ Me.txtPassword.Location = New System.Drawing.Point(160, 94)
+ Me.txtPassword.Name = "txtPassword"
+ Me.txtPassword.Size = New System.Drawing.Size(180, 22)
+ Me.txtPassword.TabIndex = 3
+ Me.txtPassword.UseSystemPasswordChar = True
+ '
+ 'Label2
+ '
+ Me.Label2.AutoSize = True
+ Me.Label2.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.2!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
+ Me.Label2.Location = New System.Drawing.Point(31, 148)
+ Me.Label2.Name = "Label2"
+ Me.Label2.Size = New System.Drawing.Size(40, 20)
+ Me.Label2.TabIndex = 4
+ Me.Label2.Text = "Org"
+ '
+ 'txtOrg
+ '
+ Me.txtOrg.Location = New System.Drawing.Point(160, 148)
+ Me.txtOrg.Name = "txtOrg"
+ Me.txtOrg.Size = New System.Drawing.Size(180, 22)
+ Me.txtOrg.TabIndex = 5
+ '
+ 'App
+ '
+ Me.App.AutoSize = True
+ Me.App.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.2!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
+ Me.App.Location = New System.Drawing.Point(35, 202)
+ Me.App.Name = "App"
+ Me.App.Size = New System.Drawing.Size(41, 20)
+ Me.App.TabIndex = 6
+ Me.App.Text = "App"
+ '
+ 'txtApp
+ '
+ Me.txtApp.Location = New System.Drawing.Point(160, 202)
+ Me.txtApp.Name = "txtApp"
+ Me.txtApp.Size = New System.Drawing.Size(180, 22)
+ Me.txtApp.TabIndex = 7
+ '
+ 'btnSave
+ '
+ Me.btnSave.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.2!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
+ Me.btnSave.Location = New System.Drawing.Point(160, 289)
+ Me.btnSave.Name = "btnSave"
+ Me.btnSave.Size = New System.Drawing.Size(117, 31)
+ Me.btnSave.TabIndex = 8
+ Me.btnSave.Text = "Save Settings"
+ Me.btnSave.UseVisualStyleBackColor = True
+ '
+ 'Settings
+ '
+ Me.AutoScaleDimensions = New System.Drawing.SizeF(8.0!, 16.0!)
+ Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
+ Me.ClientSize = New System.Drawing.Size(517, 420)
+ Me.Controls.Add(Me.btnSave)
+ Me.Controls.Add(Me.txtApp)
+ Me.Controls.Add(Me.App)
+ Me.Controls.Add(Me.txtOrg)
+ Me.Controls.Add(Me.Label2)
+ Me.Controls.Add(Me.txtPassword)
+ Me.Controls.Add(Me.Password)
+ Me.Controls.Add(Me.txtUserName)
+ Me.Controls.Add(Me.Label1)
+ Me.Name = "Settings"
+ Me.Text = "Settings"
+ Me.ResumeLayout(False)
+ Me.PerformLayout()
+
+ End Sub
+ Friend WithEvents Label1 As System.Windows.Forms.Label
+ Friend WithEvents txtUserName As System.Windows.Forms.TextBox
+ Friend WithEvents Password As System.Windows.Forms.Label
+ Friend WithEvents txtPassword As System.Windows.Forms.TextBox
+ Friend WithEvents Label2 As System.Windows.Forms.Label
+ Friend WithEvents txtOrg As System.Windows.Forms.TextBox
+ Friend WithEvents App As System.Windows.Forms.Label
+ Friend WithEvents txtApp As System.Windows.Forms.TextBox
+ Friend WithEvents btnSave As System.Windows.Forms.Button
+End Class
http://git-wip-us.apache.org/repos/asf/usergrid-dotnet/blob/94c0483c/samples/messageeTutorial/Messagee/Settings.resx
----------------------------------------------------------------------
diff --git a/samples/messageeTutorial/Messagee/Settings.resx b/samples/messageeTutorial/Messagee/Settings.resx
new file mode 100644
index 0000000..85d1d78
--- /dev/null
+++ b/samples/messageeTutorial/Messagee/Settings.resx
@@ -0,0 +1,137 @@
+\ufeff<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<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=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+</root>
http://git-wip-us.apache.org/repos/asf/usergrid-dotnet/blob/94c0483c/samples/messageeTutorial/Messagee/Settings.vb
----------------------------------------------------------------------
diff --git a/samples/messageeTutorial/Messagee/Settings.vb b/samples/messageeTutorial/Messagee/Settings.vb
new file mode 100644
index 0000000..ec2adb2
--- /dev/null
+++ b/samples/messageeTutorial/Messagee/Settings.vb
@@ -0,0 +1,28 @@
+\ufeff' Licensed to the Apache Software Foundation (ASF) under one or more
+' contributor license agreements. See the NOTICE file distributed with
+' this work for additional information regarding copyright ownership.
+' The ASF licenses this file to You under the Apache License, Version 2.0
+' (the "License"); you may not use this file except in compliance with
+' the License. You may obtain a copy of the License at
+'
+' http://www.apache.org/licenses/LICENSE-2.0
+'
+' Unless required by applicable law or agreed to in writing, software
+' distributed under the License is distributed on an "AS IS" BASIS,
+' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+' See the License for the specific language governing permissions and
+' limitations under the License.
+
+Imports Usergrid.Sdk
+Imports Usergrid.Sdk.Model
+
+Public Class Settings
+
+ Private Sub btnSave_Click(sender As Object, e As EventArgs) Handles btnSave.Click
+ Dim client As Client = New Client(txtOrg.Text, txtApp.Text)
+ client.Login(txtUserName.Text, txtPassword.Text, AuthType.User)
+ Globals.client = client
+ MessageeMainWindow.UpdateUsers()
+ Me.Close()
+ End Sub
+End Class
http://git-wip-us.apache.org/repos/asf/usergrid-dotnet/blob/94c0483c/samples/messageeTutorial/Messagee/UserSettings.Designer.vb
----------------------------------------------------------------------
diff --git a/samples/messageeTutorial/Messagee/UserSettings.Designer.vb b/samples/messageeTutorial/Messagee/UserSettings.Designer.vb
new file mode 100644
index 0000000..0e10cae
--- /dev/null
+++ b/samples/messageeTutorial/Messagee/UserSettings.Designer.vb
@@ -0,0 +1,191 @@
+\ufeff' Licensed to the Apache Software Foundation (ASF) under one or more
+' contributor license agreements. See the NOTICE file distributed with
+' this work for additional information regarding copyright ownership.
+' The ASF licenses this file to You under the Apache License, Version 2.0
+' (the "License"); you may not use this file except in compliance with
+' the License. You may obtain a copy of the License at
+'
+' http://www.apache.org/licenses/LICENSE-2.0
+'
+' Unless required by applicable law or agreed to in writing, software
+' distributed under the License is distributed on an "AS IS" BASIS,
+' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+' See the License for the specific language governing permissions and
+' limitations under the License.
+
+<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
+Partial Class UserSettings
+ Inherits System.Windows.Forms.Form
+
+ 'Form overrides dispose to clean up the component list.
+ <System.Diagnostics.DebuggerNonUserCode()> _
+ Protected Overrides Sub Dispose(ByVal disposing As Boolean)
+ Try
+ If disposing AndAlso components IsNot Nothing Then
+ components.Dispose()
+ End If
+ Finally
+ MyBase.Dispose(disposing)
+ End Try
+ End Sub
+
+ 'Required by the Windows Form Designer
+ Private components As System.ComponentModel.IContainer
+
+ 'NOTE: The following procedure is required by the Windows Form Designer
+ 'It can be modified using the Windows Form Designer.
+ 'Do not modify it using the code editor.
+ <System.Diagnostics.DebuggerStepThrough()> _
+ Private Sub InitializeComponent()
+ Me.Label1 = New System.Windows.Forms.Label()
+ Me.userNameLabel = New System.Windows.Forms.Label()
+ Me.Label2 = New System.Windows.Forms.Label()
+ Me.uuidLabel = New System.Windows.Forms.Label()
+ Me.unconnectedUsers = New System.Windows.Forms.ListBox()
+ Me.Label3 = New System.Windows.Forms.Label()
+ Me.followingList = New System.Windows.Forms.ListBox()
+ Me.Label4 = New System.Windows.Forms.Label()
+ Me.btnAddFollowing = New System.Windows.Forms.Button()
+ Me.btnDeleteFollowing = New System.Windows.Forms.Button()
+ Me.btnClose = New System.Windows.Forms.Button()
+ Me.SuspendLayout()
+ '
+ 'Label1
+ '
+ Me.Label1.AutoSize = True
+ Me.Label1.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.2!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
+ Me.Label1.Location = New System.Drawing.Point(30, 22)
+ Me.Label1.Name = "Label1"
+ Me.Label1.Size = New System.Drawing.Size(109, 20)
+ Me.Label1.TabIndex = 0
+ Me.Label1.Text = "User Name:"
+ '
+ 'userNameLabel
+ '
+ Me.userNameLabel.AutoSize = True
+ Me.userNameLabel.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.2!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
+ Me.userNameLabel.Location = New System.Drawing.Point(145, 22)
+ Me.userNameLabel.Name = "userNameLabel"
+ Me.userNameLabel.Size = New System.Drawing.Size(59, 20)
+ Me.userNameLabel.TabIndex = 1
+ Me.userNameLabel.Text = "Label2"
+ '
+ 'Label2
+ '
+ Me.Label2.AutoSize = True
+ Me.Label2.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.2!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
+ Me.Label2.Location = New System.Drawing.Point(34, 60)
+ Me.Label2.Name = "Label2"
+ Me.Label2.Size = New System.Drawing.Size(60, 20)
+ Me.Label2.TabIndex = 2
+ Me.Label2.Text = "UUID:"
+ '
+ 'uuidLabel
+ '
+ Me.uuidLabel.AutoSize = True
+ Me.uuidLabel.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.2!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
+ Me.uuidLabel.Location = New System.Drawing.Point(149, 60)
+ Me.uuidLabel.Name = "uuidLabel"
+ Me.uuidLabel.Size = New System.Drawing.Size(59, 20)
+ Me.uuidLabel.TabIndex = 3
+ Me.uuidLabel.Text = "Label3"
+ '
+ 'unconnectedUsers
+ '
+ Me.unconnectedUsers.FormattingEnabled = True
+ Me.unconnectedUsers.ItemHeight = 16
+ Me.unconnectedUsers.Location = New System.Drawing.Point(38, 131)
+ Me.unconnectedUsers.Name = "unconnectedUsers"
+ Me.unconnectedUsers.Size = New System.Drawing.Size(120, 84)
+ Me.unconnectedUsers.TabIndex = 4
+ '
+ 'Label3
+ '
+ Me.Label3.AutoSize = True
+ Me.Label3.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.2!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
+ Me.Label3.Location = New System.Drawing.Point(38, 108)
+ Me.Label3.Name = "Label3"
+ Me.Label3.Size = New System.Drawing.Size(59, 20)
+ Me.Label3.TabIndex = 5
+ Me.Label3.Text = "Users"
+ '
+ 'followingList
+ '
+ Me.followingList.FormattingEnabled = True
+ Me.followingList.ItemHeight = 16
+ Me.followingList.Location = New System.Drawing.Point(341, 131)
+ Me.followingList.Name = "followingList"
+ Me.followingList.Size = New System.Drawing.Size(120, 84)
+ Me.followingList.TabIndex = 6
+ '
+ 'Label4
+ '
+ Me.Label4.AutoSize = True
+ Me.Label4.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.2!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
+ Me.Label4.Location = New System.Drawing.Point(337, 108)
+ Me.Label4.Name = "Label4"
+ Me.Label4.Size = New System.Drawing.Size(88, 20)
+ Me.Label4.TabIndex = 7
+ Me.Label4.Text = "Following"
+ '
+ 'btnAddFollowing
+ '
+ Me.btnAddFollowing.Location = New System.Drawing.Point(198, 131)
+ Me.btnAddFollowing.Name = "btnAddFollowing"
+ Me.btnAddFollowing.Size = New System.Drawing.Size(75, 23)
+ Me.btnAddFollowing.TabIndex = 8
+ Me.btnAddFollowing.Text = "Add ->"
+ Me.btnAddFollowing.UseVisualStyleBackColor = True
+ '
+ 'btnDeleteFollowing
+ '
+ Me.btnDeleteFollowing.Location = New System.Drawing.Point(198, 177)
+ Me.btnDeleteFollowing.Name = "btnDeleteFollowing"
+ Me.btnDeleteFollowing.Size = New System.Drawing.Size(75, 23)
+ Me.btnDeleteFollowing.TabIndex = 9
+ Me.btnDeleteFollowing.Text = "<- Delete"
+ Me.btnDeleteFollowing.UseVisualStyleBackColor = True
+ '
+ 'btnClose
+ '
+ Me.btnClose.Location = New System.Drawing.Point(341, 325)
+ Me.btnClose.Name = "btnClose"
+ Me.btnClose.Size = New System.Drawing.Size(75, 23)
+ Me.btnClose.TabIndex = 10
+ Me.btnClose.Text = "Close"
+ Me.btnClose.UseVisualStyleBackColor = True
+ '
+ 'UserSettings
+ '
+ Me.AutoScaleDimensions = New System.Drawing.SizeF(8.0!, 16.0!)
+ Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
+ Me.ClientSize = New System.Drawing.Size(537, 395)
+ Me.Controls.Add(Me.btnClose)
+ Me.Controls.Add(Me.btnDeleteFollowing)
+ Me.Controls.Add(Me.btnAddFollowing)
+ Me.Controls.Add(Me.Label4)
+ Me.Controls.Add(Me.followingList)
+ Me.Controls.Add(Me.Label3)
+ Me.Controls.Add(Me.unconnectedUsers)
+ Me.Controls.Add(Me.uuidLabel)
+ Me.Controls.Add(Me.Label2)
+ Me.Controls.Add(Me.userNameLabel)
+ Me.Controls.Add(Me.Label1)
+ Me.Name = "UserSettings"
+ Me.Text = "UserSettings"
+ Me.ResumeLayout(False)
+ Me.PerformLayout()
+
+ End Sub
+ Friend WithEvents Label1 As System.Windows.Forms.Label
+ Friend WithEvents userNameLabel As System.Windows.Forms.Label
+ Friend WithEvents Label2 As System.Windows.Forms.Label
+ Friend WithEvents uuidLabel As System.Windows.Forms.Label
+ Friend WithEvents unconnectedUsers As System.Windows.Forms.ListBox
+ Friend WithEvents Label3 As System.Windows.Forms.Label
+ Friend WithEvents followingList As System.Windows.Forms.ListBox
+ Friend WithEvents Label4 As System.Windows.Forms.Label
+ Friend WithEvents btnAddFollowing As System.Windows.Forms.Button
+ Friend WithEvents btnDeleteFollowing As System.Windows.Forms.Button
+ Friend WithEvents btnClose As System.Windows.Forms.Button
+End Class