private void mnuQueryEdit_Click(object sender, EventArgs e)
        {
            TicketNode node = treeTrac.SelectedNode as TicketNode;

            AddNewTicketQueryForm form = new AddNewTicketQueryForm(this._tracConnect, node.TicketDefinition);

            if (form.ShowDialog() == DialogResult.OK)
            {
                CommonRoot.SaveInstance();

                node.Refresh();
            }
        }
        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();
            }
        }
        private void mnuQueryEdit_Click(object sender, EventArgs e)
        {
            TicketNode node = treeTrac.SelectedNode as TicketNode;

            AddNewTicketQueryForm form = new AddNewTicketQueryForm(this._tracConnect,node.TicketDefinition);

            if (form.ShowDialog() == DialogResult.OK)
            {
                CommonRoot.SaveInstance();

                node.Refresh();
            }
        }
        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();
            }
        }