Skip to content

Commit

Permalink
Merge pull request #1 from fabianwilliams/spsvb2015branch
Browse files Browse the repository at this point in the history
Spsvb2015branch
  • Loading branch information
fabianwilliams committed Feb 22, 2015
2 parents e2a8cf4 + b50521e commit 2fa4a37
Show file tree
Hide file tree
Showing 394 changed files with 3,930,043 additions and 12 deletions.
7 changes: 6 additions & 1 deletion README.md
Expand Up @@ -17,4 +17,9 @@ For the Client "this is a work in progress (WIP)"
1. Updated the ToDoItem.cs with the new fields and JSON.net attribute
2. Updated the QSToDoService.cs to take out the refernce for "Complete" as this is no longer a ToDo app to "remove" to reflect deleting someone from the list
3. Updated QSCOntroller.cs to add the fields in the method that the button add is connected to so that it will update the SQL Database. As of 12/24/14 4 am EST, i have not created the additional controls UITextField for the additonal fields yet, i have just created dummy data in the method call
//End 12/24/2014
//End 12/24/2014
---
### SharePoint Saturday Branch Began
---
```sh
$ Added New Branch for SPSVB 2015 http://www.events.org/city/VaBeach/vb2015/
12 changes: 12 additions & 0 deletions bravosoc.userprefs
@@ -0,0 +1,12 @@
<Properties StartupItem="bravosoc/bravosoc.csproj">
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug|iPhoneSimulator" PreferredExecutionTarget="MonoDevelop.IPhone.IPhoneSimulatorTarget.IPhone5.8.1" />
<MonoDevelop.Ide.Workbench>
<Files>
<File FileName="bravosoc/AddSocialContact.cs" Line="1" Column="1" />
</Files>
</MonoDevelop.Ide.Workbench>
<MonoDevelop.Ide.DebuggingService.Breakpoints>
<BreakpointStore />
</MonoDevelop.Ide.DebuggingService.Breakpoints>
<MonoDevelop.Ide.DebuggingService.PinnedWatches />
</Properties>
72 changes: 72 additions & 0 deletions bravosoc/AddSocialContact.cs
@@ -0,0 +1,72 @@
using System;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using System.CodeDom.Compiler;
using System.Threading.Tasks;

namespace bravosoc
{
partial class AddSocialContact : UIViewController
{
private QSTodoService todoService;

public AddSocialContact (IntPtr handle) : base (handle)
{
}

public override async void ViewDidLoad ()
{
base.ViewDidLoad ();

todoService = QSTodoService.DefaultService;
await todoService.InitializeStoreAsync ();

await RefreshAsync ();

}

private async Task RefreshAsync ()
{
await todoService.RefreshDataAsync ();
}

async partial void Clicked (UIButton sender)
{
if (string.IsNullOrWhiteSpace (txtName.Text))
return;
if (string.IsNullOrWhiteSpace (txtEmail.Text))
return;
if (string.IsNullOrWhiteSpace (txtMobile.Text))
return;

var newItem = new ToDoItem {
Text = txtName.Text,
FaceBookName = txtFB.Text, //this and all the below dummydata will be replaced
TwitterHandle = txtTwitter.Text,//with legitmate controls later on
InstagramName = txtInstagram.Text,
MobilePhone = txtMobile.Text,
EmailAddress = txtEmail.Text,
Remove = false,
Complete = false
};

await todoService.InsertTodoItemAsync (newItem);

var index = todoService.Items.FindIndex (item => item.Id == newItem.Id);

//update Message Label of Success
lblMessgeAdd.Text = "Contact: " + txtName.Text + " added!";

txtName.Text = "";
txtFB.Text = "";
txtTwitter.Text = "";
txtInstagram.Text = "";
txtMobile.Text = "";
txtEmail.Text = "";
//will need to add more controls here and set them to no text when done -- fabian williams


}

}
}
137 changes: 137 additions & 0 deletions bravosoc/AddSocialContact.designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2fa4a37

Please sign in to comment.