public MainForm() { InitializeComponent(); if (File.Exists(inipath)) { InitPort(port); } else { PortForm portfrm = new PortForm(); portfrm.ShowDialog(); //MessageBox.Show("deltadvp.ini not found", "Header", MessageBoxButtons.OK, MessageBoxIcon.Error); //string s = Properties.Resources.TextFile.ini; } }
public MainForm() { InitializeComponent(); if (File.Exists(inipath) ) { InitPort(port); } else { PortForm portfrm = new PortForm(); portfrm.ShowDialog(); //MessageBox.Show("deltadvp.ini not found", "Header", MessageBoxButtons.OK, MessageBoxIcon.Error); //string s = Properties.Resources.TextFile.ini; } }
private void comPortToolStripMenuItem_Click(object sender, EventArgs e) { PortForm frm = new PortForm(); frm.Show(); }