public void AddText(String Text, String TabTitle)
 {
     poshsecframework.Controls.PSTabItem ptitm = new poshsecframework.Controls.PSTabItem();
     ptitm.Text = TabTitle;
     ptitm.AddText(Text);
     frm.AddTabPage(ptitm);
 }
 public PSAlertList(String ScriptName, poshsecframework.Controls.PSTabItem Parent)
 {
     scriptname = ScriptName;
     InitializeComponent();
     Init();
     parent = Parent;
     tablabel = Parent.Text;
 }
 public PSAlertList(String ScriptName, poshsecframework.Controls.PSTabItem Parent)
 {
     scriptname = ScriptName;
     InitializeComponent();
     Init();
     parent   = Parent;
     tablabel = Parent.Text;
 }
 public poshsecframework.Controls.PSAlertList AddAlerts(String TabTitle)
 {
     poshsecframework.Controls.PSTabItem ptitm = new poshsecframework.Controls.PSTabItem();
     ptitm.Text = TabTitle;
     poshsecframework.Controls.PSAlertList rtn = ptitm.CreateAlertTab(scriptname);
     frm.AddTabPage(ptitm);
     return(rtn);
 }
 public void AddObjectGrid(System.Object[] CustomObject, String TabTitle)
 {
     if (frm != null)
     {
         poshsecframework.Controls.PSTabItem ptitm = new poshsecframework.Controls.PSTabItem();
         ptitm.Text = TabTitle;
         ptitm.AddGrid(CustomObject);
         frm.AddTabPage(ptitm);
     }
     else
     {
         throw new Exception("Parent Form is not set in PSTab.");
     }
 }
 public void AddObjectGrid(System.Object[] CustomObject, String TabTitle)
 {
     poshsecframework.Controls.PSTabItem ptitm = new poshsecframework.Controls.PSTabItem();
     ptitm.Text = TabTitle;
     ptitm.AddGrid(CustomObject);
     frm.AddTabPage(ptitm);
 }
 public poshsecframework.Controls.PSAlertList AddAlerts(String TabTitle)
 {
     poshsecframework.Controls.PSTabItem ptitm = new poshsecframework.Controls.PSTabItem();
     ptitm.Text = TabTitle;
     poshsecframework.Controls.PSAlertList rtn = ptitm.CreateAlertTab(scriptname);
     frm.AddTabPage(ptitm);
     return rtn;
 }
 public void AddText(String Text, String TabTitle)
 {
     poshsecframework.Controls.PSTabItem ptitm = new poshsecframework.Controls.PSTabItem();
     ptitm.Text = TabTitle;
     ptitm.AddText(Text);
     frm.AddTabPage(ptitm);
 }
 public void AddObjectGrid(System.Object[] CustomObject, String TabTitle)
 {
     if (frm != null)
     {
         poshsecframework.Controls.PSTabItem ptitm = new poshsecframework.Controls.PSTabItem();
         ptitm.Text = TabTitle;
         ptitm.AddGrid(CustomObject);
         frm.AddTabPage(ptitm);
     }
     else
     {
         throw new Exception("Parent Form is not set in PSTab.");
     }
 }