Exemple #1
0
            private void Forw_proc()
            {
                double t = FDTD.Increment();

                Show_Field();

                this.Invoke((MethodInvoker) delegate
                {
                    Time_Preview.Text = Math.Round(t, 3).ToString();
                });
                Rhino.RhinoDoc.ActiveDoc.Views.Redraw();
            }
Exemple #2
0
            private void Forw_proc()
            {
                double t = FDTD.Increment();

                Show_Field();

                this.Invoke((MethodInvoker) delegate
                {
                    Time_Preview.Text = Math.Round(t, 3).ToString();
                });
                Rhino.RhinoDoc.ActiveDoc.Views.Redraw();

                ////////////////////////
                if (Folder_Status.Text != "")
                {
                    int    j = (int)Math.Round(t / FDTD.dt);
                    string number;
                    if (j < 100)
                    {
                        if (t < 10)
                        {
                            number = "00" + j.ToString();
                        }
                        else
                        {
                            number = "0" + j.ToString();
                        }
                    }
                    else
                    {
                        number = j.ToString();
                    }

                    this.Invoke((MethodInvoker) delegate { Rhino.RhinoApp.RunScript("-ViewCaptureToFile " + Folder_Status.Text + "\\"[0] + "frame" + number + ".jpg Width=1280 Height=720 DrawGrid=No Enter", true); });
                }
                /////////////////////////
            }