Пример #1
0
 public SessionInfo(Main frm1, String projectName)
 {
     InitializeComponent();
     this.main = frm1;
     this.ActiveControl = this.sessionNameTxtBox;
     this.projectName = projectName;//"cut-off TreeNode: "
 }
Пример #2
0
        public ObjectLinkForm(Main main, Project project, Session session, Object obj, int frameNo)
        {
            InitializeComponent();

            this.main = main;
            this.project = project;
            this.session = session;
            this.obj = obj;
            this.frameNo = frameNo;
            this.sessionIndex = project.sessions.IndexOf(session);
            if (sessionIndex == -1)
            {
                MessageBox.Show("Cross session only works inside one project!");
                this.Dispose();
                return;
            }
            this.infoLbl.Text = "Link from object " + obj.id + " of session " + session.sessionName + " at frame " + frameNo;
            this.sessionSelectComboBox.Items.AddRange(project.sessions.Select(s => (s.sessionName.Equals(session.sessionName) ? "(current session)" : s.sessionName)).ToArray());
            this.sessionSelectComboBox.SelectedIndex = sessionIndex;
            this.objectSelectComboBox.Items.AddRange(session.getObjects().Select(o => o.id + (o.name.Equals("") ? "" : (" (\"" + o.name + "\")"))).ToArray());
            this.objectSelectComboBox.SelectedIndex = 0;
            this.qualifiedSelectComboBox.Items.AddRange(new object[] { true, false });
            this.qualifiedSelectComboBox.SelectedIndex = 0;
            this.linkComboBox.Items.AddRange(Options.getOption().objectLinkTypes.ToArray());
            this.linkComboBox.SelectedIndex = 0;
            renderPredicateList();
        }
Пример #3
0
        public EventAnnotation(Event ev, Main mainGUI, int start, int end)
        {

            InitializeComponent();

            axis.X1 = 10;
            axis.X2 = 820;

            this.ev = ev;
            //MessageBox.Show(txt);
            if (ev.text != null)
                textAnnotation.Text = ev.text;
            this.main = mainGUI;
            this.start = start;
            this.end = end;

            this.slider1Move = false;
            this.slider2Move = false;
            Rendering();

            rectangleShape.MouseClick += Mark_MouseClick;

            rowIndexToObjs = new Dictionary<int, object>();

            //MessageBox.Show("minimum = " + minimum + ", maximum = " + maximum + " stepX = " + frameStepX);
            intervalLbl.Text = "Start: " + ev.startFrame + ", Stop: " + ev.endFrame;
        }
Пример #4
0
        public ObjectAnnotation(Object o, Main main, int start, int end)
        {
            InitializeComponent();

            axis.X1 = 10;
            axis.X2 = 820;

            tt.AutoPopDelay = 5000;
            tt.InitialDelay = 1000;
            tt.ReshowDelay = 500;
            tt.ShowAlways = true;

            this.main = main;
            this.o = o;

            this.start = start;
            this.end = end;
            this.sessionLength = end - start + 1;

            this.updateInfo();
            Rendering();

            if (this.o.genType == Object.GenType.MANUAL)
            {
                this.generate3d.Visible = true;
            }
            else
            {
                this.generate3d.Visible = false;
            }
        }
Пример #5
0
 public AddRigFileForm(Main main, Session currentSession, string videoFile)
 {
     this.main = main;
     this.currentSession = currentSession;
     this.videoFile = videoFile;
     InitializeComponent();
 }
Пример #6
0
 public EventTemplateGenerator(Main main, bool isProjectMode)
 {
     this.main = main;
     this.isProjectMode = isProjectMode;
     InitializeComponent();
 }
Пример #7
0
 public WorkspaceLauncher(Main main)
 {
     InitializeComponent();
     this.main = main;
 }
Пример #8
0
 public ProjectInfo(Main frm1)
 {
     InitializeComponent();
     this.frm1 = frm1;
     this.ActiveControl = this.textBox1;
 }