/// <summary>
        /// Method for removing meter
        /// </summary>
        /// <param name="device">
        /// Meter to remove
        /// </param>
        public void RemoveDevice(ModbusMeterBase device)
        {
            //Stopping meter if started
            if (device.IsRunning)
            {
                device.Stop();
            }

            AllMBDevices.Remove(device);
            device.MBDeviceSettingsChanged -= OnDeviceSettingsChanged;
            SaveToXMLFile();
        }
 /// <summary>
 /// Method for stopping meter
 /// </summary>
 /// <param name="meter"></param>
 public void StopMeter(ModbusMeterBase meter)
 {
     meter.Stop();
 }