aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Console/CodeTemplate.cs
blob: 4b307051f15f42374e8485c50fce19d36046b017 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System;
using System.Text;
using System.Linq;
using System.Drawing;
using System.Diagnostics;
using System.Windows.Forms;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Tango.MachineStudio.Common.Notifications;
using Tango.MachineStudio.UI.Console;

public void OnExecute(ConsoleManager manager)
{
    manager.InvokeUI(() =>
    {

        var notification = manager.TangoIOC.GetInstance<INotificationProvider>();
        notification.ShowInfo("Hello world!");

    });
}
memcpy(dstPtr, srcPtr, count); } [TargetedPatchingOptOut("Internal method only, inlined across NGen boundaries for performance reasons")] internal static void SetUnmanagedMemory(IntPtr dst, int filler, int count) { memset(dst, filler, count); } // Win32 memory copy function //[DllImport("ntdll.dll")] [DllImport("msvcrt.dll", EntryPoint = "memcpy", CallingConvention = CallingConvention.Cdecl, SetLastError = false)] private static extern unsafe byte* memcpy( byte* dst, byte* src, int count); // Win32 memory set function //[DllImport("ntdll.dll")] //[DllImport("coredll.dll", EntryPoint = "memset", SetLastError = false)] [DllImport("msvcrt.dll", EntryPoint = "memset", CallingConvention = CallingConvention.Cdecl, SetLastError = false)] private static extern void memset( IntPtr dst, int filler, int count); } }