using System; using System.Collections.Generic; using System.Text; using System.Data; namespace PDAForm.Comm { public class MyCommand { private DataSet dsCommand; private DataTable dtCommand; public MyCommand(string Cmd, string Pars) { dsCommand = new DataSet(); dtCommand = new DataTable("Command"); dtCommand.Columns.Add("Cmd"); dtCommand.Columns.Add("Pars"); DataRow dr = dtCommand.NewRow(); dr["Cmd"] = Cmd; dr["Pars"] = Pars; dtCommand.Rows.Add(dr); dsCommand.Tables.Add(dtCommand); } public DataSet GetCommand() { return dsCommand; } } }