You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
746 B

3 years ago
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;
}
}
}