private void FrmMainWindow_Load(object sender, EventArgs e) { if (Program.ThisModuleName == "" || Program.ModName_lcns == "") { MessageBox.Show("Please set module name in program.cs file."); this.Close(); } this.Text = Program.ThisModuleName; FrmOpenCompany F = new FrmOpenCompany(); F.ShowDialog(); }
private void openToolStripMenuItem_Click(object sender, EventArgs e) { FrmOpenCompany f = new FrmOpenCompany(); f.ShowDialog(); }