internal void DoCheckIn() { waitingCheckIn = true; View.checkIn1.pnlShout.Enabled = false; View.tabStrip1.Enabled = false; Cursor.Current = Cursors.WaitCursor; Cursor.Show(); bool?twitter = null; bool?facebook = null; if (View.checkIn1.chkTwitter.CheckState != CheckState.Indeterminate) { twitter = View.checkIn1.chkTwitter.CheckState == CheckState.Checked; } if (View.checkIn1.chkFacebook.CheckState != CheckState.Indeterminate) { facebook = View.checkIn1.chkFacebook.CheckState == CheckState.Checked; } checkInResult = null; WaitThread.Reset(); if (!Program.Location.WorldPoint.IsEmpty && Program.Location.FixType == RisingMobility.Mobile.Location.FixType.Gps) { Service.CheckIn(Venue, View.checkIn1.txtShout.Text, View.checkIn1.chkTellFriends.Checked, facebook, twitter, Program.Location.WorldPoint.Latitude, Program.Location.WorldPoint.Longitude, Program.Location.WorldPoint.Altitude, Program.Location.WorldPoint.HorizontalDistance); } else { Service.CheckIn(Venue, View.checkIn1.txtShout.Text, View.checkIn1.chkTellFriends.Checked, facebook, twitter); } RightSoftButtonText = "&Cancel"; }
void Service_CheckInResult(object serder, MySquare.FourSquare.CheckInEventArgs e) { waitingCheckIn = false; checkInResult = e; CheckInResult(); }
void Service_CheckInResult(object serder, MySquare.FourSquare.CheckInEventArgs e) { checkInResult = e; CheckInResult(); }