public void PopulateTreeview(MaintenancePlan maintPlan)
        {
            int db = 0;
            int dateindex = 0;
            treeView1.Nodes.Clear();
                foreach (string dB in maintPlan.DBs())
                {

                    treeView1.Nodes.Add(dB);
                    foreach (DateTime date in maintPlan.GetDates(dB))
                    {
                        treeView1.Nodes[db].Nodes.Add(date.ToString("d"));
                        treeView1.Nodes[db].LastNode.Tag = maintPlan.GetFullBackupFile(dB, date);

                        if (maintPlan.LogBKFolder != null)
                        {
                            foreach (DateTime time in maintPlan.GetLogTimes(dB,date))
                            {
                                treeView1.Nodes[db].Nodes[dateindex].Nodes.Add(time.ToString("hh:mm tt"));
                                treeView1.Nodes[db].Nodes[dateindex].LastNode.Tag = maintPlan.GetLogBackupFile(dB, time);
                            }
                            dateindex++;
                        }

                    }
                    dateindex = 0;
                    db++;
                }
        }