private void RemoveDevicesUC_Remove_btn_Click(object sender, EventArgs e)
        {
            //Do all the calls for removing selected devices based on selected items in DeviceList_lbl.
            //DeviceList_lb.SelectedItems

            //GetCurrentDeviceNameList_GUI(char[] path);

            //Calculate namesToRemove.
            ListBox.SelectedObjectCollection selectedNames = DeviceList_lb.SelectedItems;
            //foreach (string x in selectedNames)
            //{
            //    MessageBox.Show(x);
            //}

            string[] namesToRemove       = SOCtoStringArray(selectedNames);
            string   namesToRemoveString = ELM_GUI.stringArrayToString(namesToRemove);

            //Calculate output path.
            string outputPath = "C:\\Users\\Mehdy Faik\\AppData\\Roaming\\SPB_16.6\\eagle\\Library_Holder\\General_Passives_Test1.lbr";

            //Call.
            IntPtr val_PTR = ELM_GUI.RemoveDevices_GUI(ELM_GUI.stringToCharArray(ELM_GUI.CurrentSession.inputPath),
                                                       ELM_GUI.stringToCharArray(namesToRemoveString),
                                                       ELM_GUI.stringToCharArray(ELM_GUI.CurrentSession.outputPath)
                                                       );

            //Interpret.
            ELM_GUI.CurrentSession.ProcessIntPtrToStringArray(val_PTR);

            //Update namelist in device box.
            updateDeviceList();
        }