Ejemplo n.º 1
0
        private void AddFloorPlanLoad(object sender, EventArgs e)
        {
            txtName.Text = Fpc.Fpobject.name;

            if (Fpc.Fpobject.image != "")
            {
                try
                {
                    _floorPlanImage = (Bitmap)Image.FromFile(Fpc.Fpobject.image);
                }
                catch (Exception ex)
                {
                    Logger.LogExceptionToFile(ex);
                }
            }

            lbObjects.AllowDrop = true;
            _pnlPlan            = new Controls.PictureBox {
                Location = new Point(64, 0), Size = new Size(533, 400), AllowDrop = true
            };
            pnlFloorPlan.Controls.Add(_pnlPlan);

            _floorPlanEntries = new List <objectsFloorplanObjectsEntry>();

            foreach (objectsFloorplanObjectsEntry fpobj in Fpc.Fpobject.objects.@object)
            {
                _floorPlanEntries.Add(fpobj);
            }

            ShowObjects();

            _pnlPlan.DragDrop  += PnlPlanDragDrop;
            _pnlPlan.DragEnter += PnlPlanDragEnter;
            _pnlPlan.DragOver  += PnlPlanDragOver;
            _pnlPlan.MouseDown += PMouseDown;
            _pnlPlan.MouseUp   += PMouseUp;
            _pnlPlan.MouseMove += PMouseMove;
            _pnlPlan.Paint     += PnlPlanPaint;

            chkOriginalSize.Checked = Fpc.Fpobject.originalsize;
            txtAccessGroups.Text    = Fpc.Fpobject.accessgroups;

            _pnlPlan.Invalidate();
            if (Fpc.Fpobject.id > -1)
            {
                Text = LocRm.GetString("EditFloorPlan");
            }
        }
Ejemplo n.º 2
0
        private void AddFloorPlanLoad(object sender, EventArgs e)
        {
            txtName.Text = Fpc.Fpobject.name;

            if (Fpc.Fpobject.image != "")
            {
                try
                {
                    _floorPlanImage = (Bitmap)Image.FromFile(Fpc.Fpobject.image);
                }
                catch (Exception ex)
                {
                    MainForm.LogExceptionToFile(ex);
                }
            }

            lbObjects.AllowDrop = true;
            _pnlPlan = new Controls.PictureBox {Location = new Point(64, 0), Size = new Size(533, 400), AllowDrop = true};
            pnlFloorPlan.Controls.Add(_pnlPlan);

            _floorPlanEntries = new List<objectsFloorplanObjectsEntry>();

            foreach (objectsFloorplanObjectsEntry fpobj in Fpc.Fpobject.objects.@object)
            {
                _floorPlanEntries.Add(fpobj);
            }

            ShowObjects();

            _pnlPlan.DragDrop += PnlPlanDragDrop;
            _pnlPlan.DragEnter += PnlPlanDragEnter;
            _pnlPlan.DragOver += PnlPlanDragOver;
            _pnlPlan.MouseDown += PMouseDown;
            _pnlPlan.MouseUp += PMouseUp;
            _pnlPlan.MouseMove += PMouseMove;
            _pnlPlan.Paint += PnlPlanPaint;

            chkOriginalSize.Checked = Fpc.Fpobject.originalsize;
            txtAccessGroups.Text = Fpc.Fpobject.accessgroups;

            _pnlPlan.Invalidate();
            if (Fpc.Fpobject.id > -1)
                Text = LocRm.GetString("EditFloorPlan");
        }
