public static BillBoardSelector create(String img_name) { BillBoardSelector bbs = new BillBoardSelector(); bbs.img_file_name = img_name; bbs.img = Bitmap.FromFile(img_name); bbs.pictureBox1.Size = bbs.img.Size; return(bbs); }
private void ビルボード選択ToolStripMenuItem_Click(object sender, EventArgs e) { OpenFileDialog ofd = new OpenFileDialog(); if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK) { String file_name = ofd.FileName; bbs = BillBoardSelector.create(file_name); bbs.Show(this); } }