mirror of
https://github.com/zhaopeiym/IoTClient
synced 2025-10-26 22:15:44 +08:00
40 lines
969 B
C#
40 lines
969 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace IoTClient.Demo
|
|
{
|
|
public partial class IndexForm : Form
|
|
{
|
|
public IndexForm()
|
|
{
|
|
InitializeComponent();
|
|
StartPosition = FormStartPosition.CenterScreen;
|
|
}
|
|
|
|
private void button1_Click(object sender, EventArgs e)
|
|
{
|
|
Hide();
|
|
var form = new ModBusTcpForm();
|
|
form.StartPosition = FormStartPosition.CenterScreen;
|
|
form.ShowDialog();
|
|
Show();
|
|
}
|
|
|
|
private void button2_Click(object sender, EventArgs e)
|
|
{
|
|
Hide();
|
|
var form = new SiemensForm();
|
|
form.StartPosition = FormStartPosition.CenterScreen;
|
|
form.ShowDialog();
|
|
Show();
|
|
}
|
|
}
|
|
}
|