コード例 #1
0
        private void ElementEntityAdd(object sender, RoutedEventArgs e)
        {
            CElementItem.CElementEntity _element_entity        = ((CElementItem)TV_Containers.SelectedItem).ElementEntityAdd();
            WindowElementEntity         _window_element_entity = new WindowElementEntity(_element_entity); _window_element_entity.Owner = this;

            _window_element_entity.ShowDialog();
        }
コード例 #2
0
 private void LB_Items_OnMouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     CElementItem.CElementEntity       _element_entity      = LB_Items.SelectedItem as CElementItem.CElementEntity;
     CElementItem.CElementEntity.CName _element_entity_name = LB_Items.SelectedItem as CElementItem.CElementEntity.CName;
     if (_element_entity_name != null)
     {
         _element_entity = _element_entity_name.ElementEntity;
     }
     if (_element_entity != null)
     {
         WindowElementEntity _window_element_entity = new WindowElementEntity(_element_entity); _window_element_entity.Owner = this;
         _window_element_entity.ShowDialog();
     }
 }