/// <summary>
        /// Open file using open dialog.
        /// </summary>
        public void OpeFile()
        {
            OpenFileDialog dialog = new OpenFileDialog();

            dialog.Filter = "Binary file (.bin)|*.bin";

            bool?result = dialog.ShowDialog();

            if (result == true)
            {
                string filename = dialog.FileName;
                try
                {
                    _folder = _serializeClient.DeserializeFolderModel(filename);
                    var treeItem = Mapper.Map <TreeViewItemModel>(_folder);
                    Filename = filename;

                    TreeViewItemModels.Clear();
                    TreeViewItemModels.Add(treeItem);
                }
                catch (Exception ex)
                {
                    _logger.Error(ex);
                }
            }
        }
        private void HandleDeserialize()
        {
            var dialog = new FolderBrowserDialog();

            try
            {
                DialogResult result = dialog.ShowDialog();
                if (result == DialogResult.OK)
                {
                    var rootTreeItem = TreeViewItemModels.First();
                    var selectedItem = TreeViewItemModel.GetSelectedItem(rootTreeItem);

                    if (selectedItem != null)
                    {
                        var folder = FolderModel.GetFolderModelByGuid(_folder, selectedItem.Guid);
                        _serializeClient.SaveFolder(folder, dialog.SelectedPath);
                    }
                }
            }
            catch (Exception ex)
            {
                _logger.Error(ex);
            }
        }