private void btnNewTicketQuery_Click(object sender, EventArgs e) { TicketsNode node = treeTrac.SelectedNode as TicketsNode; AddNewTicketQueryForm form = new AddNewTicketQueryForm(this._tracConnect); if (form.ShowDialog() == DialogResult.OK) { TicketQueryDefinition ticketQueryDef = form.TicketDefinition; node.ServerDetails.TicketQueries.Add(ticketQueryDef); CommonRoot.SaveInstance(); node.Refresh(); } }
public ServerNode(ServerDetails serverDetails) : base(serverDetails.Server, 1, 1) { this.ServerDetails = serverDetails; try { nodeWikiPages = new WikiPagesNode(serverDetails); nodeTickets = new TicketsNode(serverDetails); nodeAttributes = new AttributesNode(serverDetails); this.Nodes.Add(nodeWikiPages); this.Nodes.Add(nodeTickets); this.Nodes.Add(nodeAttributes); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
public ServerNode(ServerDetails serverDetails) : base(serverDetails.Server, 1, 1) { this.ServerDetails = serverDetails; try { nodeWikiPages = new WikiPagesNode(serverDetails); nodeTickets = new TicketsNode(serverDetails); nodeAttributes = new AttributesNode(serverDetails); this.Nodes.Add(nodeWikiPages); this.Nodes.Add(nodeTickets); this.Nodes.Add(nodeAttributes); } catch (Exception ex) { MessageBox.Show(ex.Message); } }