[invitation] Change invitation extension to .sparkle

This commit is contained in:
Hylke Bons 2010-11-21 17:10:48 +00:00
parent 0d91555443
commit 6bc3ec84f8
3 changed files with 6 additions and 1 deletions

View file

@ -20,8 +20,10 @@ using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Threading;
using System.Text.RegularExpressions;
using System.Xml;
namespace SparkleShare {
@ -97,8 +99,10 @@ namespace SparkleShare {
// Handle invitations when the user saves an
// invitation into the SparkleShare folder
if (args.Name.EndsWith (".invitation")) {
if (args.Name.EndsWith (".sparkle")) {
Console.WriteLine ("YYYYYYYYYYYQQ!!!!!!!");
if (OnInvitation != null)
OnInvitation (args.FullPath);

View file

@ -68,6 +68,7 @@ namespace SparkleShare {
SparkleShare.Controller.OnInvitation += delegate (string invitation_file_path) {
Application.Invoke (delegate {
Console.WriteLine ("INVITATION RECEIVED!!!!1");
SparkleInvitation invitation = new SparkleInvitation (invitation_file_path);
invitation.Present ();