Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spsvb2015branch #1

Merged
merged 7 commits into from Feb 22, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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.