Example #1
0
        private void highS_ValueChanged(object sender, EventArgs e)
        {
            VCamLib.SaveSettings(highS.Value, -1, -1);
            TrackBar tb   = (TrackBar)sender;
            string   text = string.Format("{0} .value = {1}", tb.Name, tb.Value);
            Label    lbl  = (Label)tb.Tag;

            lbl.Text = text;
            toolTip1.SetToolTip(tb, text);
        }
Example #2
0
        protected override void OnLoad(EventArgs e)
        {
            this.Location = StateSaver.Default.Get <Point>("CPrint2.MainForm.Location", this.Location);
            this.Size     = StateSaver.Default.Get <Size>("CPrint2.MainForm.Size", this.Size);

            int highS     = 0;
            int minWidth  = 0;
            int minHeigth = 0;

            VCamLib.ReadSettings(ref highS, ref minWidth, ref minHeigth);

            highS              = StateSaver.Default.Get <int>("highS", highS);
            minWidth           = StateSaver.Default.Get <int>("minWidth", minWidth);
            minHeigth          = StateSaver.Default.Get <int>("minHeigth", minHeigth);
            CameraControl.Mode = StateSaver.Default.Get <CameraControl.ShowMode>("CameraControl.Mode", CameraControl.ShowMode.Normal);

            VCamLib.SaveSettings(highS, minWidth, minHeigth);

            this.highS.Value = highS;
            base.OnLoad(e);
        }