示例#1
0
文件: tk.cs 项目: ArildF/masters
 public void TkMain(TclAppInitProc initProc, string[] argv) {
     TclAppInitProcWrapper initWrapper = new TclAppInitProcWrapper(this, initProc);
     
     unsafe {               
         TkNative.Tk_MainEx(argv.Length, argv, initWrapper.Callback, _interp);
     }
     
     GC.KeepAlive(initWrapper);
     GC.KeepAlive(this);
 }
示例#2
0
        public void TkMain(TclAppInitProc initProc, string[] argv)
        {
            TclAppInitProcWrapper initWrapper = new TclAppInitProcWrapper(this, initProc);

            unsafe {
                TkNative.Tk_MainEx(argv.Length, argv, initWrapper.Callback, _interp);
            }

            GC.KeepAlive(initWrapper);
            GC.KeepAlive(this);
        }
 internal TclAppInitProcWrapper(TclInterp interp, TclAppInitProc proc) {
     _interp = interp;
     _proc = proc;
     unsafe { _callback = new Tcl_AppInitProc(this.CallbackProc); }
 }
示例#4
0
 internal TclAppInitProcWrapper(TclInterp interp, TclAppInitProc proc)
 {
     _interp = interp;
     _proc   = proc;
     unsafe { _callback = new Tcl_AppInitProc(this.CallbackProc); }
 }
示例#5
0
文件: tk.cs 项目: ArildF/masters
 public void TkMain(TclAppInitProc initProc) {
     TkMain(initProc, Environment.GetCommandLineArgs());
 }
示例#6
0
 public void TkMain(TclAppInitProc initProc)
 {
     TkMain(initProc, Environment.GetCommandLineArgs());
 }