Example #1
0
        private void StartWebslate()
        {
            if (!IsRunAsAdmin())
            {
                //MessageBox.Show("ShotLog requires to RUN AS ADMINISTRATOR for the WebSlate feature to be used. To start the WebSlate-server, quit the application and relaunch as administrator.", "Administrator rights required", MessageBoxButtons.OK, MessageBoxIcon.Warning);

                ProcessStartInfo elevated = new ProcessStartInfo(System.Reflection.Assembly.GetEntryAssembly().Location, "run2")
                {
                    UseShellExecute = true,
                    Verb            = "runas"
                };
                Process.Start(elevated);
                System.Environment.Exit(0);
            }
            else
            {
                WebSlate.SetDataobject(data);
                Task.Run(() => WebSlate.RunServer());
            }
        }
Example #2
0
        //UPDATE GUI FROM DATA OBJECT
        private void LoadGUIfromData()
        {
            this.Text               = (data.projectName + " - ShotLog 1.1.0.3");
            projectName.Text        = data.projectName;
            usePhotometrics.Checked = data.photometricDataEnabled;

            //Stills
            stillsFilenamePrefix.Text       = data.stillsPrefix;
            stillsFilenameIndexLength.Value = data.stillsIndexLength;
            stillsNextFileIndex.Value       = data.stillsNextIndex;
            stillsCameraName.Text           = data.stillsCameraName;
            stillsAperture.Value            = (decimal)data.stillsAperture;
            stillsFocalLength.Value         = data.stillsFocalLength;
            stillsWhitebalance.Value        = data.stillsWhiteBalance;
            stillsISO.Value          = data.stillsISO;
            stillsShutterSpeed.Value = data.stillsShutterspeedBase;

            stillsBrackeringEnabled.Checked = data.stillsBracketed;

            stillsBrackeringStops.Value = data.stillsBracketSteps;
            stillsBracketingOrder.Text  = data.stillsBracketOrder;

            //Video Settings
            videoUseSceneShotTake.Checked = data.videoUseSceneNumbering;
            videoUseBroadcast.Checked     = data.videoUseStudioCamSettings;

            videoNamePrefix.Text     = data.videoPrefix;
            videoIndexLength.Value   = data.videoIndexLength;
            videoNextFileIndex.Value = data.videoNextIndex;
            videoScene.Value         = data.videoScene;
            videoShot.Value          = data.videoShot;
            videoTake.Value          = data.videoTake;
            videoCameraName.Text     = data.videoCameraName;
            videoFormat.Text         = data.videoFormat;
            videoAperture.Value      = (decimal)data.videoAperture;
            videoFocalLength.Value   = data.videoFocalLength;
            videoWhitebalance.Value  = data.videoWhiteBalance;
            videoISO.Value           = data.videoISO;
            videoShutterspeed.Value  = data.videoShutterspeed;

            //Video broadcast
            videoBroadcastMasterBlack.Value = data.videoStudioMasterBlack;
            videoBroadcastGain.Value        = data.videoStudioGain;
            videoBroadcastSaturation.Value  = data.videoStudioSaturation;
            videoBroadcastTint.Value        = data.videoStudioTint;
            videoBroadcastFilter.Text       = data.videoStudioFilter;

            videoBroadcastGainRed.Value   = data.videoStudioRedGain;
            videoBroadcastGainGreen.Value = data.videoStudioGreenGain;
            videoBroadcastGainBlue.Value  = data.videoStudioBlueGain;

            videoBroadcastBlackRed.Value   = data.videoStudioRedBlack;
            videoBroadcastBlackGreen.Value = data.videoStudioGreenBlack;
            videoBroadcastBlackBlue.Value  = data.videoStudioBlueBlack;

            //Webslate
            webslateDropdown1.SelectedIndex = data.webslateIndex1;
            webslateDropdown2.SelectedIndex = data.webslateIndex2;
            webslateDropdown3.SelectedIndex = data.webslateIndex3;
            webslateDropdown4.SelectedIndex = data.webslateIndex4;
            webslateDropdown5.SelectedIndex = data.webslateIndex5;

            webslateFontMenu.Text   = data.webslateTextsize.ToString();
            webslateUpdateMenu.Text = data.webslateRefresh.ToString();
            webslatePortMenu.Text   = data.webslatePort.ToString();

            WebSlate.SetDataobject(data);


            //Update enabled
            UpdateGUIenabled();

            //Update speadsheets
            ReloadDataGridView();


            UpdateFileMenuFormating();
        }