示例#1
0
 public CkernelGateway()
 {
     m_isLocal=true;
     edonkeyCore=new CKernel();
     krnGateway=CKernel.InterfaceGateway[0];
     Initialize();
 }
示例#2
0
文件: Main.cs 项目: elnomade/hathi
 public HathiGTK(string[] args)
 {
     Application.Init();
     gxml = new Glade.XML (null, "elephant.glade", "mainwindow", null);
     gxml.Autoconnect (this);
     HathiKernel=new CKernel(); //creates and starts the kernel
     krnGateway=CKernel.InterfaceGateway[0]; //gateway to talk with the kernel
     InitInterface();
     //preferences = new Config(CKernel.DllDirectory, "configInterface.xml", "0.01", "HathiInterface");
     //m_Preferences=krnGateway.GetConfig(); //do I need it?
     mainwindow.Title = "HathiGTK " + CKernel.Version.ToString();
     mainwindow.Show();
     Application.Run();
 }