private void button4_Click(object sender, EventArgs e) { ImageForm MyImage = new ImageForm(); MyImage.findline(MyImage.getRGBData()); MyImage.Show();// 顯示秀圖照片 }
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { var senderGrid = (DataGridView)sender; if (senderGrid.Columns[e.ColumnIndex] is DataGridViewButtonColumn && e.RowIndex >= 0) { UpdateForm updateForm = new UpdateForm(controller, e.RowIndex); updateForm.Show(); } else if (senderGrid.Columns[e.ColumnIndex].CellType == typeof(DataGridViewImageCell)) { ImageForm imageForm = new ImageForm(controller, senderGrid.Columns[e.ColumnIndex].Name, e.RowIndex); imageForm.Show(); } }
private void button1_Click(object sender, EventArgs e) { ImageForm MyImage = new ImageForm(); // 建立秀圖物件 MyImage.Show(); // 顯示秀圖照片 }