private void buttonNew_Click(object sender, EventArgs e) { var newTube = new NewTube(); var newTubePresenter = new NewTubePresenter(newTube); newTube.ShowDialog(); }
private void buttonEdit_Click(object sender, EventArgs e) { bool isEditView = true; var newTubeEdit = new NewTube(isEditView); var newTubeEditPresenter = new NewTubePresenter(newTubeEdit, (DtoTube)gridView1.GetFocusedRow()); newTubeEdit.Show(); }