/// <summary>
        /// Check if Size of Emulator windows match with the loaded/pre-defined windows size
        /// Resize window if it doesnt match the pre-defined sizes
        /// </summary>
        /// <param name="emulator"></param>
        public static void checkEmulatorSize(IntPtr emulator)
        {
            // Get window parameters
            WinAPI.RECT rect = new WinAPI.RECT();
            WinAPI.GetWindowRect(emulator, out rect);

            // Check if match and resize if necessary
            if (rect.Width != GlobalSettings.General.EmulatorWidth || rect.Height != GlobalSettings.General.EmulatorWidth)
            {
                WinAPI.MoveWindow(emulator, rect.X, rect.Y, GlobalSettings.General.EmulatorWidth, GlobalSettings.General.EmulatorHeight, true);
                System.Threading.Thread.Sleep(100);
            }
        }
 /// <summary>
 /// Get Infos from Table to set NoteWindow appearance into the center of the table
 /// </summary>
 /// <param name="table"></param>
 private void setAppearanceLocation(string table)
 {
     // retrieve needed table from sessions list
     foreach (KeyValuePair <IntPtr, TableData> kvp in TableHandler.tableSessions)
     {
         TableData data = kvp.Value;
         if (data.tablename.Equals(table))
         {
             IntPtr      tableHandle = kvp.Key;
             WinAPI.RECT rect        = new WinAPI.RECT();
             WinAPI.GetWindowRect(tableHandle, out rect);
             int a = rect.Width / 4;
             int b = rect.Height / 3;
             WinAPI.MoveWindow(this.Handle, rect.X + a, rect.Y + b, this.Width, this.Height, true);
             break;
         }
     }
 }