Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from fabianwilliams/spsvb2015branch
Spsvb2015branch
- Loading branch information
Showing
394 changed files
with
3,930,043 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
||
|
||
} | ||
|
||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.