private void ChangeModel(object sender, EventArgs e) { var dialog = new FormChangeModel(sceneView4.Camera); if (DialogResult.OK != dialog.ShowDialog()) { return; } if (null == dialog.SelectedModel) { return; } CurrentDrawable = dialog.SelectedModel; }
private void ChangeModel(object sender, EventArgs e) { var dialog = new FormChangeModel(); if (DialogResult.OK != dialog.ShowDialog()) { return; } if (null == dialog.SelectedModel) { return; } Model = dialog.SelectedModel; }