Esempio n. 1
0
 private void MoveToAcceptPage()
 {
     invitation = new Invitation();
        try
        {
     invitation.Load(inviteFile);
        }
        catch(Exception e)
        {
     Console.WriteLine("Unable to load file: {0}", inviteFile);
     MessageDialog md = new MessageDialog(win,
        DialogFlags.DestroyWithParent | DialogFlags.Modal,
        MessageType.Error,
        ButtonsType.Close,
        "Unable to open file or file is not an iFolder Invitation:\n" + inviteFile);
     md.Run();
     md.Hide();
     MoveToLoadPage();
     return;
        }
        WizardBox.PackEnd(acceptPage);
        BackButton.Sensitive = true;
        if(acceptPathEntry.Text.Length > 0)
     ForwardButton.Sensitive = true;
        else
     ForwardButton.Sensitive = false;
        page = IW_ACCEPT_PAGE;
        acceptiFolderName.Text = invitation.CollectionName;
        acceptSharerName.Text = invitation.FromName;
        acceptSharerEmail.Text = invitation.FromEmail;
        acceptRights.Text = invitation.CollectionRights;
        if(acceptPathEntry.Text.Length < 1)
     acceptPathEntry.Text = Invitation.DefaultRootPath;
 }