public SearchForm(ConfigForm form, string searchplace, List<LatLng> items) { InitializeComponent(); this.configform = form; this.searchplace = searchplace; this.items = items; }
private void MainForm_Shown(object sender, EventArgs e) { if (!File.Exists(filename)) { MessageBox.Show("初期設定を行います。"); ConfigForm configform = new ConfigForm(this); configform.Show(); } }
// オプション→設定 private void ConfigToolStripMenuItem_Click(object sender, EventArgs e) { if (this.config == null) this.config = new ConfigData(); ConfigForm config = new ConfigForm(this); config.Show(); }