BlueSky.CommandExecutionHelper.DatasetRefreshAndPrintTitle C# (CSharp) Method

DatasetRefreshAndPrintTitle() public method

public DatasetRefreshAndPrintTitle ( string title ) : void
title string
return void
        public void DatasetRefreshAndPrintTitle(string title) //This can be called to refresh Grids from Syn Editor
        {
            RefreshGrids();
            if (window != null)
                window.Template = null; //19Mar2013 release the XAML object. ie obj is no more child of window.

            if (cmd != null && title != null)//16May2013
                SendToOutputWindow(title, cmd.CommandSyntax);
            return;
        }

Usage Example

 //was private
 public void RefreshDatagrids()//16May2013
 {
     string stmt = "Refresh Grids";
     UAMenuCommand uamc = new UAMenuCommand();
     uamc.commandformat = stmt;
     uamc.bskycommand = stmt;
     uamc.commandtype = stmt;
     CommandExecutionHelper auacb = new CommandExecutionHelper();
     auacb.DatasetRefreshAndPrintTitle("Refresh Data");
 }