Ejemplo n.º 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, "ファイルが開けませんでした");
                }
            }
        }
Ejemplo n.º 2
0
 public void Run()
 {
     form = SequenceViewerForm.Singleton;
     form.AttachIPluginHost(Owner);
     TimeController.Singleton.ExtendDuration(_host.Duration);
     TimeController.Singleton.AttachIPluginHost(Owner);
     form.Show();
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 4
0
        private void testToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SequenceViewerForm form = SequenceViewerForm.Singleton;

            form.Show();
        }