Ejemplo n.º 3
0
        private void MainInit()
        {
            UISync.Init(this);

            try
            {
                File.WriteAllText(Program.AppDataPath + "exit.txt", "RUNNING");
            }
            catch (Exception ex)
            {
                LogExceptionToFile(ex);
            }

            InitLogging();

            if (!SilentStartup)
            {
                switch (Conf.StartupMode)
                {
                    case 0:
                        break;
                    case 2:
                        break;
                    case 3:
                        WinApi.SetWinFullScreen(Handle);
                        break;
                }
            }

            mediaPanelControl1.MainClass = this;
            EncoderParams = new EncoderParameters(1)
                            {
                                Param =
                                {
                                    [0] =
                                        new EncoderParameter(
                                        System.Drawing.Imaging.Encoder.Quality,
                                        Conf.JPEGQuality)
                                }
                            };

            //this initializes the port mapping collection
            IStaticPortMappingCollection map = NATControl.Mappings;
            if (string.IsNullOrEmpty(Conf.MediaDirectory) || Conf.MediaDirectory == "NotSet")
            {
                Conf.MediaDirectory = Program.AppDataPath + @"WebServerRoot\Media\";
            }

            if (Conf.MediaDirectories == null || Conf.MediaDirectories.Length == 0)
            {
                Conf.MediaDirectories = new[]
                                        {
                                            new configurationDirectory
                                            {
                                                Entry = Conf.MediaDirectory,
                                                DeleteFilesOlderThanDays =
                                                    Conf.DeleteFilesOlderThanDays,
                                                Enable_Storage_Management =
                                                    Conf.Enable_Storage_Management,
                                                MaxMediaFolderSizeMB = Conf.MaxMediaFolderSizeMB,
                                                StopSavingOnStorageLimit =
                                                    Conf.StopSavingOnStorageLimit,
                                                ID = 0
                                            }
                                        };
            }
            else
            {
                if (Conf.MediaDirectories.First().Entry == "NotSet")
                {
                    Conf.MediaDirectories = new[]
                                            {
                                                new configurationDirectory
                                                {
                                                    Entry = Conf.MediaDirectory,
                                                    DeleteFilesOlderThanDays =
                                                        Conf.DeleteFilesOlderThanDays,
                                                    Enable_Storage_Management =
                                                        Conf.Enable_Storage_Management,
                                                    MaxMediaFolderSizeMB =
                                                        Conf.MaxMediaFolderSizeMB,
                                                    StopSavingOnStorageLimit =
                                                        Conf.StopSavingOnStorageLimit,
                                                    ID = 0
                                                }
                                            };
                }
            }

            //reset stop saving flag
            foreach (configurationDirectory d in Conf.MediaDirectories)
            {
                d.StopSavingFlag = false;
            }

            if (!Directory.Exists(Conf.MediaDirectories[0].Entry))
            {
                string notfound = Conf.MediaDirectories[0].Entry;
                LogErrorToFile("Media directory could not be found (" + notfound + ") - reset it to " +
                               Program.AppDataPath + @"WebServerRoot\Media\" + " in settings if it doesn't attach.");
            }

            if (!VlcHelper.VlcInstalled)
            {
                LogWarningToFile(
                    "VLC not installed - install VLC (" + Program.Platform + ") for additional connectivity.");
                if (Program.Platform == "x64")
                {
                    LogWarningToFile(
                        "VLC64  must be unzipped so the dll files and folders including libvlc.dll and the plugins folder are in " +
                        Program.AppPath + "VLC64\\");
                    LogWarningToFile("Download: <a href=\""+VLCx64+"\">"+VLCx64+"</a>");
                }
                else
                    LogWarningToFile("Download: <a href=\"" + VLCx86 + "\">" + VLCx86 + "</a>");
            }
            else
            {
                Version v = VlcHelper.VlcVersion;
                if (v.CompareTo(VlcHelper.VMin) < 0)
                {
                    LogWarningToFile(
                        "Old VLC installed - update VLC (" + Program.Platform + ") for additional connectivity.");
                }
                else
                {
                    if (v.CompareTo(new Version(2, 0, 2)) == 0)
                    {
                        LogWarningToFile(
                            "VLC v2.0.2 detected - there are known issues with this version of VLC (HTTP streaming is broken for a lot of cameras) - if you are having problems with VLC connectivity we recommend you install v2.0.1 ( http://download.videolan.org/pub/videolan/vlc/2.0.1/ ) or the latest (if available).");
                    }
                }
            }

            _fsw = new FileSystemWatcher
                   {
                       Path = Program.AppDataPath,
                       IncludeSubdirectories = false,
                       Filter = "external_command.txt",
                       NotifyFilter = NotifyFilters.LastWrite
                   };
            _fsw.Changed += FswChanged;
            _fsw.EnableRaisingEvents = true;

            tsslPRO.Visible = !Conf.Subscribed;

            Menu = mainMenu;
            notifyIcon1.ContextMenuStrip = ctxtTaskbar;
            Identifier = Guid.NewGuid().ToString();
            MWS = new LocalServer(this)
                  {
                      ServerRoot = Program.AppDataPath + @"WebServerRoot\",
                  };

            if (Conf.Monitor)
            {
                Process[] w = Process.GetProcessesByName("ispymonitor");
                if (w.Length == 0)
                {
                    try
                    {
                        var si = new ProcessStartInfo(Program.AppPath + "/ispymonitor.exe", "ispy");
                        Process.Start(si);
                    }
                    catch
                    {
                        // ignored
                    }
                }
            }

            //GC.KeepAlive(MWS);

            SetBackground();

            toolStripMenu.Visible = Conf.ShowToolbar;
            statusStrip1.Visible = Conf.ShowStatus && Helper.HasFeature(Enums.Features.View_Status_Bar);
            Menu = !Conf.ShowFileMenu ? null : mainMenu;

            if (SilentStartup)
            {
                WindowState = FormWindowState.Minimized;
            }

            if (Conf.Password_Protect_Startup)
            {
                _locked = true;
                WindowState = FormWindowState.Minimized;
            }

            if (Conf.Fullscreen && !SilentStartup && !_locked)
            {
                WindowState = FormWindowState.Maximized;
                FormBorderStyle = FormBorderStyle.None;
                WinApi.SetWinFullScreen(Handle);
            }

            statusBarToolStripMenuItem.Checked = menuItem4.Checked = Conf.ShowStatus;
            toolStripToolStripMenuItem.Checked = menuItem6.Checked = Conf.ShowToolbar;
            fileMenuToolStripMenuItem.Checked = menuItem5.Checked = Conf.ShowFileMenu;
            fullScreenToolStripMenuItem1.Checked = menuItem3.Checked = Conf.Fullscreen;
            alwaysOnTopToolStripMenuItem1.Checked = menuItem8.Checked = Conf.AlwaysOnTop;
            mediaPaneToolStripMenuItem.Checked = menuItem7.Checked = Conf.ShowMediaPanel;
            menuItem22.Checked = Conf.LockLayout;
            TopMost = Conf.AlwaysOnTop;

            Iconfont = new Font(FontFamily.GenericSansSerif, Conf.BigButtons ? 22 : 15, FontStyle.Bold,
                GraphicsUnit.Pixel);
            double dOpacity;
            Double.TryParse(Conf.Opacity.ToString(CultureInfo.InvariantCulture), NumberStyles.AllowDecimalPoint, CultureInfo.InvariantCulture, out dOpacity);
            Opacity = dOpacity/100.0;

            if (Conf.ServerName == "NotSet")
            {
                Conf.ServerName = SystemInformation.ComputerName;
            }

            notifyIcon1.Text = Conf.TrayIconText;
            notifyIcon1.BalloonTipClicked += NotifyIcon1BalloonTipClicked;
            autoLayoutToolStripMenuItem.Checked = menuItem26.Checked = Conf.AutoLayout;

            _updateTimer = new Timer(200);
            _updateTimer.Elapsed += UpdateTimerElapsed;
            _updateTimer.AutoReset = true;
            _updateTimer.SynchronizingObject = this;
            //GC.KeepAlive(_updateTimer);

            _houseKeepingTimer = new Timer(1000);
            _houseKeepingTimer.Elapsed += HouseKeepingTimerElapsed;
            _houseKeepingTimer.AutoReset = true;
            _houseKeepingTimer.SynchronizingObject = this;
            //GC.KeepAlive(_houseKeepingTimer);

            //load plugins
            LoadPlugins();

            resetLayoutToolStripMenuItem1.Enabled = mnuResetLayout.Enabled = false; //reset layout

            NetworkChange.NetworkAddressChanged += NetworkChangeNetworkAddressChanged;
            mediaPaneToolStripMenuItem.Checked = Conf.ShowMediaPanel;
            ShowHideMediaPane();
            if (!string.IsNullOrEmpty(Conf.MediaPanelSize))
            {
                string[] dd = Conf.MediaPanelSize.Split('x');
                int d1 = Convert.ToInt32(dd[0]);
                int d2 = Convert.ToInt32(dd[1]);
                try
                {
                    splitContainer1.SplitterDistance = d1;
                    splitContainer2.SplitterDistance = d2;
                }
                catch
                {
                    // ignored
                }
            }
            //load in object list

            if (_startCommand.Trim().StartsWith("open"))
            {
                ParseCommand(_startCommand);
                _startCommand = "";
            }
            else
            {
                if (!File.Exists(Program.AppDataPath + @"XML\objects.xml"))
                {
                    File.Copy(Program.AppPath + @"XML\objects.xml", Program.AppDataPath + @"XML\objects.xml");
                }
                ParseCommand("open " + Program.AppDataPath + @"XML\objects.xml");
            }
            if (_startCommand != "")
            {
                ParseCommand(_startCommand);
            }

            StopAndStartServer();

            if (_mWindowState == null)
            {
                _mWindowState = new PersistWindowState {Parent = this, RegistryPath = @"Software\ispy\startup"};
            }

            if (Conf.Enabled_ShowGettingStarted)
                ShowGettingStarted();

            if (File.Exists(Program.AppDataPath + "custom.txt"))
            {
                string[] cfg =
                    File.ReadAllText(Program.AppDataPath + "custom.txt").Split(Environment.NewLine.ToCharArray());
                bool setSecure = false;
                foreach (string s in cfg)
                {
                    if (!string.IsNullOrEmpty(s))
                    {
                        string[] nv = s.Split('=');

                        if (nv.Length > 1)
                        {
                            switch (nv[0].ToLower().Trim())
                            {
                                case "business":
                                    Conf.Vendor = nv[1].Trim();
                                    break;
                                case "link":
                                    PurchaseLink = nv[1].Trim();
                                    break;
                                case "manufacturer":
                                    IPTYPE = Conf.DefaultManufacturer = nv[1].Trim();
                                    break;
                                case "model":
                                    IPMODEL = nv[1].Trim();
                                    break;
                                case "affiliateid":
                                case "affiliate id":
                                case "aid":
                                    int aid;
                                    if (Int32.TryParse(nv[1].Trim(), out aid))
                                    {
                                        Affiliateid = aid;
                                    }
                                    break;
                                case "tags":
                                    if (string.IsNullOrEmpty(Conf.Tags))
                                        Conf.Tags = nv[1].Trim();
                                    break;
                                case "featureset":
                                    //only want to set this on install (allow them to modify)
                                    if (Conf.FirstRun)
                                    {
                                        int featureset;
                                        if (Int32.TryParse(nv[1].Trim(), out featureset))
                                        {
                                            Conf.FeatureSet = featureset;
                                        }
                                    }
                                    break;
                                case "permissions":
                                    //only want to set this on install (allow them to modify)
                                    if (Conf.FirstRun)
                                    {
                                        var groups = nv[1].Trim().Split('|');
                                        var l = new List<configurationGroup>();
                                        foreach (var g in groups)
                                        {
                                            if (!string.IsNullOrEmpty(g))
                                            {
                                                var g2 = g.Split(',');
                                                if (g2.Length >= 3)
                                                {
                                                    if (!string.IsNullOrEmpty(g2[0]))
                                                    {
                                                        int perm;
                                                        if (int.TryParse(g2[2], out perm))
                                                        {
                                                            l.Add(new configurationGroup
                                                                  {
                                                                      featureset = perm,
                                                                      name = g2[0],
                                                                      password =
                                                                          EncDec.EncryptData(g2[1],
                                                                              Conf.EncryptCode)
                                                                  });
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                        if (l.FirstOrDefault(p => p.name.ToLower() == "admin") == null)
                                        {
                                            l.Add(new configurationGroup{
                                                      featureset = 1,
                                                      name = "Admin",
                                                      password = ""
                                                  });
                                        }
                                        if (l.Count>0)
                                            Conf.Permissions = l.ToArray();

                                    }
                                    break;
                                case "webserver":
                                    Webserver = nv[1].Trim().Trim('/');
                                    if (!setSecure)
                                        WebserverSecure = Webserver;
                                    break;
                                case "webserversecure":
                                    WebserverSecure = nv[1].Trim().Trim('/');
                                    setSecure = true;
                                    break;
                                case "recordondetect":
                                    bool defaultRecordOnDetect;
                                    if (bool.TryParse(nv[1].Trim(), out defaultRecordOnDetect))
                                        Conf.DefaultRecordOnDetect = defaultRecordOnDetect;
                                    break;
                                case "recordonalert":
                                    bool defaultRecordOnAlert;
                                    if (bool.TryParse(nv[1].Trim(), out defaultRecordOnAlert))
                                        Conf.DefaultRecordOnAlert = defaultRecordOnAlert;
                                    break;
                            }
                        }
                    }
                }
                Conf.FirstRun = false;
                LogMessageToFile("Webserver: " + Webserver);

                string logo = Program.AppDataPath + "logo.jpg";
                if (!File.Exists(logo))
                    logo = Program.AppDataPath + "logo.png";

                if (File.Exists(logo))
                {
                    try
                    {
                        Image bmp = Image.FromFile(logo);
                        var pb = new PictureBox {Image = bmp};
                        pb.Width = pb.Image.Width;
                        pb.Height = pb.Image.Height;

                        pb.Left = _pnlCameras.Width/2 - pb.Width/2;
                        pb.Top = _pnlCameras.Height/2 - pb.Height/2;

                        _pnlCameras.Controls.Add(pb);
                        _pnlCameras.BrandedImage = pb;
                    }
                    catch (Exception ex)
                    {
                        LogExceptionToFile(ex);
                    }
                }
            }

            LoadCommands();
            if (!SilentStartup && Conf.ViewController)
            {
                ShowViewController();
                viewControllerToolStripMenuItem.Checked = menuItem14.Checked = true;
            }

            pTZControllerToolStripMenuItem.Checked =
                menuItem18.Checked = pTZControllerToolStripMenuItem1.Checked = Conf.ShowPTZController;

            if (Conf.ShowPTZController && !SilentStartup)
                ShowHidePTZTool();

            ListGridViews();

            Conf.RunTimes++;

            try
            {
                _cputotalCounter = new PerformanceCounter("Processor", "% Processor Time", "_total", true);
                _cpuCounter = new PerformanceCounter("Process", "% Processor Time",
                    Process.GetCurrentProcess().ProcessName, true);
                try
                {
                    _pcMem = new PerformanceCounter("Process", "Working Set - Private",
                        Process.GetCurrentProcess().ProcessName, true);
                }
                catch
                {
                    try
                    {
                        _pcMem = new PerformanceCounter("Memory", "Available MBytes");
                    }
                    catch (Exception ex2)
                    {
                        LogExceptionToFile(ex2);
                        _pcMem = null;
                    }
                }
            }
            catch (Exception ex)
            {
                LogExceptionToFile(ex);
                _cputotalCounter = null;
            }

            if (Conf.StartupForm != "iSpy")
            {
                ShowGridView(Conf.StartupForm);

            }

            foreach (var cg in Conf.GridViews)
            {
                if (cg.ShowAtStartup)
                {
                    ShowGridView(cg.name);
                }
            }

            var t = new Thread(()=>ConnectServices()) {IsBackground = true};
            t.Start();

            _updateTimer.Start();
            _houseKeepingTimer.Start();
        }
Ejemplo n.º 4
0
 private static void PositionPanel(PictureBox p, Point xy, int w, int h)
 {
     p.Width = w;
     p.Height = h;
     p.Location = new Point(xy.X, xy.Y);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this._groupBox1        = new System.Windows.Forms.GroupBox();
     this._maxHBox          = new System.Windows.Forms.TextBox();
     this._label2           = new System.Windows.Forms.Label();
     this._minHBox          = new System.Windows.Forms.TextBox();
     this._label1           = new System.Windows.Forms.Label();
     this._huePicker        = new HuePicker();
     this._groupBox2        = new System.Windows.Forms.GroupBox();
     this._saturationSlider = new ColorSlider();
     this._maxSBox          = new System.Windows.Forms.TextBox();
     this._minSBox          = new System.Windows.Forms.TextBox();
     this._label4           = new System.Windows.Forms.Label();
     this._label3           = new System.Windows.Forms.Label();
     this._groupBox3        = new System.Windows.Forms.GroupBox();
     this._luminanceSlider  = new ColorSlider();
     this._maxLBox          = new System.Windows.Forms.TextBox();
     this._minLBox          = new System.Windows.Forms.TextBox();
     this._label5           = new System.Windows.Forms.Label();
     this._label6           = new System.Windows.Forms.Label();
     this._groupBox5        = new System.Windows.Forms.GroupBox();
     this._filterPreview    = new PictureBox();
     this._groupBox4        = new System.Windows.Forms.GroupBox();
     this._updateLCheck     = new System.Windows.Forms.CheckBox();
     this._fillLBox         = new System.Windows.Forms.TextBox();
     this._label9           = new System.Windows.Forms.Label();
     this._updateSCheck     = new System.Windows.Forms.CheckBox();
     this._fillSBox         = new System.Windows.Forms.TextBox();
     this._label8           = new System.Windows.Forms.Label();
     this._updateHCheck     = new System.Windows.Forms.CheckBox();
     this._fillHBox         = new System.Windows.Forms.TextBox();
     this._label7           = new System.Windows.Forms.Label();
     this._fillTypeCombo    = new System.Windows.Forms.ComboBox();
     this._label10          = new System.Windows.Forms.Label();
     this._cancelButton     = new System.Windows.Forms.Button();
     this._okButton         = new System.Windows.Forms.Button();
     this.llblHelp          = new System.Windows.Forms.LinkLabel();
     this._groupBox1.SuspendLayout();
     this._groupBox2.SuspendLayout();
     this._groupBox3.SuspendLayout();
     this._groupBox5.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this._filterPreview)).BeginInit();
     this._groupBox4.SuspendLayout();
     this.SuspendLayout();
     //
     // _groupBox1
     //
     this._groupBox1.Controls.Add(this._maxHBox);
     this._groupBox1.Controls.Add(this._label2);
     this._groupBox1.Controls.Add(this._minHBox);
     this._groupBox1.Controls.Add(this._label1);
     this._groupBox1.Controls.Add(this._huePicker);
     this._groupBox1.Location = new System.Drawing.Point(10, 10);
     this._groupBox1.Name     = "_groupBox1";
     this._groupBox1.Size     = new System.Drawing.Size(280, 230);
     this._groupBox1.TabIndex = 1;
     this._groupBox1.TabStop  = false;
     this._groupBox1.Text     = "Hue";
     //
     // _maxHBox
     //
     this._maxHBox.Location     = new System.Drawing.Point(218, 20);
     this._maxHBox.Name         = "_maxHBox";
     this._maxHBox.Size         = new System.Drawing.Size(50, 20);
     this._maxHBox.TabIndex     = 4;
     this._maxHBox.TextChanged += new System.EventHandler(this.maxHBox_TextChanged);
     //
     // _label2
     //
     this._label2.Location = new System.Drawing.Point(186, 23);
     this._label2.Name     = "_label2";
     this._label2.Size     = new System.Drawing.Size(39, 15);
     this._label2.TabIndex = 3;
     this._label2.Text     = "Max:";
     //
     // _minHBox
     //
     this._minHBox.Location     = new System.Drawing.Point(40, 20);
     this._minHBox.Name         = "_minHBox";
     this._minHBox.Size         = new System.Drawing.Size(50, 20);
     this._minHBox.TabIndex     = 2;
     this._minHBox.TextChanged += new System.EventHandler(this.minHBox_TextChanged);
     //
     // _label1
     //
     this._label1.Location = new System.Drawing.Point(10, 23);
     this._label1.Name     = "_label1";
     this._label1.Size     = new System.Drawing.Size(31, 17);
     this._label1.TabIndex = 1;
     this._label1.Text     = "Min:";
     //
     // _huePicker
     //
     this._huePicker.Location       = new System.Drawing.Point(53, 50);
     this._huePicker.Name           = "_huePicker";
     this._huePicker.Size           = new System.Drawing.Size(170, 170);
     this._huePicker.TabIndex       = 0;
     this._huePicker.Type           = HuePicker.HuePickerType.Range;
     this._huePicker.ValuesChanged += new System.EventHandler(this.huePicker_ValuesChanged);
     this._huePicker.Click         += new System.EventHandler(this._huePicker_Click);
     //
     // _groupBox2
     //
     this._groupBox2.Controls.Add(this._saturationSlider);
     this._groupBox2.Controls.Add(this._maxSBox);
     this._groupBox2.Controls.Add(this._minSBox);
     this._groupBox2.Controls.Add(this._label4);
     this._groupBox2.Controls.Add(this._label3);
     this._groupBox2.Location = new System.Drawing.Point(10, 245);
     this._groupBox2.Name     = "_groupBox2";
     this._groupBox2.Size     = new System.Drawing.Size(280, 75);
     this._groupBox2.TabIndex = 2;
     this._groupBox2.TabStop  = false;
     this._groupBox2.Text     = "Saturation";
     //
     // _saturationSlider
     //
     this._saturationSlider.Location       = new System.Drawing.Point(8, 45);
     this._saturationSlider.Name           = "_saturationSlider";
     this._saturationSlider.Size           = new System.Drawing.Size(262, 23);
     this._saturationSlider.TabIndex       = 4;
     this._saturationSlider.Type           = ColorSlider.ColorSliderType.InnerGradient;
     this._saturationSlider.ValuesChanged += new System.EventHandler(this.saturationSlider_ValuesChanged);
     //
     // _maxSBox
     //
     this._maxSBox.Location     = new System.Drawing.Point(218, 20);
     this._maxSBox.Name         = "_maxSBox";
     this._maxSBox.Size         = new System.Drawing.Size(50, 20);
     this._maxSBox.TabIndex     = 3;
     this._maxSBox.TextChanged += new System.EventHandler(this.maxSBox_TextChanged);
     //
     // _minSBox
     //
     this._minSBox.Location     = new System.Drawing.Point(40, 20);
     this._minSBox.Name         = "_minSBox";
     this._minSBox.Size         = new System.Drawing.Size(50, 20);
     this._minSBox.TabIndex     = 2;
     this._minSBox.TextChanged += new System.EventHandler(this.minSBox_TextChanged);
     //
     // _label4
     //
     this._label4.Location = new System.Drawing.Point(186, 23);
     this._label4.Name     = "_label4";
     this._label4.Size     = new System.Drawing.Size(30, 17);
     this._label4.TabIndex = 1;
     this._label4.Text     = "Max:";
     //
     // _label3
     //
     this._label3.Location = new System.Drawing.Point(10, 23);
     this._label3.Name     = "_label3";
     this._label3.Size     = new System.Drawing.Size(30, 16);
     this._label3.TabIndex = 0;
     this._label3.Text     = "Min:";
     //
     // _groupBox3
     //
     this._groupBox3.Controls.Add(this._luminanceSlider);
     this._groupBox3.Controls.Add(this._maxLBox);
     this._groupBox3.Controls.Add(this._minLBox);
     this._groupBox3.Controls.Add(this._label5);
     this._groupBox3.Controls.Add(this._label6);
     this._groupBox3.Location = new System.Drawing.Point(10, 325);
     this._groupBox3.Name     = "_groupBox3";
     this._groupBox3.Size     = new System.Drawing.Size(280, 75);
     this._groupBox3.TabIndex = 3;
     this._groupBox3.TabStop  = false;
     this._groupBox3.Text     = "Luminance";
     //
     // _luminanceSlider
     //
     this._luminanceSlider.Location       = new System.Drawing.Point(8, 45);
     this._luminanceSlider.Name           = "_luminanceSlider";
     this._luminanceSlider.Size           = new System.Drawing.Size(262, 23);
     this._luminanceSlider.TabIndex       = 9;
     this._luminanceSlider.Type           = ColorSlider.ColorSliderType.InnerGradient;
     this._luminanceSlider.ValuesChanged += new System.EventHandler(this.luminanceSlider_ValuesChanged);
     //
     // _maxLBox
     //
     this._maxLBox.Location     = new System.Drawing.Point(218, 20);
     this._maxLBox.Name         = "_maxLBox";
     this._maxLBox.Size         = new System.Drawing.Size(50, 20);
     this._maxLBox.TabIndex     = 8;
     this._maxLBox.TextChanged += new System.EventHandler(this.maxLBox_TextChanged);
     //
     // _minLBox
     //
     this._minLBox.Location     = new System.Drawing.Point(40, 20);
     this._minLBox.Name         = "_minLBox";
     this._minLBox.Size         = new System.Drawing.Size(50, 20);
     this._minLBox.TabIndex     = 7;
     this._minLBox.TextChanged += new System.EventHandler(this.minLBox_TextChanged);
     //
     // _label5
     //
     this._label5.Location = new System.Drawing.Point(186, 23);
     this._label5.Name     = "_label5";
     this._label5.Size     = new System.Drawing.Size(30, 17);
     this._label5.TabIndex = 6;
     this._label5.Text     = "Max:";
     //
     // _label6
     //
     this._label6.Location = new System.Drawing.Point(10, 23);
     this._label6.Name     = "_label6";
     this._label6.Size     = new System.Drawing.Size(30, 16);
     this._label6.TabIndex = 5;
     this._label6.Text     = "Min:";
     //
     // _groupBox5
     //
     this._groupBox5.Controls.Add(this._filterPreview);
     this._groupBox5.Location = new System.Drawing.Point(300, 10);
     this._groupBox5.Name     = "_groupBox5";
     this._groupBox5.Size     = new System.Drawing.Size(322, 230);
     this._groupBox5.TabIndex = 4;
     this._groupBox5.TabStop  = false;
     this._groupBox5.Text     = "Detector View";
     //
     // _filterPreview
     //
     this._filterPreview.Image    = null;
     this._filterPreview.Location = new System.Drawing.Point(10, 15);
     this._filterPreview.Name     = "_filterPreview";
     this._filterPreview.Size     = new System.Drawing.Size(306, 205);
     this._filterPreview.TabIndex = 0;
     this._filterPreview.TabStop  = false;
     this._filterPreview.Click   += new System.EventHandler(this._filterPreview_Click);
     //
     // _groupBox4
     //
     this._groupBox4.Controls.Add(this._updateLCheck);
     this._groupBox4.Controls.Add(this._fillLBox);
     this._groupBox4.Controls.Add(this._label9);
     this._groupBox4.Controls.Add(this._updateSCheck);
     this._groupBox4.Controls.Add(this._fillSBox);
     this._groupBox4.Controls.Add(this._label8);
     this._groupBox4.Controls.Add(this._updateHCheck);
     this._groupBox4.Controls.Add(this._fillHBox);
     this._groupBox4.Controls.Add(this._label7);
     this._groupBox4.Location = new System.Drawing.Point(300, 245);
     this._groupBox4.Name     = "_groupBox4";
     this._groupBox4.Size     = new System.Drawing.Size(170, 100);
     this._groupBox4.TabIndex = 5;
     this._groupBox4.TabStop  = false;
     this._groupBox4.Text     = "Fill Color";
     //
     // _updateLCheck
     //
     this._updateLCheck.Checked         = true;
     this._updateLCheck.CheckState      = System.Windows.Forms.CheckState.Checked;
     this._updateLCheck.Location        = new System.Drawing.Point(125, 70);
     this._updateLCheck.Name            = "_updateLCheck";
     this._updateLCheck.Size            = new System.Drawing.Size(14, 24);
     this._updateLCheck.TabIndex        = 8;
     this._updateLCheck.CheckedChanged += new System.EventHandler(this.updateLCheck_CheckedChanged);
     //
     // _fillLBox
     //
     this._fillLBox.Location     = new System.Drawing.Point(40, 70);
     this._fillLBox.Name         = "_fillLBox";
     this._fillLBox.Size         = new System.Drawing.Size(50, 20);
     this._fillLBox.TabIndex     = 7;
     this._fillLBox.TextChanged += new System.EventHandler(this.fillLBox_TextChanged);
     //
     // _label9
     //
     this._label9.Location = new System.Drawing.Point(10, 73);
     this._label9.Name     = "_label9";
     this._label9.Size     = new System.Drawing.Size(20, 16);
     this._label9.TabIndex = 6;
     this._label9.Text     = "L:";
     //
     // _updateSCheck
     //
     this._updateSCheck.Checked         = true;
     this._updateSCheck.CheckState      = System.Windows.Forms.CheckState.Checked;
     this._updateSCheck.Location        = new System.Drawing.Point(125, 45);
     this._updateSCheck.Name            = "_updateSCheck";
     this._updateSCheck.Size            = new System.Drawing.Size(14, 24);
     this._updateSCheck.TabIndex        = 5;
     this._updateSCheck.CheckedChanged += new System.EventHandler(this.updateSCheck_CheckedChanged);
     //
     // _fillSBox
     //
     this._fillSBox.Location     = new System.Drawing.Point(40, 45);
     this._fillSBox.Name         = "_fillSBox";
     this._fillSBox.Size         = new System.Drawing.Size(50, 20);
     this._fillSBox.TabIndex     = 4;
     this._fillSBox.TextChanged += new System.EventHandler(this.fillSBox_TextChanged);
     //
     // _label8
     //
     this._label8.Location = new System.Drawing.Point(10, 48);
     this._label8.Name     = "_label8";
     this._label8.Size     = new System.Drawing.Size(20, 16);
     this._label8.TabIndex = 3;
     this._label8.Text     = "S:";
     //
     // _updateHCheck
     //
     this._updateHCheck.Checked         = true;
     this._updateHCheck.CheckState      = System.Windows.Forms.CheckState.Checked;
     this._updateHCheck.Location        = new System.Drawing.Point(125, 20);
     this._updateHCheck.Name            = "_updateHCheck";
     this._updateHCheck.Size            = new System.Drawing.Size(14, 24);
     this._updateHCheck.TabIndex        = 2;
     this._updateHCheck.CheckedChanged += new System.EventHandler(this.updateHCheck_CheckedChanged);
     //
     // _fillHBox
     //
     this._fillHBox.Location     = new System.Drawing.Point(40, 20);
     this._fillHBox.Name         = "_fillHBox";
     this._fillHBox.Size         = new System.Drawing.Size(50, 20);
     this._fillHBox.TabIndex     = 1;
     this._fillHBox.TextChanged += new System.EventHandler(this.fillHBox_TextChanged);
     //
     // _label7
     //
     this._label7.Location = new System.Drawing.Point(10, 23);
     this._label7.Name     = "_label7";
     this._label7.Size     = new System.Drawing.Size(20, 16);
     this._label7.TabIndex = 0;
     this._label7.Text     = "H:";
     //
     // _fillTypeCombo
     //
     this._fillTypeCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this._fillTypeCombo.Items.AddRange(new object[] {
         "Outside",
         "Inside"
     });
     this._fillTypeCombo.Location              = new System.Drawing.Point(300, 379);
     this._fillTypeCombo.Name                  = "_fillTypeCombo";
     this._fillTypeCombo.Size                  = new System.Drawing.Size(170, 21);
     this._fillTypeCombo.TabIndex              = 10;
     this._fillTypeCombo.SelectedIndexChanged += new System.EventHandler(this.fillTypeCombo_SelectedIndexChanged);
     //
     // _label10
     //
     this._label10.AutoSize = true;
     this._label10.Location = new System.Drawing.Point(297, 352);
     this._label10.Name     = "_label10";
     this._label10.Size     = new System.Drawing.Size(45, 13);
     this._label10.TabIndex = 13;
     this._label10.Text     = "Fill type:";
     //
     // _cancelButton
     //
     this._cancelButton.AutoSize     = true;
     this._cancelButton.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this._cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this._cancelButton.FlatStyle    = System.Windows.Forms.FlatStyle.Flat;
     this._cancelButton.Location     = new System.Drawing.Point(570, 407);
     this._cancelButton.Name         = "_cancelButton";
     this._cancelButton.Size         = new System.Drawing.Size(52, 25);
     this._cancelButton.TabIndex     = 12;
     this._cancelButton.Text         = "Cancel";
     //
     // _okButton
     //
     this._okButton.AutoSize     = true;
     this._okButton.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this._okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
     this._okButton.FlatStyle    = System.Windows.Forms.FlatStyle.Flat;
     this._okButton.Location     = new System.Drawing.Point(531, 407);
     this._okButton.Name         = "_okButton";
     this._okButton.Size         = new System.Drawing.Size(33, 25);
     this._okButton.TabIndex     = 11;
     this._okButton.Text         = "Ok";
     this._okButton.Click       += new System.EventHandler(this._okButton_Click);
     //
     // llblHelp
     //
     this.llblHelp.AutoSize     = true;
     this.llblHelp.Location     = new System.Drawing.Point(476, 413);
     this.llblHelp.Name         = "llblHelp";
     this.llblHelp.Size         = new System.Drawing.Size(29, 13);
     this.llblHelp.TabIndex     = 64;
     this.llblHelp.TabStop      = true;
     this.llblHelp.Text         = "Help";
     this.llblHelp.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.llblHelp_LinkClicked);
     //
     // HSLFilteringForm
     //
     this.AcceptButton      = this._okButton;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton      = this._cancelButton;
     this.ClientSize        = new System.Drawing.Size(634, 439);
     this.Controls.Add(this.llblHelp);
     this.Controls.Add(this._fillTypeCombo);
     this.Controls.Add(this._label10);
     this.Controls.Add(this._cancelButton);
     this.Controls.Add(this._okButton);
     this.Controls.Add(this._groupBox4);
     this.Controls.Add(this._groupBox5);
     this.Controls.Add(this._groupBox3);
     this.Controls.Add(this._groupBox2);
     this.Controls.Add(this._groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "HSLFilteringForm";
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "HSL Filtering";
     this.Load           += new System.EventHandler(this.HSLFilteringForm_Load);
     this._groupBox1.ResumeLayout(false);
     this._groupBox1.PerformLayout();
     this._groupBox2.ResumeLayout(false);
     this._groupBox2.PerformLayout();
     this._groupBox3.ResumeLayout(false);
     this._groupBox3.PerformLayout();
     this._groupBox5.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this._filterPreview)).EndInit();
     this._groupBox4.ResumeLayout(false);
     this._groupBox4.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Ejemplo n.º 6
0
 public void PositionPanel(PictureBox p, Point xy, int w, int h)
 {
     p.Width    = w;
     p.Height   = h;
     p.Location = new Point(xy.X, xy.Y);
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this._groupBox1        = new System.Windows.Forms.GroupBox();
     this._maxHBox          = new System.Windows.Forms.TextBox();
     this._label2           = new System.Windows.Forms.Label();
     this._minHBox          = new System.Windows.Forms.TextBox();
     this._label1           = new System.Windows.Forms.Label();
     this._huePicker        = new iSpyApplication.Controls.HuePicker();
     this._groupBox2        = new System.Windows.Forms.GroupBox();
     this._saturationSlider = new iSpyApplication.Controls.ColorSlider();
     this._maxSBox          = new System.Windows.Forms.TextBox();
     this._minSBox          = new System.Windows.Forms.TextBox();
     this._label4           = new System.Windows.Forms.Label();
     this._label3           = new System.Windows.Forms.Label();
     this._groupBox3        = new System.Windows.Forms.GroupBox();
     this._luminanceSlider  = new iSpyApplication.Controls.ColorSlider();
     this._maxLBox          = new System.Windows.Forms.TextBox();
     this._minLBox          = new System.Windows.Forms.TextBox();
     this._label5           = new System.Windows.Forms.Label();
     this._label6           = new System.Windows.Forms.Label();
     this._groupBox5        = new System.Windows.Forms.GroupBox();
     this._filterPreview    = new iSpyApplication.Controls.PictureBox();
     this._groupBox4        = new System.Windows.Forms.GroupBox();
     this._updateLCheck     = new System.Windows.Forms.CheckBox();
     this._fillLBox         = new System.Windows.Forms.TextBox();
     this._label9           = new System.Windows.Forms.Label();
     this._updateSCheck     = new System.Windows.Forms.CheckBox();
     this._fillSBox         = new System.Windows.Forms.TextBox();
     this._label8           = new System.Windows.Forms.Label();
     this._updateHCheck     = new System.Windows.Forms.CheckBox();
     this._fillHBox         = new System.Windows.Forms.TextBox();
     this._label7           = new System.Windows.Forms.Label();
     this._fillTypeCombo    = new System.Windows.Forms.ComboBox();
     this._label10          = new System.Windows.Forms.Label();
     this._cancelButton     = new System.Windows.Forms.Button();
     this._okButton         = new System.Windows.Forms.Button();
     this._groupBox1.SuspendLayout();
     this._groupBox2.SuspendLayout();
     this._groupBox3.SuspendLayout();
     this._groupBox5.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this._filterPreview)).BeginInit();
     this._groupBox4.SuspendLayout();
     this.SuspendLayout();
     //
     // _groupBox1
     //
     this._groupBox1.Controls.Add(this._maxHBox);
     this._groupBox1.Controls.Add(this._label2);
     this._groupBox1.Controls.Add(this._minHBox);
     this._groupBox1.Controls.Add(this._label1);
     this._groupBox1.Controls.Add(this._huePicker);
     this._groupBox1.ForeColor = System.Drawing.Color.White;
     this._groupBox1.Location  = new System.Drawing.Point(10, 10);
     this._groupBox1.Name      = "_groupBox1";
     this._groupBox1.Size      = new System.Drawing.Size(368, 230);
     this._groupBox1.TabIndex  = 1;
     this._groupBox1.TabStop   = false;
     this._groupBox1.Text      = "Hue";
     //
     // _maxHBox
     //
     this._maxHBox.Location     = new System.Drawing.Point(222, 17);
     this._maxHBox.Name         = "_maxHBox";
     this._maxHBox.Size         = new System.Drawing.Size(90, 27);
     this._maxHBox.TabIndex     = 4;
     this._maxHBox.TextChanged += new System.EventHandler(this.maxHBox_TextChanged);
     //
     // _label2
     //
     this._label2.Location = new System.Drawing.Point(167, 23);
     this._label2.Name     = "_label2";
     this._label2.Size     = new System.Drawing.Size(64, 21);
     this._label2.TabIndex = 3;
     this._label2.Text     = "Max:";
     //
     // _minHBox
     //
     this._minHBox.Location     = new System.Drawing.Point(80, 17);
     this._minHBox.Name         = "_minHBox";
     this._minHBox.Size         = new System.Drawing.Size(81, 27);
     this._minHBox.TabIndex     = 2;
     this._minHBox.TextChanged += new System.EventHandler(this.minHBox_TextChanged);
     //
     // _label1
     //
     this._label1.Location = new System.Drawing.Point(9, 23);
     this._label1.Name     = "_label1";
     this._label1.Size     = new System.Drawing.Size(65, 21);
     this._label1.TabIndex = 1;
     this._label1.Text     = "Min:";
     //
     // _huePicker
     //
     this._huePicker.Location       = new System.Drawing.Point(102, 50);
     this._huePicker.Name           = "_huePicker";
     this._huePicker.Size           = new System.Drawing.Size(178, 170);
     this._huePicker.TabIndex       = 0;
     this._huePicker.Type           = iSpyApplication.Controls.HuePicker.HuePickerType.Range;
     this._huePicker.ValuesChanged += new System.EventHandler(this.huePicker_ValuesChanged);
     this._huePicker.Click         += new System.EventHandler(this._huePicker_Click);
     //
     // _groupBox2
     //
     this._groupBox2.Controls.Add(this._saturationSlider);
     this._groupBox2.Controls.Add(this._maxSBox);
     this._groupBox2.Controls.Add(this._minSBox);
     this._groupBox2.Controls.Add(this._label4);
     this._groupBox2.Controls.Add(this._label3);
     this._groupBox2.ForeColor = System.Drawing.Color.White;
     this._groupBox2.Location  = new System.Drawing.Point(10, 245);
     this._groupBox2.Name      = "_groupBox2";
     this._groupBox2.Size      = new System.Drawing.Size(280, 104);
     this._groupBox2.TabIndex  = 2;
     this._groupBox2.TabStop   = false;
     this._groupBox2.Text      = "Saturation";
     //
     // _saturationSlider
     //
     this._saturationSlider.Location       = new System.Drawing.Point(8, 65);
     this._saturationSlider.Name           = "_saturationSlider";
     this._saturationSlider.Size           = new System.Drawing.Size(262, 23);
     this._saturationSlider.TabIndex       = 4;
     this._saturationSlider.Type           = iSpyApplication.Controls.ColorSlider.ColorSliderType.InnerGradient;
     this._saturationSlider.ValuesChanged += new System.EventHandler(this.saturationSlider_ValuesChanged);
     //
     // _maxSBox
     //
     this._maxSBox.Location     = new System.Drawing.Point(193, 20);
     this._maxSBox.Name         = "_maxSBox";
     this._maxSBox.Size         = new System.Drawing.Size(75, 27);
     this._maxSBox.TabIndex     = 3;
     this._maxSBox.TextChanged += new System.EventHandler(this.maxSBox_TextChanged);
     //
     // _minSBox
     //
     this._minSBox.Location     = new System.Drawing.Point(68, 20);
     this._minSBox.Name         = "_minSBox";
     this._minSBox.Size         = new System.Drawing.Size(50, 27);
     this._minSBox.TabIndex     = 2;
     this._minSBox.TextChanged += new System.EventHandler(this.minSBox_TextChanged);
     //
     // _label4
     //
     this._label4.Location = new System.Drawing.Point(138, 23);
     this._label4.Name     = "_label4";
     this._label4.Size     = new System.Drawing.Size(62, 17);
     this._label4.TabIndex = 1;
     this._label4.Text     = "Max:";
     //
     // _label3
     //
     this._label3.Location = new System.Drawing.Point(10, 23);
     this._label3.Name     = "_label3";
     this._label3.Size     = new System.Drawing.Size(51, 16);
     this._label3.TabIndex = 0;
     this._label3.Text     = "Min:";
     //
     // _groupBox3
     //
     this._groupBox3.Controls.Add(this._luminanceSlider);
     this._groupBox3.Controls.Add(this._maxLBox);
     this._groupBox3.Controls.Add(this._minLBox);
     this._groupBox3.Controls.Add(this._label5);
     this._groupBox3.Controls.Add(this._label6);
     this._groupBox3.ForeColor = System.Drawing.Color.White;
     this._groupBox3.Location  = new System.Drawing.Point(10, 355);
     this._groupBox3.Name      = "_groupBox3";
     this._groupBox3.Size      = new System.Drawing.Size(280, 99);
     this._groupBox3.TabIndex  = 3;
     this._groupBox3.TabStop   = false;
     this._groupBox3.Text      = "Luminance";
     //
     // _luminanceSlider
     //
     this._luminanceSlider.Location       = new System.Drawing.Point(8, 70);
     this._luminanceSlider.Name           = "_luminanceSlider";
     this._luminanceSlider.Size           = new System.Drawing.Size(262, 23);
     this._luminanceSlider.TabIndex       = 9;
     this._luminanceSlider.Type           = iSpyApplication.Controls.ColorSlider.ColorSliderType.InnerGradient;
     this._luminanceSlider.ValuesChanged += new System.EventHandler(this.luminanceSlider_ValuesChanged);
     //
     // _maxLBox
     //
     this._maxLBox.Location     = new System.Drawing.Point(218, 20);
     this._maxLBox.Name         = "_maxLBox";
     this._maxLBox.Size         = new System.Drawing.Size(50, 27);
     this._maxLBox.TabIndex     = 8;
     this._maxLBox.TextChanged += new System.EventHandler(this.maxLBox_TextChanged);
     //
     // _minLBox
     //
     this._minLBox.Location     = new System.Drawing.Point(68, 20);
     this._minLBox.Name         = "_minLBox";
     this._minLBox.Size         = new System.Drawing.Size(50, 27);
     this._minLBox.TabIndex     = 7;
     this._minLBox.TextChanged += new System.EventHandler(this.minLBox_TextChanged);
     //
     // _label5
     //
     this._label5.Location = new System.Drawing.Point(150, 23);
     this._label5.Name     = "_label5";
     this._label5.Size     = new System.Drawing.Size(62, 17);
     this._label5.TabIndex = 6;
     this._label5.Text     = "Max:";
     //
     // _label6
     //
     this._label6.Location = new System.Drawing.Point(9, 26);
     this._label6.Name     = "_label6";
     this._label6.Size     = new System.Drawing.Size(52, 16);
     this._label6.TabIndex = 5;
     this._label6.Text     = "Min:";
     //
     // _groupBox5
     //
     this._groupBox5.Controls.Add(this._filterPreview);
     this._groupBox5.ForeColor = System.Drawing.Color.White;
     this._groupBox5.Location  = new System.Drawing.Point(400, 10);
     this._groupBox5.Name      = "_groupBox5";
     this._groupBox5.Size      = new System.Drawing.Size(284, 182);
     this._groupBox5.TabIndex  = 4;
     this._groupBox5.TabStop   = false;
     this._groupBox5.Text      = "Detector View";
     //
     // _filterPreview
     //
     this._filterPreview.Dock     = System.Windows.Forms.DockStyle.Fill;
     this._filterPreview.Image    = null;
     this._filterPreview.Location = new System.Drawing.Point(3, 23);
     this._filterPreview.Name     = "_filterPreview";
     this._filterPreview.Size     = new System.Drawing.Size(278, 156);
     this._filterPreview.TabIndex = 0;
     this._filterPreview.TabStop  = false;
     this._filterPreview.Click   += new System.EventHandler(this._filterPreview_Click);
     //
     // _groupBox4
     //
     this._groupBox4.Controls.Add(this._updateLCheck);
     this._groupBox4.Controls.Add(this._fillLBox);
     this._groupBox4.Controls.Add(this._label9);
     this._groupBox4.Controls.Add(this._updateSCheck);
     this._groupBox4.Controls.Add(this._fillSBox);
     this._groupBox4.Controls.Add(this._label8);
     this._groupBox4.Controls.Add(this._updateHCheck);
     this._groupBox4.Controls.Add(this._fillHBox);
     this._groupBox4.Controls.Add(this._label7);
     this._groupBox4.ForeColor = System.Drawing.Color.White;
     this._groupBox4.Location  = new System.Drawing.Point(296, 326);
     this._groupBox4.Name      = "_groupBox4";
     this._groupBox4.Size      = new System.Drawing.Size(170, 100);
     this._groupBox4.TabIndex  = 5;
     this._groupBox4.TabStop   = false;
     this._groupBox4.Text      = "Fill Color";
     //
     // _updateLCheck
     //
     this._updateLCheck.Checked         = true;
     this._updateLCheck.CheckState      = System.Windows.Forms.CheckState.Checked;
     this._updateLCheck.Location        = new System.Drawing.Point(125, 70);
     this._updateLCheck.Name            = "_updateLCheck";
     this._updateLCheck.Size            = new System.Drawing.Size(14, 24);
     this._updateLCheck.TabIndex        = 8;
     this._updateLCheck.CheckedChanged += new System.EventHandler(this.updateLCheck_CheckedChanged);
     //
     // _fillLBox
     //
     this._fillLBox.Location     = new System.Drawing.Point(40, 70);
     this._fillLBox.Name         = "_fillLBox";
     this._fillLBox.Size         = new System.Drawing.Size(50, 27);
     this._fillLBox.TabIndex     = 7;
     this._fillLBox.TextChanged += new System.EventHandler(this.fillLBox_TextChanged);
     //
     // _label9
     //
     this._label9.Location = new System.Drawing.Point(10, 73);
     this._label9.Name     = "_label9";
     this._label9.Size     = new System.Drawing.Size(20, 16);
     this._label9.TabIndex = 6;
     this._label9.Text     = "L:";
     //
     // _updateSCheck
     //
     this._updateSCheck.Checked         = true;
     this._updateSCheck.CheckState      = System.Windows.Forms.CheckState.Checked;
     this._updateSCheck.Location        = new System.Drawing.Point(125, 45);
     this._updateSCheck.Name            = "_updateSCheck";
     this._updateSCheck.Size            = new System.Drawing.Size(14, 24);
     this._updateSCheck.TabIndex        = 5;
     this._updateSCheck.CheckedChanged += new System.EventHandler(this.updateSCheck_CheckedChanged);
     //
     // _fillSBox
     //
     this._fillSBox.Location     = new System.Drawing.Point(40, 45);
     this._fillSBox.Name         = "_fillSBox";
     this._fillSBox.Size         = new System.Drawing.Size(50, 27);
     this._fillSBox.TabIndex     = 4;
     this._fillSBox.TextChanged += new System.EventHandler(this.fillSBox_TextChanged);
     //
     // _label8
     //
     this._label8.Location = new System.Drawing.Point(10, 48);
     this._label8.Name     = "_label8";
     this._label8.Size     = new System.Drawing.Size(20, 16);
     this._label8.TabIndex = 3;
     this._label8.Text     = "S:";
     //
     // _updateHCheck
     //
     this._updateHCheck.Checked         = true;
     this._updateHCheck.CheckState      = System.Windows.Forms.CheckState.Checked;
     this._updateHCheck.Location        = new System.Drawing.Point(125, 20);
     this._updateHCheck.Name            = "_updateHCheck";
     this._updateHCheck.Size            = new System.Drawing.Size(14, 24);
     this._updateHCheck.TabIndex        = 2;
     this._updateHCheck.CheckedChanged += new System.EventHandler(this.updateHCheck_CheckedChanged);
     //
     // _fillHBox
     //
     this._fillHBox.Location     = new System.Drawing.Point(40, 20);
     this._fillHBox.Name         = "_fillHBox";
     this._fillHBox.Size         = new System.Drawing.Size(50, 27);
     this._fillHBox.TabIndex     = 1;
     this._fillHBox.TextChanged += new System.EventHandler(this.fillHBox_TextChanged);
     //
     // _label7
     //
     this._label7.Location = new System.Drawing.Point(10, 23);
     this._label7.Name     = "_label7";
     this._label7.Size     = new System.Drawing.Size(20, 16);
     this._label7.TabIndex = 0;
     this._label7.Text     = "H:";
     //
     // _fillTypeCombo
     //
     this._fillTypeCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this._fillTypeCombo.Items.AddRange(new object[] {
         "Outside",
         "Inside"
     });
     this._fillTypeCombo.Location              = new System.Drawing.Point(472, 355);
     this._fillTypeCombo.Name                  = "_fillTypeCombo";
     this._fillTypeCombo.Size                  = new System.Drawing.Size(170, 26);
     this._fillTypeCombo.TabIndex              = 10;
     this._fillTypeCombo.SelectedIndexChanged += new System.EventHandler(this.fillTypeCombo_SelectedIndexChanged);
     //
     // _label10
     //
     this._label10.AutoSize  = true;
     this._label10.ForeColor = System.Drawing.Color.White;
     this._label10.Location  = new System.Drawing.Point(469, 334);
     this._label10.Name      = "_label10";
     this._label10.Size      = new System.Drawing.Size(81, 18);
     this._label10.TabIndex  = 13;
     this._label10.Text      = "Fill type:";
     //
     // _cancelButton
     //
     this._cancelButton.AutoSizeMode            = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this._cancelButton.BackColor               = System.Drawing.Color.Black;
     this._cancelButton.DialogResult            = System.Windows.Forms.DialogResult.Cancel;
     this._cancelButton.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this._cancelButton.Font                    = new System.Drawing.Font("Verdana", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this._cancelButton.ForeColor               = System.Drawing.Color.White;
     this._cancelButton.Location                = new System.Drawing.Point(670, 405);
     this._cancelButton.Name                    = "_cancelButton";
     this._cancelButton.Size                    = new System.Drawing.Size(160, 49);
     this._cancelButton.TabIndex                = 12;
     this._cancelButton.Text                    = "Cancel";
     this._cancelButton.UseVisualStyleBackColor = false;
     //
     // _okButton
     //
     this._okButton.AutoSizeMode            = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this._okButton.BackColor               = System.Drawing.Color.Black;
     this._okButton.DialogResult            = System.Windows.Forms.DialogResult.OK;
     this._okButton.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this._okButton.Font                    = new System.Drawing.Font("Verdana", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this._okButton.ForeColor               = System.Drawing.Color.White;
     this._okButton.Location                = new System.Drawing.Point(503, 405);
     this._okButton.Name                    = "_okButton";
     this._okButton.Size                    = new System.Drawing.Size(161, 49);
     this._okButton.TabIndex                = 11;
     this._okButton.Text                    = "Ok";
     this._okButton.UseVisualStyleBackColor = false;
     this._okButton.Click                  += new System.EventHandler(this._okButton_Click);
     //
     // HSLFilteringForm
     //
     this.AcceptButton      = this._okButton;
     this.AutoScaleBaseSize = new System.Drawing.Size(9, 20);
     this.BackColor         = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     this.CancelButton      = this._cancelButton;
     this.ClientSize        = new System.Drawing.Size(868, 476);
     this.Controls.Add(this._fillTypeCombo);
     this.Controls.Add(this._label10);
     this.Controls.Add(this._cancelButton);
     this.Controls.Add(this._okButton);
     this.Controls.Add(this._groupBox4);
     this.Controls.Add(this._groupBox5);
     this.Controls.Add(this._groupBox3);
     this.Controls.Add(this._groupBox2);
     this.Controls.Add(this._groupBox1);
     this.Font            = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "HSLFilteringForm";
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "HSL Filtering";
     this.Load           += new System.EventHandler(this.HSLFilteringForm_Load);
     this._groupBox1.ResumeLayout(false);
     this._groupBox1.PerformLayout();
     this._groupBox2.ResumeLayout(false);
     this._groupBox2.PerformLayout();
     this._groupBox3.ResumeLayout(false);
     this._groupBox3.PerformLayout();
     this._groupBox5.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this._filterPreview)).EndInit();
     this._groupBox4.ResumeLayout(false);
     this._groupBox4.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }