I get this error: Unhandled Exception: System.TypeLoadException: Could not load type 'NDesk.DBus.Bus' from assembly 'NDesk.DBus, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f6716e4f9b2ed099'
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
using System; | |
using System.IO; | |
using System.Net; | |
using System.Text; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Runtime.InteropServices; | |
using Gtk; | |
using Evolution; | |
using Camel; | |
using NDesk.DBus; | |
using org.freedesktop; | |
using org.freedesktop.DBus; | |
namespace org.freedesktop | |
{ | |
[Interface ("org.GTG")] | |
public interface GTG : Introspectable, Properties | |
{ | |
void open_task_editor(string tid); | |
} | |
} | |
public class hello { | |
public static IntPtr hello_handle (IntPtr plugin_ptr) | |
{ | |
Evolution.Mail.MenuTargetSelect menu_target_message = (Evolution.Mail.MenuTargetSelect)Marshal.PtrToStructure(plugin_ptr, typeof(Evolution.Mail.MenuTargetSelect)); | |
Camel.MimeMessage message; | |
Camel.Folder folder; | |
folder = menu_target_message.folder; | |
String [] uids = menu_target_message.uids; | |
message = folder.getMessage(uids[0]); | |
String subject = message.subject; | |
Console.WriteLine("Subject: " + subject); | |
Console.WriteLine("URI: " + menu_target_message.uri + " " + uids[0]); | |
Bus bus = Bus.Session; | |
GTG gtg = bus.GetObject<GTG> ("org.GTG", new ObjectPath ("/org/GTG")); | |
gtg.open_task_editor("0@1"); | |
return (IntPtr) 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment