public ObjectSaveAsDialog(IStorageManager storageManager)
        {
            m_StorageManager = storageManager;
            m_Dlg            = new ModalDialog();

            m_Dlg.MinHeight     = 200;
            m_Dlg.MinWidth      = 300;
            m_Dlg.Height        = 400;
            m_Dlg.Width         = 500;
            m_Dlg.Caption       = Localization.SaveAsDialog_Caption;
            m_Dlg.DialogOk     += new EventHandler <DialogResultArgs>(Dlg_DialogOk);
            m_Dlg.DialogClosed += new EventHandler <DialogResultArgs>(m_Dlg_DialogClosed);

            Grid LayoutRoot = new Grid();

            LayoutRoot.ColumnDefinitions.Add(new ColumnDefinition());
            LayoutRoot.ColumnDefinitions.Add(new ColumnDefinition());

            m_List                       = new ObjectDescriptionListControl();
            m_List.Margin                = new Thickness(0, 0, 5, 0);
            m_List.SelectionChanged     += new EventHandler <SelectionChangedEventArgs <ObjectStorageFileDescription> >(m_List_SelectionChanged);
            m_List.ObjectSelected       += new EventHandler <CustomEventArgs <ObjectStorageFileDescription> >(m_List_ObjectSelected);
            m_List.DeleteButtonClick    += new EventHandler <CustomEventArgs <ObjectStorageFileDescription> >(m_List_DeleteButtonClick);
            m_List.DeleteAllButtonClick += new EventHandler <CustomEventArgs <ObjectStorageFileDescription> >(m_List_DeleteAllButtonClick);
            LayoutRoot.Children.Add(m_List);

            RanetGridSplitter splitter_Vert = new RanetGridSplitter();

            splitter_Vert.IsTabStop = false;
            LayoutRoot.Children.Add(splitter_Vert);
            Grid.SetColumn(splitter_Vert, 0);
            splitter_Vert.Background          = new SolidColorBrush(Colors.Transparent);
            splitter_Vert.HorizontalAlignment = HorizontalAlignment.Right;
            splitter_Vert.VerticalAlignment   = VerticalAlignment.Stretch;

            m_Description = new ObjectDescriptionControl()
            {
                Margin = new Thickness(1, 0, 0, 0)
            };
            m_Description.EndEdit += new EventHandler(m_Description_EndEdit);
            LayoutRoot.Children.Add(m_Description);
            Grid.SetColumn(m_Description, 1);

            m_Dlg.Content = LayoutRoot;

            if (m_StorageManager != null)
            {
                m_StorageManager.InvokeCompleted -= new EventHandler <DataLoaderEventArgs>(m_StorageManager_ActionCompleted);
                m_StorageManager.InvokeCompleted += new EventHandler <DataLoaderEventArgs>(m_StorageManager_ActionCompleted);
            }
        }
        public ObjectLoadDialog(IStorageManager storageManager)
        {
            m_StorageManager = storageManager;
            m_Dlg = new ModalDialog();

            m_Dlg.MinHeight = 200;
            m_Dlg.MinWidth = 300;
            m_Dlg.Height = 400;
            m_Dlg.Width = 500;
            m_Dlg.Caption = Localization.LoadDialog_Caption;
            m_Dlg.DialogOk += new EventHandler<DialogResultArgs>(Dlg_DialogOk);

            Grid LayoutRoot = new Grid();
            LayoutRoot.ColumnDefinitions.Add(new ColumnDefinition());
            LayoutRoot.ColumnDefinitions.Add(new ColumnDefinition());

            m_List = new ObjectDescriptionListControl();
            m_List.Margin = new Thickness(0, 0, 5, 0);
            m_List.SelectionChanged += new EventHandler<SelectionChangedEventArgs<ObjectStorageFileDescription>>(m_List_SelectionChanged);
            m_List.ObjectSelected += new EventHandler<CustomEventArgs<ObjectStorageFileDescription>>(m_List_ObjectSelected);
            m_List.DeleteButtonClick += new EventHandler<CustomEventArgs<ObjectStorageFileDescription>>(m_List_DeleteButtonClick);
            m_List.DeleteAllButtonClick += new EventHandler<CustomEventArgs<ObjectStorageFileDescription>>(m_List_DeleteAllButtonClick);
            LayoutRoot.Children.Add(m_List);

            RanetGridSplitter splitter_Vert = new RanetGridSplitter();
            splitter_Vert.IsTabStop = false;
            LayoutRoot.Children.Add(splitter_Vert);
            Grid.SetColumn(splitter_Vert, 0);
            splitter_Vert.Background = new SolidColorBrush(Colors.Transparent);
            splitter_Vert.HorizontalAlignment = HorizontalAlignment.Right;
            splitter_Vert.VerticalAlignment = VerticalAlignment.Stretch;

            m_Description = new ObjectDescriptionControl() { Margin = new Thickness(1, 0, 0, 0) };
            m_Description.IsReadonly = true;
            LayoutRoot.Children.Add(m_Description);
            Grid.SetColumn(m_Description, 1);

            m_Dlg.Content = LayoutRoot;

            if (m_StorageManager != null)
            {
                m_StorageManager.InvokeCompleted -= new EventHandler<DataLoaderEventArgs>(m_StorageManager_ActionCompleted);
                m_StorageManager.InvokeCompleted += new EventHandler<DataLoaderEventArgs>(m_StorageManager_ActionCompleted);
            }
        }