iSpyApplication.MainForm.LoadObjectList C# (CSharp) Method

LoadObjectList() private method

private LoadObjectList ( string fileName ) : void
fileName string
return void
        private void LoadObjectList(string fileName)
        {
            if (_cameras != null && (_cameras.Count > 0 || _microphones.Count > 0 || _floorplans.Count > 0))
            {
                switch (
                    MessageBox.Show(this, LocRm.GetString("SaveObjectsFirst"), LocRm.GetString("Confirm"),
                                    MessageBoxButtons.YesNoCancel))
                {
                    case DialogResult.Yes:
                        SaveObjectList();
                        break;
                    case DialogResult.No:
                        break;
                    case DialogResult.Cancel:
                        return;
                }
            }
            _houseKeepingTimer.Stop();
            _tsslStats.Text = LocRm.GetString("Loading");
            Application.DoEvents();
            RemoveObjects();
            flowPreview.Loading = true;
            LoadObjects(fileName);
            RenderObjects();
            Application.DoEvents();
            LayoutPanel.NeedsRedraw = true;
            try
            {
                _houseKeepingTimer.Start();
            }
            catch (Exception)
            {
                // ignored
            }

            if (RemoteCommands.Any(p => p.inwindow))
            {
                ShowCommandButtonWindow();
            }
        }
MainForm