You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
1.6 KiB
C#
74 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
|
|
namespace FrmPrint
|
|
{
|
|
public partial class Form2 : Form
|
|
{
|
|
public Form2()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void button1_Click(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void button2_Click(object sender, EventArgs e)
|
|
{
|
|
string CS = "";
|
|
if (!CS.Equals(string.Empty))
|
|
{
|
|
|
|
}
|
|
else
|
|
{
|
|
|
|
}
|
|
|
|
|
|
// string shift = "A";
|
|
// foreach (ENShift i in Enum.GetValues(typeof(ENShift)))
|
|
// {
|
|
// if (i.ToString() == shift)
|
|
// {
|
|
// string name = ((int)i).ToString();
|
|
//Console.WriteLine(name);
|
|
// }
|
|
//}
|
|
//foreach (string str in Enum.GetNames(typeof(ENShift)))
|
|
// Console.WriteLine(str);
|
|
//var daihao = (ENShift)shift;
|
|
message();
|
|
}
|
|
|
|
private void message()
|
|
{
|
|
string message = "757 N5WK";
|
|
byte[] abc=Encoding.ASCII.GetBytes(message);
|
|
foreach (var b in abc)
|
|
{
|
|
Console.WriteLine(b);
|
|
}
|
|
}
|
|
|
|
private void button1_Click_1(object sender, EventArgs e)
|
|
{
|
|
message();
|
|
}
|
|
}
|
|
public enum ENShift
|
|
{
|
|
A = 7,
|
|
B = 8,
|
|
C = 9,
|
|
}
|
|
}
|