Example #1
0
        private void openSequenceForm(string path)
        {
            SequenceViewerForm form = SequenceViewerForm.Singleton;

            if (!form.Visible)
            {
                form.AttachIPluginHost(_pluginHost);
                try {
                    Script.ScriptConsole.Singleton.MotionDataSet = _dataSet;
                    Script.ScriptConsole.Singleton.ParentControl = this;
                    Script.ScriptConsole.Singleton.Invoke(new Misc.FunctionOpenSequenceViewer(), null);
                } catch (Exception) {
                    SequenceViewerForm.Singleton.Show();
                }
            }

            form.BringToFront();

            if (path != null)
            {
                try {
                    form.AutoLoadSequence(path);
                } catch (Exception ex) {
                    ErrorLogger.Tell(ex, "ファイルが開けませんでした");
                }
            }
        }
Example #2
0
 public void Run()
 {
     form = SequenceViewerForm.Singleton;
     form.AttachIPluginHost(Owner);
     TimeController.Singleton.ExtendDuration(_host.Duration);
     TimeController.Singleton.AttachIPluginHost(Owner);
     form.Show();
 }
Example #3
0
        private void openSequenceForm(TimeSeriesValues sequence, string title)
        {
            SequenceViewerForm form = SequenceViewerForm.Singleton;

            if (!form.Visible)
            {
                form.AttachIPluginHost(_pluginHost);
                try {
                    Script.ScriptConsole.Singleton.MotionDataSet = _dataSet;
                    Script.ScriptConsole.Singleton.ParentControl = this;
                    Script.ScriptConsole.Singleton.Invoke(new Misc.FunctionOpenSequenceViewer(), null);
                } catch (Exception) {
                    SequenceViewerForm.Singleton.Show();
                }
            }

            form.BringToFront();
            form.AutoLoadSequence(sequence, title);
        }