コード例 #1
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            RedirectConsole();
            LoadContainers();
            UnmanagedUtility.SendMessage(txtJ2534Input.Handle, UnmanagedUtility.EM_SETCUEBANNER, 0, "J2534 Console : Enter hex values (01 23 45 57) and press enter to send a raw J2534 command");

            SetDisconnectedState(false);
        }
コード例 #2
0
        public static void DumpExportsToConsole(string modulePath)
        {
            List <string> exports = UnmanagedUtility.GetExports(modulePath);

            Console.WriteLine($"Retrieving exports for {modulePath}");
            foreach (string s in exports)
            {
                Console.WriteLine($"{modulePath}: {s}");
            }
            Console.WriteLine($"End of {modulePath} exports.");
        }
コード例 #3
0
        private void InitializeTree()
        {
            if (treeImages is null)
            {
                treeImages = new ImageList();
                treeImages.Images.Add(Resources.blank); // 0
                treeImages.Images.Add(Resources.box);
                treeImages.Images.Add(Resources.brick);
                treeImages.Images.Add(Resources.cog);
                treeImages.Images.Add(Resources.house);
                treeImages.Images.Add(Resources.connect);
                treeImages.Images.Add(Resources.information); // 6

                treeImages.Images.Add(Resources.bullet_go);   // 7
                treeImages.Images.Add(Resources.bullet_star);

                treeImages.Images.Add(Resources.bullet_black); // 9
                treeImages.Images.Add(Resources.bullet_blue);
                treeImages.Images.Add(Resources.bullet_green);
                treeImages.Images.Add(Resources.bullet_orange);
                treeImages.Images.Add(Resources.bullet_pink);
                treeImages.Images.Add(Resources.bullet_purple);
                treeImages.Images.Add(Resources.bullet_red);
                treeImages.Images.Add(Resources.bullet_white);
                treeImages.Images.Add(Resources.bullet_yellow);           // 17

                treeImages.Images.Add(Resources.computer_go);             // 18
                treeImages.Images.Add(Resources.lock_edit);               // 19
                treeImages.Images.Add(Resources.key);                     // 20
                treeImages.Images.Add(Resources.application_xp_terminal); // 21
                treeImages.Images.Add(Resources.page_white_edit);         // 22

                treeImages.Images.Add(Resources.asterisk_orange);         // 23
                treeImages.Images.Add(Resources.folder);                  // 24
                treeImages.Images.Add(Resources.accept);                  // 25
                treeImages.Images.Add(Resources.report);                  // 26

                tvMain.ImageList = treeImages;

                UnmanagedUtility.SendMessage(tvMain.Handle, UnmanagedUtility.TVM_SETEXTENDEDSTYLE, (IntPtr)UnmanagedUtility.TVS_EX_DOUBLEBUFFER, (IntPtr)UnmanagedUtility.TVS_EX_DOUBLEBUFFER);
            }
        }
コード例 #4
0
 private void GenericPicker_Load(object sender, EventArgs e)
 {
     UnmanagedUtility.SendMessage(txtFilter.Handle, UnmanagedUtility.EM_SETCUEBANNER, 0, "Type here to filter results");
     PresentRows();
 }
コード例 #5
0
 private void PickDiagForm_Load(object sender, EventArgs e)
 {
     UnmanagedUtility.SendMessage(txtFilter.Handle, UnmanagedUtility.EM_SETCUEBANNER, 0, "Search for a diagnostic service..");
     EnableDoubleBuffer(dgvMain, true);
     PresentDiagServices();
 }