public void Editing(object sender, ContextMenuClickedEventArgs <CustomVectorField> e) { CustomVectorField vf = e.ContextObject as CustomVectorField; CreateVF.Arguments a = new CreateVF.Arguments(); using (ITransaction txn = DataManager.NewTransaction()) { txn.Lock(vf); a.AzField = vf.Azimutfieldic; a.HeiField = vf.Heigtfieldic; a.Step = (int)vf.gridStep; a.VectorField = vf; CreateVFUI wnd = new CreateVFUI(wrapper.Workstep as CreateVF, a, null as WorkflowContext); Form das = new Form(); das.Icon = Icon.FromHandle(PetrelImages.Modules.GetHicon()); das.Text = "CreateVF"; das.Width = 550; das.Height = 256; wnd.Parent = das; wnd.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); das.Show(); txn.Commit(); } }
public void Editing(object sender, ContextMenuClickedEventArgs<CustomVectorField> e) { CustomVectorField vf = e.ContextObject as CustomVectorField; CreateVF.Arguments a = new CreateVF.Arguments(); using (ITransaction txn = DataManager.NewTransaction()) { txn.Lock(vf); a.AzField = vf.Azimutfieldic; a.HeiField = vf.Heigtfieldic; a.Step = (int)vf.gridStep; a.VectorField = vf; CreateVFUI wnd = new CreateVFUI(wrapper.Workstep as CreateVF, a, null as WorkflowContext); Form das = new Form(); das.Icon = Icon.FromHandle(PetrelImages.Modules.GetHicon()); das.Text = "CreateVF"; das.Width = 550; das.Height = 256; wnd.Parent = das; wnd.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); das.Show(); txn.Commit(); } }
private void callback(object sender, ContextMenuClickedEventArgs <SeismicCube> clickedCube) { try { SeismicCube getcube = ((SeismicCube)clickedCube.ContextObject); Index3 start = new Index3(0, 0, 0); Index3 end = new Index3(getcube.NumSamplesIJK.I - 1, getcube.NumSamplesIJK.J - 1, getcube.NumSamplesIJK.K - 1); ISubCube from = getcube.GetSubCube(start, end); float[, ,] vals = from.ToArray(); new Plot3D.Plot3DMainForm(vals).Show(); } catch { } }
private void callback(object sender, ContextMenuClickedEventArgs<SeismicCube> clickedCube) { try { SeismicCube getcube = ((SeismicCube)clickedCube.ContextObject); Index3 start = new Index3(0, 0, 0); Index3 end = new Index3(getcube.NumSamplesIJK.I - 1, getcube.NumSamplesIJK.J - 1, getcube.NumSamplesIJK.K - 1); ISubCube from = getcube.GetSubCube(start, end); float[, ,] vals = from.ToArray(); new Plot3D.Plot3DMainForm(vals).Show(); } catch { } }