public static BlocksOfflineFolder SelectBlocksOfflineFolder(string FileAndProjectInternalFolder)
 {
     SelectProjectPartForm myFrm = new SelectProjectPartForm(FileAndProjectInternalFolder);
     myFrm.SelectPart = SelectPartType.BlocksOfflineFolder;
     myFrm.ShowDialog();
     return (BlocksOfflineFolder)myFrm.retVal;
 }
 public static S7FunctionBlock SelectFunctionBlock(string FileAndProjectInternalFolder)
 {
     SelectProjectPartForm myFrm = new SelectProjectPartForm(FileAndProjectInternalFolder);
     myFrm.SelectPart = SelectPartType.DataBlock;
     myFrm.ShowDialog();
     return (S7FunctionBlock)myFrm.retVal;
 }
 public static ISymbolTable SelectSymbolTable(string FileAndProjectInternalFolder)
 {
     SelectProjectPartForm myFrm = new SelectProjectPartForm(FileAndProjectInternalFolder);
     myFrm.SelectPart = SelectPartType.SymbolTable;
     myFrm.ShowDialog();
     return (ISymbolTable)myFrm.retVal;
 }
 public static ISymbolTable SelectSymbolTable(string FileAndProjectInternalFolder, bool hideOpenProjectButton = true)
 {
     SelectProjectPartForm myFrm = new SelectProjectPartForm(FileAndProjectInternalFolder, hideOpenProjectButton);
     myFrm.SelectPart = SelectPartType.SymbolTable;
     myFrm.ShowDialog();
     return (ISymbolTable)myFrm.retVal;
 }
 public static List<S7DataBlock> SelectDataBlocks(string FileAndProjectInternalFolder, bool hideOpenProjectButton = true)
 {
     SelectProjectPartForm myFrm = new SelectProjectPartForm(FileAndProjectInternalFolder, hideOpenProjectButton);
     myFrm.SelectPart = SelectPartType.DataBlocks;
     myFrm.ShowDialog();
     return (List<S7DataBlock>)myFrm.retVal;
 }
 public static S7ProgrammFolder SelectS7ProgrammFolder(string FileAndProjectInternalFolder)
 {
     SelectProjectPartForm myFrm = new SelectProjectPartForm(FileAndProjectInternalFolder);
     myFrm.SelectPart = SelectPartType.S7ProgrammFolder;
     myFrm.ShowDialog();
     return (S7ProgrammFolder)myFrm.retVal;
 }
 public static IRootProgrammFolder SelectRootProgrammFolder(string FileAndProjectInternalFolder, bool hideOpenProjectButton = true)
 {
     SelectProjectPartForm myFrm = new SelectProjectPartForm(FileAndProjectInternalFolder, hideOpenProjectButton);
     myFrm.SelectPart = SelectPartType.RootProgrammFolder;
     myFrm.ShowDialog();
     return (IRootProgrammFolder)myFrm.retVal;
 }
        public static S7VATBlock SelectVAT(string FileAndProjectInternalFolder, bool hideOpenProjectButton = true)
        {
            SelectProjectPartForm myFrm = new SelectProjectPartForm(FileAndProjectInternalFolder, hideOpenProjectButton);

            myFrm.SelectPart = SelectPartType.VariableTable;
            myFrm.ShowDialog();
            return((S7VATBlock)myFrm.retVal);
        }
        public static object SelectVATorSymbolTable(string FileAndProjectInternalFolder)
        {
            SelectProjectPartForm myFrm = new SelectProjectPartForm(FileAndProjectInternalFolder);

            myFrm.SelectPart = SelectPartType.VariableTableOrSymbolTable;
            myFrm.ShowDialog();
            return(myFrm.retVal);
        }
        public static List <S7DataBlock> SelectDataBlocks(string FileAndProjectInternalFolder, bool hideOpenProjectButton = true)
        {
            SelectProjectPartForm myFrm = new SelectProjectPartForm(FileAndProjectInternalFolder, hideOpenProjectButton);

            myFrm.SelectPart = SelectPartType.DataBlocks;
            myFrm.ShowDialog();
            return((List <S7DataBlock>)myFrm.retVal);
        }
        public static S7FunctionBlock SelectFunctionBlock(string FileAndProjectInternalFolder, bool hideOpenProjectButton = true)
        {
            SelectProjectPartForm myFrm = new SelectProjectPartForm(FileAndProjectInternalFolder, hideOpenProjectButton);

            myFrm.SelectPart = SelectPartType.DataBlock;
            myFrm.ShowDialog();
            return((S7FunctionBlock)myFrm.retVal);
        }
        public static S7ProgrammFolder SelectS7ProgrammFolder(string FileAndProjectInternalFolder, bool hideOpenProjectButton = true)
        {
            SelectProjectPartForm myFrm = new SelectProjectPartForm(FileAndProjectInternalFolder, hideOpenProjectButton);

            myFrm.SelectPart = SelectPartType.S7ProgrammFolder;
            myFrm.ShowDialog();
            return((S7ProgrammFolder)myFrm.retVal);
        }
        public static ISymbolTable SelectSymbolTable(string FileAndProjectInternalFolder, bool hideOpenProjectButton = true)
        {
            SelectProjectPartForm myFrm = new SelectProjectPartForm(FileAndProjectInternalFolder, hideOpenProjectButton);

            myFrm.SelectPart = SelectPartType.SymbolTable;
            myFrm.ShowDialog();
            return((ISymbolTable)myFrm.retVal);
        }
        public static S7DataBlock SelectDataBlock(string FileAndProjectInternalFolder)
        {
            SelectProjectPartForm myFrm = new SelectProjectPartForm(FileAndProjectInternalFolder);

            myFrm.SelectPart = SelectPartType.DataBlock;
            myFrm.ShowDialog();
            return((S7DataBlock)myFrm.retVal);
        }
        public static ISymbolTable SelectSymbolTable(string FileAndProjectInternalFolder)
        {
            SelectProjectPartForm myFrm = new SelectProjectPartForm(FileAndProjectInternalFolder);

            myFrm.SelectPart = SelectPartType.SymbolTable;
            myFrm.ShowDialog();
            return((ISymbolTable)myFrm.retVal);
        }
        public static BlocksOfflineFolder SelectBlocksOfflineFolder(string FileAndProjectInternalFolder)
        {
            SelectProjectPartForm myFrm = new SelectProjectPartForm(FileAndProjectInternalFolder);

            myFrm.SelectPart = SelectPartType.BlocksOfflineFolder;
            myFrm.ShowDialog();
            return((BlocksOfflineFolder)myFrm.retVal);
        }
 //This selects a Tag From a Step 7 Project
 public static PLCTag SelectTAG(string FileAndProjectInternalFolder)
 {
     SelectProjectPartForm myFrm = new SelectProjectPartForm(FileAndProjectInternalFolder);
     myFrm.SelectPart = SelectPartType.Tag;
     myFrm.ShowDialog();
     PLCTag retVal = (PLCTag) myFrm.retVal;
     myFrm.Close();
     myFrm.Dispose();
     return retVal;
 }
        //This selects a Tag From a Step 7 Project
        public static PLCTag SelectTAG(string FileAndProjectInternalFolder, bool hideOpenProjectButton = true)
        {
            SelectProjectPartForm myFrm = new SelectProjectPartForm(FileAndProjectInternalFolder, hideOpenProjectButton);

            myFrm.SelectPart = SelectPartType.Tag;
            myFrm.ShowDialog();
            PLCTag retVal = (PLCTag)myFrm.retVal;

            myFrm.Close();
            myFrm.Dispose();
            return(retVal);
        }
 public static S7VATBlock SelectVAT(string FileAndProjectInternalFolder)
 {
     SelectProjectPartForm myFrm = new SelectProjectPartForm(FileAndProjectInternalFolder);
     myFrm.SelectPart = SelectPartType.VariableTable;
     myFrm.ShowDialog();
     return (S7VATBlock)myFrm.retVal;
 }
 public static object SelectVATorSymbolTable(string FileAndProjectInternalFolder)
 {
     SelectProjectPartForm myFrm = new SelectProjectPartForm(FileAndProjectInternalFolder);
     myFrm.SelectPart = SelectPartType.VariableTableOrSymbolTable;
     myFrm.ShowDialog();
     return myFrm.retVal;
 }