Ok. So the situation is:
Parent Class which has an IDictionary of Child Classes. I wish these child classes to be deleted when the parent class is. This works fine. I also wish to be able to delete members of the child class individually, and this does NOT work.
So my Question is; Why can I not delete these child members?
The error ...
From within an html page, I create a child window to perform some filtering (choosing the printer, and what parts to print on the report). In order to show the part selection on the child window, I need to call a GetParts function from the parent window and return the recordset to the child. Here's some code to help:
From the child wind...
I'm writing my first NHibernate application, but I guess this question applies to any ORM framework. My application is a simple bug tracker (devs all understand the problem domain, right?), and I'm wondering how best to model the Project/Ticket relationship in the DAL. A Project has multiple Tickets; a Ticket must be owned by a Project.
...
Please explain the difference between:
ChildForm := TForm.CreateParented(AOwner)
ChildForm := TForm.CreateParentedControl(AOwner)
ChildForm := TForm.Create(AOwner);
ChildForm.ParentWindow := AOwner.Handle
This example may be complicated and convoluted, I'd really just like an overview of when people use the different kinds of Creat...
I have a pair of SQL server tables.
P contains id and name.
PR contains id, interestrate, tiernumber, fromdate, todate and P.id. PR may contain many rows listed per p.id / tier. (tiers are a list of rates a product may have in any given date period.)
eg: Product 1 tier 1 starts 1/1/2008 to 1/1/2009 and has 6 rates shown 1 row per rate...
Hi guys,
I need to implement a multi-parented tree (or digraph) onto SQL Server 2005.
I've read several articles, but most of them uses single-parented trees with a unique root like the following one.
-My PC
-Drive C
-Documents and Settings
-Program Files
-Adobe
-Microsoft
-Folder X
-Drive D
...
I've been stuck trying to figure out why a counter cache on my (parent) BlogPosts table won't update from the (child) Comments table. At first I thought the answer provided in my earlier question might be the solution but something happened after I went to bed last night because when I woke up this morning and restarted my Rails console,...
Im looking to have a common parent function like so
void main (param 1, param 2)
{
<stuff to do>
param1();
print("The function %s was called", param 2);
<more stuff to do>
}
Where param 1 will be the name of the function to be called and param 2 will be some descriptive text. param 2 is easy and I have that solved, bu...
Hy guys!
I am currently working on a little WPF project using MVVM via the Onyx framework.
My currentview architecture is like this:
<DockPanel>
<Menu DockPanel.Dock="Top" Background="#cecece">
<!-- Menu -->
</Menu>
<Grid>
<views:TranslationView x:Name="translationView" />
</Grid>
</DockPanel>
...
Hey there,
Is is possible to display a node without children as a leaf node within the .NET 3.5 TreeView control?
I have a treeview that displays a list of companies as nodes which would each display leaf nodes for documents belonging to that company.
If a company exists without any documents I would still like it to be rendered as pa...
Hi,
I'm developing a sample application so that I can learn the ins and outs of NHibernate. I am struggling with a delete issue. I wish to be able to delete a child record by removing it from its parent’s collection and then saving the parent. I have setup a bidirectional one-to-many relationship and inserting/updating is working great....
Hello, I'll share my cue with everyone!
My Form Base Class is frmExportBase.cs, so any Windows Form that I will create or use have to inherit from it, so this will be fine :
namespace SResocentroAnalytics.Forms
{
public partial class frmExportCobranzaDiaria : frmExportBase
{
public frmExportCobranzaDiaria()
{
...
Hello!
In flex 3 I have a hierarchical data structure. I would like to display the content of it in a tree. My problem is that I have nodes which data calculated from children nodes. How to structure the hierarchy to make automatic changes to those parent nodes, if their children's data changed?
For example:
Every node has a warning f...
Hello guys, sorry if you'll find this question stupid, but I really need help. Here's some info about it.
Database structure
id | parent_id | level | name
1 | 0 | 1 | Home page
2 | 1 | 2 | Child of homepage
3 | 1 | 2 | Another child of homepage
4 | 2 | 3 | Sub child of page id 2...
I'm looking for the simplest way to recursively get all the parent elements from a database using the adjacency list / single table inheritance model (id, parent_id).
My select currently looks like this:
$sql = "SELECT
e.id,
TIME_FORMAT(e.start_time, '%H:%i') AS start_time,
$title AS title,
...
I'm finding it difficult to find a decent example on how to implement a parent-child hierarchy class.
I have a treeView control that I want to convert into a class hierarchy, adding extra data to each node and be able to easely iterate over each parent's nodes using IEnumerable.
public IEnumerable<Node> GetAllChildsFromParent(Node paren...
I need to know is there a way to dispaly parent-child relation in a single datagrid in Windows Forms .Net C#
...
Question: How can I determine all processes in the child's Process Tree to kill them?
I have an application, written in C# that will:
Get a set of data from the server,
Spawn a 3rd party utility to process the data, then
Return the results to the server.
This is working fine. But since a run consumes a lot of CPU and may take as lo...
Hi,
I have the following (broken) code:
$(".old_post").hover(function(){
$(this > ".post_right_nav").show();
post _ right _ nav is a div(containing other divs) that holds some controls for the user to press.
I'd like to only show these controls when the user is hovering over a post.
How can I properly select the child element of ev...
I am using C# 2005 to create a Windows application. I have a MDIForm (frmMainMenu) which contains a Menustrip and a
TabControl. My ChildForm is frmPurchaseEntry. When the user clicks on a particular Menu option a new TabPage is created and
the child form is displayed within the TabPage.
I am using the following code in the MenuClick...