コード例 #1
0
        public KinoveaMainWindow(RootKernel _RootKernel)
        {
            log.Debug("Create main UI window.");

            mRootKernel = _RootKernel;
            InitializeComponent();

            this.Text         = " Kinovea";
            SupervisorControl = new SupervisorUserInterface(mRootKernel);
            this.Controls.Add(SupervisorControl);
            SupervisorControl.Dock = DockStyle.Fill;
            SupervisorControl.BringToFront();
        }
コード例 #2
0
ファイル: KinoveaMainWindow.cs プロジェクト: jfpk/kinoveaIDS
        public KinoveaMainWindow(RootKernel rootKernel)
        {
            log.Debug("Create main UI window.");

            this.rootKernel = rootKernel;
            InitializeComponent();

            this.Text      = " Kinovea";
            supervisorView = new SupervisorUserInterface(rootKernel);
            this.Controls.Add(supervisorView);
            supervisorView.Dock = DockStyle.Fill;
            supervisorView.BringToFront();
        }
コード例 #3
0
        public KinoveaMainWindow(RootKernel _RootKernel)
        {
            mRootKernel = _RootKernel;
            InitializeComponent();

            // Window title
            Text = " Kinovea";


            SupervisorControl = new SupervisorUserInterface(mRootKernel);
            this.Controls.Add(SupervisorControl);

            SupervisorControl.Dock = DockStyle.Fill;
            SupervisorControl.BringToFront();

            //log.Debug("Register Application Idle handler");
            //Application.Idle += new EventHandler(Application_Idle);
        }
コード例 #4
0
        public KinoveaMainWindow(RootKernel rootKernel)
        {
            log.Debug("Creating main UI window.");

            this.rootKernel = rootKernel;
            InitializeComponent();

            string title = " Kinovea";

            if (!string.IsNullOrEmpty(Software.InstanceName))
            {
                title += string.Format(" [{0}]", Software.InstanceName);
            }

            this.Text      = title;
            supervisorView = new SupervisorUserInterface(rootKernel);
            this.Controls.Add(supervisorView);
            supervisorView.Dock = DockStyle.Fill;
            supervisorView.BringToFront();
        }
コード例 #5
0
        public KinoveaMainWindow(RootKernel rootKernel)
        {
            log.Debug("Creating main UI window.");

            this.rootKernel = rootKernel;
            InitializeComponent();

            string title = " Clean Hands™";

            if (!string.IsNullOrEmpty(Software.InstanceName))
            {
                title += string.Format(" [{0}]", Software.InstanceName);
            }

            this.Text      = title;
            supervisorView = new SupervisorUserInterface(rootKernel);
            this.Controls.Add(supervisorView);
            supervisorView.Dock = DockStyle.Fill;
            supervisorView.BringToFront();

            IntroAboutForm introForm = new IntroAboutForm();

            introForm.ShowDialog();


            if (introForm.close == false)
            {
                FormSplashScreen splashForm = new FormSplashScreen();

                splashForm.Show();
                splashForm.Update();

                System.Threading.Thread.Sleep(3000);
                splashForm.Hide();
                splashForm.Dispose();
            }
            else
            {
                Application.Exit();
            }
        }
コード例 #6
0
        public KinoveaMainWindow(RootKernel rootKernel, bool firstInstance)
        {
            log.Debug("Create main UI window.");

            this.rootKernel = rootKernel;
            InitializeComponent();

            string title = " Kinovea";

            if (!firstInstance)
            {
                // Add random characters at the end of the window title so it can be identified by automation scripts.
                string id = Guid.NewGuid().ToString().Substring(0, 4);
                title += " [" + id + "]";
            }

            this.Text      = title;
            supervisorView = new SupervisorUserInterface(rootKernel);
            this.Controls.Add(supervisorView);
            supervisorView.Dock = DockStyle.Fill;
            supervisorView.BringToFront();
        }
コード例 #7
0
        public KinoveaMainWindow(RootKernel rootKernel)
        {
            log.Debug("Creating main UI window.");

            this.rootKernel = rootKernel;
            InitializeComponent();

            string title = "Kinovea";

            if (!string.IsNullOrEmpty(Software.InstanceName))
            {
                title += string.Format(" [{0}]", Software.InstanceName);
            }

            this.Text = title;

            this.FormClosing += KinoveaMainWindow_FormClosing;
            supervisorView    = new SupervisorUserInterface(rootKernel);
            this.Controls.Add(supervisorView);
            supervisorView.Dock = DockStyle.Fill;
            supervisorView.BringToFront();

            log.DebugFormat("Restoring window state: {0}, window rectangle: {1}", PreferencesManager.GeneralPreferences.WindowState, PreferencesManager.GeneralPreferences.WindowRectangle);
            if (Screen.AllScreens.Any(screen => screen.WorkingArea.IntersectsWith(PreferencesManager.GeneralPreferences.WindowRectangle)))
            {
                // The screen it was on is still here, move it to this screen and then restore the state.
                this.StartPosition = FormStartPosition.Manual;
                this.DesktopBounds = PreferencesManager.GeneralPreferences.WindowRectangle;
                this.WindowState   = PreferencesManager.GeneralPreferences.WindowState;
            }
            else
            {
                this.WindowState = FormWindowState.Maximized;
            }

            EnableCopyData();
        }