private void FavoriteTextBlock_Drop(object sender, DragEventArgs e)
        {
            TextBlock         txb = sender as TextBlock;
            FavoriteViewModel fvm = txb.DataContext as FavoriteViewModel;

            Excel_instrumentViewModel e_ivm = e.Data.GetData("e_instrument") as Excel_instrumentViewModel;

            fvm.AddInstrument(e_ivm);
        }
        public void loadPosition()
        {
            this.favoriteXml_ = new XmlDocument();

            this.favoriteList_ = new ObservableCollection <FavoriteViewModel>();

            favoriteXml_.Load(bookPath_ + "\\" + "favorite.xml");

            System.Xml.XmlNode favoritePositionNode
                = favoriteXml_["favoritePosition"];

            //this.positionFolderName_ = positionFolderNode["positionFolderName"].InnerText;
            //this.positionFolderCode_ = positionFolderNode["positionFolderCode"].InnerText;

            #region load WholePositionMaster

            this.masterFavoriteViewModel_ = new MasterFavoriteViewModel();

            this.favoriteList_.Add(this.masterFavoriteViewModel_);

            #endregion

            #region unclassifedFavorite Set

            System.Xml.XmlNode unclassifiedFavoriteNode
                = favoritePositionNode["unclassifiedFavorite"];

            FavoriteViewModel unclassifiedFavoriteBook = new FavoriteViewModel();

            unclassifiedFavoriteBook.setFromXml(unclassifiedFavoriteNode);

            this.unClassifiedFavoriteViewModel_ = unclassifiedFavoriteBook;
            this.favoriteList_.Add(unclassifiedFavoriteBook);

            #endregion

            foreach (System.Xml.XmlNode item in favoritePositionNode.SelectNodes("favorite"))
            {
                FavoriteViewModel favoriteBook = new FavoriteViewModel();

                favoriteBook.setFromXml(item);

                this.favoriteList_.Add(favoriteBook);
            }
        }
        private void favoritesListView_MouseUp(object sender, RoutedEventArgs e)
        {
            if (favoritesListView_.SelectedItem == null)
            {
                return; // return if there's no row selected
            }
            FavoriteViewModel fvm = this.favoritesListView_.SelectedItem as FavoriteViewModel;

            //현재 List에 있는 상품들에 대해서 Master를 로드함.
            fvm.loadMasterInformation();

            this.instrumentListListView_.ItemsSource = fvm.InstrumentList_;

            selectedFolder_    = fvm;
            selectedViewModel_ = this.rootFavoriteViewModel_;

            // do something with the Selected row here
        }
        public void loadPosition()
        {
            this.favoriteXml_ = new XmlDocument();

            this.favoriteList_ = new ObservableCollection<FavoriteViewModel>();

            favoriteXml_.Load(bookPath_ +"\\"+ "favorite.xml");

            System.Xml.XmlNode favoritePositionNode
                = favoriteXml_["favoritePosition"];

            //this.positionFolderName_ = positionFolderNode["positionFolderName"].InnerText;
            //this.positionFolderCode_ = positionFolderNode["positionFolderCode"].InnerText;

            #region load WholePositionMaster

            this.masterFavoriteViewModel_ = new MasterFavoriteViewModel();

            this.favoriteList_.Add(this.masterFavoriteViewModel_);

            #endregion

            #region unclassifedFavorite Set

            System.Xml.XmlNode unclassifiedFavoriteNode
                    = favoritePositionNode["unclassifiedFavorite"];

                FavoriteViewModel unclassifiedFavoriteBook = new FavoriteViewModel();

                unclassifiedFavoriteBook.setFromXml(unclassifiedFavoriteNode);

                this.unClassifiedFavoriteViewModel_ = unclassifiedFavoriteBook;
                this.favoriteList_.Add(unclassifiedFavoriteBook);

            #endregion

            foreach (System.Xml.XmlNode item in favoritePositionNode.SelectNodes("favorite"))
            {
                FavoriteViewModel favoriteBook = new FavoriteViewModel();

                favoriteBook.setFromXml(item);

                this.favoriteList_.Add(favoriteBook);
            }

        }