Пример #1
0
        public DataBindingViaDefaultConvertersFluentAPIUserControl()
        {
            InitializeComponent();
            #region SetUp
            MVVMContext mvvmContext = new MVVMContext();
            mvvmContext.ContainerControl = this;

            TrackBarControl trackBar = new TrackBarControl();
            trackBar.Dock = DockStyle.Top;
            trackBar.Properties.Minimum = 0;
            trackBar.Properties.Maximum = 100;

            TextEdit editor = new TextEdit();
            editor.Dock = DockStyle.Top;
            editor.Properties.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.Numeric;
            editor.Properties.Mask.EditMask = "P0";
            editor.Properties.Mask.UseMaskAsDisplayFormat = true;

            editor.Parent   = this;
            trackBar.Parent = this;
            #endregion SetUp

            #region #dataBindingViaDefaultConvertersFluentAPI
            // Set type of POCO-ViewModel
            mvvmContext.ViewModelType = typeof(ViewModel);
            // Data binding for the Progress property (via MVVMContext FluentAPI)
            var fluent = mvvmContext.OfType <ViewModel>();
            fluent.SetBinding(trackBar, e => e.EditValue, x => x.Progress);
            fluent.SetBinding(editor, e => e.EditValue, x => x.Progress);
            #endregion #dataBindingViaDefaultConvertersFluentAPI
        }
Пример #2
0
        private static void SetTrackBarFromZoom(TrackBarControl zoomTrackBarControl, int zoomInt)
        {
            switch (zoomInt)
            {
            case 50:
                zoomTrackBarControl.Value = 0;
                break;

            case 75:
                zoomTrackBarControl.Value = 1;
                break;

            case 100:
                zoomTrackBarControl.Value = 2;
                break;

            case 150:     //125
                zoomTrackBarControl.Value = 3;
                break;

            case 200:     //150
                zoomTrackBarControl.Value = 4;
                break;

            default:
                zoomTrackBarControl.Value = 2;
                break;
            }
        }
Пример #3
0
        /// <summary>
        /// Get ref to control when editor shown
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>

        private void ZoomSliderBarItem_ShownEditor(object sender, ItemClickEventArgs e)
        {
            if (e.Link != null && e.Link.Manager != null && e.Link.Manager.ActiveEditor is TrackBarControl)
            {             // get the active editor & add ValueChanged event to it
                ZoomSliderCtl = e.Link.Manager.ActiveEditor as TrackBarControl;
                ZoomSliderCtl.ValueChanged += new EventHandler(ZoomSlider_ValueChanged);
                ZoomSliderCtl.Properties.UseParentBackground = true;                 // needed for proper background display
            }
        }
Пример #4
0
        private void trackBarControl1_ValueChanged(object sender, EventArgs e)
        {
            try
            {
                if (!image.IsInitialized() || RunFlag)
                {
                    return;
                }
                RunFlag3 = true;
                TrackBarControl control = (TrackBarControl)sender;
                string          name    = control.Name;
                int             Num     = control.Value;
                switch (name)
                {
                case "trackBarControl1":
                    setting.maskWith     = Num;
                    numericUpDown3.Value = Num;
                    break;

                case "trackBarControl2":
                    setting.maskHeight   = Num;
                    numericUpDown4.Value = Num;
                    break;

                case "trackBarControl3":
                    setting.thresholdOffset = Num;
                    numericUpDown5.Value    = Num;
                    break;
                }
                HObject Region = new HObject();
                Region.Dispose();
                string Error = RunThreshold(image, out Region);
                if (window != null && Error == "OK")
                {
                    HOperatorSet.SetColor(window.HWindowHalconID, "red");
                    HOperatorSet.DispObj(Region, window.HWindowHalconID);
                }
                else
                {
                    MessageBox.Show(Error);
                }
                RunFlag3 = false;
            }
            catch (Exception)
            {
                RunFlag3 = false;
                throw;
            }
        }
Пример #5
0
        public LayoutControlItem CreateTrackItem(string captain, string prop, int min_value, int max_value, bool show_lable = false, bool is_readonly = false)
        {
            LayoutControlItem item     = new LayoutControlItem();
            TrackBarControl   textEdit = new TrackBarControl();
            int step = max_value - min_value > 5 ? 5 : 1;

            textEdit.Properties.ReadOnly = is_readonly;
            textEdit.DataBindings.Add("EditValue", bindingSource, prop);
            textEdit.Properties.Minimum = min_value;
            textEdit.Properties.Maximum = max_value;
            for (int i = min_value; i <= max_value; i += step)
            {
                textEdit.Properties.Labels.Add(new DevExpress.XtraEditors.Repository.TrackBarLabel(i.ToString(), i));
            }
            item.Control = textEdit;
            item.Text    = captain;

            return(item);
        }
Пример #6
0
        public override void Run(object sender, System.EventArgs e)
        {
            try
            {
                DF3DApplication app = DF3DApplication.Application;
                if (app == null || app.Current3DMapControl == null) return;
                TrackBarControl control = sender as TrackBarControl;
                if (control != null)
                {
                    double opac = double.Parse(control.EditValue.ToString()) / 100.0;
                    app.Current3DMapControl.Terrain.Opacity = opac;
                    string temp = (opac * 255.0).ToString();
                    int index = temp.IndexOf('.');
                    if (index == -1) return;
                    string stra = temp.Substring(0, index);
                    int a = int.Parse(stra);

                    //地形模型
                    List<DF3DFeatureClass> list = Dictionary3DTable.Instance.GetFeatureClassByFacilityClassName("DX3DMODEL");
                    if (list != null)
                    {
                        foreach (DF3DFeatureClass dffc in list)
                        {
                            IFeatureLayer fl = dffc.GetFeatureLayer();
                            if (fl == null) continue;

                            IModelPointSymbol mps = new ModelPointSymbol();
                            Color c = System.Drawing.Color.FromArgb(a, 255, 255, 255);
                            mps.Color = (uint)c.ToArgb();
                            mps.EnableColor = true;
                            ISimpleGeometryRender geoRender = new SimpleGeometryRender();
                            geoRender.Symbol = mps;
                            fl.SetGeometryRender(geoRender);
                        }
                    }
                }
            }
            catch (Exception ex)
            {

            }
        }
Пример #7
0
        private static int GetZoomFromTrackBar(TrackBarControl zoomTrackBarControl)
        {
            switch (zoomTrackBarControl.Value)
            {
            case 0:
                return(50);

            case 1:
                return(75);

            case 2:
                return(100);

            case 3:
                return(150);    //125

            case 4:
                return(200);    //150

            default:
                return(100);
            }
        }
Пример #8
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FrmVideo));

            this.pictureEdit1     = new PictureEdit();
            this.trackBarControl1 = new TrackBarControl();
            this.groupControl1    = new GroupControl();
            this.lbPeriod         = new LabelControl();
            this.btStop           = new SimpleButton();
            this.btPause          = new SimpleButton();
            this.btPlay           = new SimpleButton();
            this.pictureEdit1.Properties.BeginInit();
            ((ISupportInitialize)this.trackBarControl1).BeginInit();
            this.trackBarControl1.Properties.BeginInit();
            this.groupControl1.BeginInit();
            this.groupControl1.SuspendLayout();
            this.SuspendLayout();
            componentResourceManager.ApplyResources((object)this.pictureEdit1, "pictureEdit1");
            this.pictureEdit1.Name = "pictureEdit1";
            this.pictureEdit1.Properties.AccessibleDescription = componentResourceManager.GetString("pictureEdit1.Properties.AccessibleDescription");
            this.pictureEdit1.Properties.AccessibleName        = componentResourceManager.GetString("pictureEdit1.Properties.AccessibleName");
            this.pictureEdit1.Properties.PictureStoreMode      = PictureStoreMode.Image;
            this.pictureEdit1.Properties.SizeMode = PictureSizeMode.Zoom;
            componentResourceManager.ApplyResources((object)this.trackBarControl1, "trackBarControl1");
            this.trackBarControl1.Name = "trackBarControl1";
            this.trackBarControl1.Properties.AccessibleDescription = componentResourceManager.GetString("trackBarControl1.Properties.AccessibleDescription");
            this.trackBarControl1.Properties.AccessibleName        = componentResourceManager.GetString("trackBarControl1.Properties.AccessibleName");
            this.trackBarControl1.Properties.Orientation           = (Orientation)componentResourceManager.GetObject("trackBarControl1.Properties.Orientation");
            this.trackBarControl1.EditValueChanged += new EventHandler(this.trackBarControl1_EditValueChanged);
            componentResourceManager.ApplyResources((object)this.groupControl1, "groupControl1");
            this.groupControl1.Controls.Add((Control)this.lbPeriod);
            this.groupControl1.Controls.Add((Control)this.btStop);
            this.groupControl1.Controls.Add((Control)this.btPause);
            this.groupControl1.Controls.Add((Control)this.btPlay);
            this.groupControl1.Controls.Add((Control)this.trackBarControl1);
            this.groupControl1.Name        = "groupControl1";
            this.groupControl1.ShowCaption = false;
            componentResourceManager.ApplyResources((object)this.lbPeriod, "lbPeriod");
            this.lbPeriod.Name = "lbPeriod";
            componentResourceManager.ApplyResources((object)this.btStop, "btStop");
            this.btStop.Appearance.Font            = (Font)componentResourceManager.GetObject("btStop.Appearance.Font");
            this.btStop.Appearance.FontSizeDelta   = (int)componentResourceManager.GetObject("btStop.Appearance.FontSizeDelta");
            this.btStop.Appearance.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btStop.Appearance.FontStyleDelta");
            this.btStop.Appearance.GradientMode    = (LinearGradientMode)componentResourceManager.GetObject("btStop.Appearance.GradientMode");
            this.btStop.Appearance.Image           = (Image)componentResourceManager.GetObject("btStop.Appearance.Image");
            this.btStop.Appearance.Options.UseFont = true;
            this.btStop.Name   = "btStop";
            this.btStop.Click += new EventHandler(this.btStop_Click);
            componentResourceManager.ApplyResources((object)this.btPause, "btPause");
            this.btPause.Appearance.Font            = (Font)componentResourceManager.GetObject("btPause.Appearance.Font");
            this.btPause.Appearance.FontSizeDelta   = (int)componentResourceManager.GetObject("btPause.Appearance.FontSizeDelta");
            this.btPause.Appearance.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btPause.Appearance.FontStyleDelta");
            this.btPause.Appearance.GradientMode    = (LinearGradientMode)componentResourceManager.GetObject("btPause.Appearance.GradientMode");
            this.btPause.Appearance.Image           = (Image)componentResourceManager.GetObject("btPause.Appearance.Image");
            this.btPause.Appearance.Options.UseFont = true;
            this.btPause.Name   = "btPause";
            this.btPause.Click += new EventHandler(this.btPause_Click);
            componentResourceManager.ApplyResources((object)this.btPlay, "btPlay");
            this.btPlay.Appearance.Font            = (Font)componentResourceManager.GetObject("btPlay.Appearance.Font");
            this.btPlay.Appearance.FontSizeDelta   = (int)componentResourceManager.GetObject("btPlay.Appearance.FontSizeDelta");
            this.btPlay.Appearance.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btPlay.Appearance.FontStyleDelta");
            this.btPlay.Appearance.GradientMode    = (LinearGradientMode)componentResourceManager.GetObject("btPlay.Appearance.GradientMode");
            this.btPlay.Appearance.Image           = (Image)componentResourceManager.GetObject("btPlay.Appearance.Image");
            this.btPlay.Appearance.Options.UseFont = true;
            this.btPlay.Name   = "btPlay";
            this.btPlay.Click += new EventHandler(this.btPlay_Click);
            componentResourceManager.ApplyResources((object)this, "$this");
            this.AutoScaleMode = AutoScaleMode.Font;
            this.Controls.Add((Control)this.groupControl1);
            this.Controls.Add((Control)this.pictureEdit1);
            this.Name  = "FrmVideo";
            this.Load += new EventHandler(this.frmVideo_Load);
            this.pictureEdit1.Properties.EndInit();
            this.trackBarControl1.Properties.EndInit();
            ((ISupportInitialize)this.trackBarControl1).EndInit();
            this.groupControl1.EndInit();
            this.groupControl1.ResumeLayout(false);
            this.groupControl1.PerformLayout();
            this.ResumeLayout(false);
        }
Пример #9
0
 private void InitializeComponent()
 {
     this.components          = new System.ComponentModel.Container();
     this.layoutControl1      = new DevExpress.XtraLayout.LayoutControl();
     this.tbc_Date            = new DevExpress.XtraEditors.TrackBarControl();
     this.tbc_Time            = new DevExpress.XtraEditors.TrackBarControl();
     this.spe_Int             = new DevExpress.XtraEditors.SpinEdit();
     this.cmb_simu            = new DevExpress.XtraEditors.ComboBoxEdit();
     this.tbc_colorAlpha      = new DevExpress.XtraEditors.TrackBarControl();
     this.ce_color            = new DevExpress.XtraEditors.ColorPickEdit();
     this.cbeLunarHolDay      = new DevExpress.XtraEditors.ComboBoxEdit();
     this.te_time             = new DevExpress.XtraEditors.TimeEdit();
     this.de_data             = new DevExpress.XtraEditors.DateEdit();
     this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
     this.layoutControlGroup2 = new DevExpress.XtraLayout.LayoutControlGroup();
     this.layoutControlItem4  = new DevExpress.XtraLayout.LayoutControlItem();
     this.layoutControlItem5  = new DevExpress.XtraLayout.LayoutControlItem();
     this.layoutControlItem6  = new DevExpress.XtraLayout.LayoutControlItem();
     this.layoutControlItem7  = new DevExpress.XtraLayout.LayoutControlItem();
     this.layoutControlItem8  = new DevExpress.XtraLayout.LayoutControlItem();
     this.layoutControlGroup3 = new DevExpress.XtraLayout.LayoutControlGroup();
     this.layoutControlItem9  = new DevExpress.XtraLayout.LayoutControlItem();
     this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem();
     this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem();
     this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem();
     this.emptySpaceItem4     = new DevExpress.XtraLayout.EmptySpaceItem();
     this.barManager1         = new DevExpress.XtraBars.BarManager(this.components);
     this.bar1                 = new DevExpress.XtraBars.Bar();
     this.bci_Play             = new DevExpress.XtraBars.BarButtonItem();
     this.bci_Pause            = new DevExpress.XtraBars.BarButtonItem();
     this.bci_Stop             = new DevExpress.XtraBars.BarButtonItem();
     this.barDockControlTop    = new DevExpress.XtraBars.BarDockControl();
     this.barDockControlBottom = new DevExpress.XtraBars.BarDockControl();
     this.barDockControlLeft   = new DevExpress.XtraBars.BarDockControl();
     this.barDockControlRight  = new DevExpress.XtraBars.BarDockControl();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
     this.layoutControl1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.tbc_Date)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.tbc_Date.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.tbc_Time)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.tbc_Time.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.spe_Int.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.cmb_simu.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.tbc_colorAlpha)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.tbc_colorAlpha.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.ce_color.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.cbeLunarHolDay.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.te_time.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.de_data.Properties.CalendarTimeProperties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.de_data.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup3)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem4)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.barManager1)).BeginInit();
     this.SuspendLayout();
     //
     // layoutControl1
     //
     this.layoutControl1.Controls.Add(this.tbc_Date);
     this.layoutControl1.Controls.Add(this.tbc_Time);
     this.layoutControl1.Controls.Add(this.spe_Int);
     this.layoutControl1.Controls.Add(this.cmb_simu);
     this.layoutControl1.Controls.Add(this.tbc_colorAlpha);
     this.layoutControl1.Controls.Add(this.ce_color);
     this.layoutControl1.Controls.Add(this.cbeLunarHolDay);
     this.layoutControl1.Controls.Add(this.te_time);
     this.layoutControl1.Controls.Add(this.de_data);
     this.layoutControl1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.layoutControl1.Location = new System.Drawing.Point(0, 31);
     this.layoutControl1.Name     = "layoutControl1";
     this.layoutControl1.Root     = this.layoutControlGroup1;
     this.layoutControl1.Size     = new System.Drawing.Size(253, 444);
     this.layoutControl1.TabIndex = 0;
     this.layoutControl1.Text     = "layoutControl1";
     //
     // tbc_Date
     //
     this.tbc_Date.EditValue = null;
     this.tbc_Date.Location  = new System.Drawing.Point(77, 332);
     this.tbc_Date.Name      = "tbc_Date";
     this.tbc_Date.Properties.LabelAppearance.Options.UseTextOptions = true;
     this.tbc_Date.Properties.LabelAppearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.tbc_Date.Properties.LargeChange   = 30;
     this.tbc_Date.Properties.Maximum       = 366;
     this.tbc_Date.Properties.TickFrequency = 15;
     this.tbc_Date.Size              = new System.Drawing.Size(162, 45);
     this.tbc_Date.StyleController   = this.layoutControl1;
     this.tbc_Date.TabIndex          = 15;
     this.tbc_Date.EditValueChanged += new System.EventHandler(this.tbc_Date_EditValueChanged);
     //
     // tbc_Time
     //
     this.tbc_Time.EditValue = null;
     this.tbc_Time.Location  = new System.Drawing.Point(77, 283);
     this.tbc_Time.Name      = "tbc_Time";
     this.tbc_Time.Properties.LabelAppearance.Options.UseTextOptions = true;
     this.tbc_Time.Properties.LabelAppearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.tbc_Time.Properties.LargeChange   = 60;
     this.tbc_Time.Properties.Maximum       = 1440;
     this.tbc_Time.Properties.TickFrequency = 60;
     this.tbc_Time.Size              = new System.Drawing.Size(162, 45);
     this.tbc_Time.StyleController   = this.layoutControl1;
     this.tbc_Time.TabIndex          = 14;
     this.tbc_Time.EditValueChanged += new System.EventHandler(this.tbc_Time_EditValueChanged);
     //
     // spe_Int
     //
     this.spe_Int.EditValue = new decimal(new int[] {
         10,
         0,
         0,
         0
     });
     this.spe_Int.Location = new System.Drawing.Point(77, 257);
     this.spe_Int.Name     = "spe_Int";
     this.spe_Int.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
     });
     this.spe_Int.Properties.IsFloatValue  = false;
     this.spe_Int.Properties.Mask.EditMask = "N00";
     this.spe_Int.Properties.MaxValue      = new decimal(new int[] {
         60,
         0,
         0,
         0
     });
     this.spe_Int.Properties.MinValue = new decimal(new int[] {
         1,
         0,
         0,
         0
     });
     this.spe_Int.Size            = new System.Drawing.Size(162, 22);
     this.spe_Int.StyleController = this.layoutControl1;
     this.spe_Int.TabIndex        = 13;
     //
     // cmb_simu
     //
     this.cmb_simu.EditValue = "按时间(分钟)";
     this.cmb_simu.Location  = new System.Drawing.Point(77, 231);
     this.cmb_simu.Name      = "cmb_simu";
     this.cmb_simu.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
     });
     this.cmb_simu.Size            = new System.Drawing.Size(162, 22);
     this.cmb_simu.StyleController = this.layoutControl1;
     this.cmb_simu.TabIndex        = 12;
     //
     // tbc_colorAlpha
     //
     this.tbc_colorAlpha.EditValue = 255;
     this.tbc_colorAlpha.Location  = new System.Drawing.Point(77, 138);
     this.tbc_colorAlpha.Name      = "tbc_colorAlpha";
     this.tbc_colorAlpha.Properties.LabelAppearance.Options.UseTextOptions = true;
     this.tbc_colorAlpha.Properties.LabelAppearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.tbc_colorAlpha.Properties.Maximum       = 255;
     this.tbc_colorAlpha.Properties.TickFrequency = 5;
     this.tbc_colorAlpha.Size              = new System.Drawing.Size(162, 45);
     this.tbc_colorAlpha.StyleController   = this.layoutControl1;
     this.tbc_colorAlpha.TabIndex          = 11;
     this.tbc_colorAlpha.Value             = 255;
     this.tbc_colorAlpha.EditValueChanged += new System.EventHandler(this.tbc_colorAlpha_EditValueChanged);
     //
     // ce_color
     //
     this.ce_color.EditValue = System.Drawing.Color.Black;
     this.ce_color.Location  = new System.Drawing.Point(77, 112);
     this.ce_color.Name      = "ce_color";
     this.ce_color.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
     });
     this.ce_color.Size              = new System.Drawing.Size(162, 22);
     this.ce_color.StyleController   = this.layoutControl1;
     this.ce_color.TabIndex          = 10;
     this.ce_color.EditValueChanged += new System.EventHandler(this.ce_color_EditValueChanged);
     //
     // cbeLunarHolDay
     //
     this.cbeLunarHolDay.Location = new System.Drawing.Point(77, 86);
     this.cbeLunarHolDay.Name     = "cbeLunarHolDay";
     this.cbeLunarHolDay.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
     });
     this.cbeLunarHolDay.Size            = new System.Drawing.Size(162, 22);
     this.cbeLunarHolDay.StyleController = this.layoutControl1;
     this.cbeLunarHolDay.TabIndex        = 9;
     //
     // te_time
     //
     this.te_time.EditValue = new System.DateTime(2018, 1, 5, 0, 0, 0, 0);
     this.te_time.Location  = new System.Drawing.Point(77, 60);
     this.te_time.Name      = "te_time";
     this.te_time.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
     });
     this.te_time.Size               = new System.Drawing.Size(162, 22);
     this.te_time.StyleController    = this.layoutControl1;
     this.te_time.TabIndex           = 8;
     this.te_time.EditValueChanging += new DevExpress.XtraEditors.Controls.ChangingEventHandler(this.te_time_EditValueChanging);
     //
     // de_data
     //
     this.de_data.EditValue = null;
     this.de_data.Location  = new System.Drawing.Point(77, 34);
     this.de_data.Name      = "de_data";
     this.de_data.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
     });
     this.de_data.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
     });
     this.de_data.Size              = new System.Drawing.Size(162, 22);
     this.de_data.StyleController   = this.layoutControl1;
     this.de_data.TabIndex          = 7;
     this.de_data.EditValueChanged += new System.EventHandler(this.de_data_EditValueChanged);
     //
     // layoutControlGroup1
     //
     this.layoutControlGroup1.CustomizationFormText       = "layoutControlGroup1";
     this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
     this.layoutControlGroup1.GroupBordersVisible         = false;
     this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
         this.layoutControlGroup2,
         this.layoutControlGroup3,
         this.emptySpaceItem4
     });
     this.layoutControlGroup1.Location    = new System.Drawing.Point(0, 0);
     this.layoutControlGroup1.Name        = "layoutControlGroup1";
     this.layoutControlGroup1.Padding     = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
     this.layoutControlGroup1.Size        = new System.Drawing.Size(253, 444);
     this.layoutControlGroup1.Text        = "layoutControlGroup1";
     this.layoutControlGroup1.TextVisible = false;
     //
     // layoutControlGroup2
     //
     this.layoutControlGroup2.CustomizationFormText = "基本设置";
     this.layoutControlGroup2.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
         this.layoutControlItem4,
         this.layoutControlItem5,
         this.layoutControlItem6,
         this.layoutControlItem7,
         this.layoutControlItem8
     });
     this.layoutControlGroup2.Location = new System.Drawing.Point(0, 0);
     this.layoutControlGroup2.Name     = "layoutControlGroup2";
     this.layoutControlGroup2.Size     = new System.Drawing.Size(253, 197);
     this.layoutControlGroup2.Text     = "基本设置";
     //
     // layoutControlItem4
     //
     this.layoutControlItem4.Control = this.de_data;
     this.layoutControlItem4.CustomizationFormText = "layoutControlItem4";
     this.layoutControlItem4.Location = new System.Drawing.Point(0, 0);
     this.layoutControlItem4.Name     = "layoutControlItem4";
     this.layoutControlItem4.Size     = new System.Drawing.Size(229, 26);
     this.layoutControlItem4.Text     = "当前日期:";
     this.layoutControlItem4.TextSize = new System.Drawing.Size(60, 14);
     //
     // layoutControlItem5
     //
     this.layoutControlItem5.Control = this.te_time;
     this.layoutControlItem5.CustomizationFormText = "时间:";
     this.layoutControlItem5.Location = new System.Drawing.Point(0, 26);
     this.layoutControlItem5.Name     = "layoutControlItem5";
     this.layoutControlItem5.Size     = new System.Drawing.Size(229, 26);
     this.layoutControlItem5.Text     = "当前时间:";
     this.layoutControlItem5.TextSize = new System.Drawing.Size(60, 14);
     //
     // layoutControlItem6
     //
     this.layoutControlItem6.Control = this.cbeLunarHolDay;
     this.layoutControlItem6.CustomizationFormText = "节气:";
     this.layoutControlItem6.Location = new System.Drawing.Point(0, 52);
     this.layoutControlItem6.Name     = "layoutControlItem6";
     this.layoutControlItem6.Size     = new System.Drawing.Size(229, 26);
     this.layoutControlItem6.Text     = "节气:";
     this.layoutControlItem6.TextSize = new System.Drawing.Size(60, 14);
     //
     // layoutControlItem7
     //
     this.layoutControlItem7.Control = this.ce_color;
     this.layoutControlItem7.CustomizationFormText = "阴影颜色:";
     this.layoutControlItem7.Location = new System.Drawing.Point(0, 78);
     this.layoutControlItem7.Name     = "layoutControlItem7";
     this.layoutControlItem7.Size     = new System.Drawing.Size(229, 26);
     this.layoutControlItem7.Text     = "阴影颜色:";
     this.layoutControlItem7.TextSize = new System.Drawing.Size(60, 14);
     //
     // layoutControlItem8
     //
     this.layoutControlItem8.Control = this.tbc_colorAlpha;
     this.layoutControlItem8.CustomizationFormText = "不透明度:";
     this.layoutControlItem8.Location = new System.Drawing.Point(0, 104);
     this.layoutControlItem8.Name     = "layoutControlItem8";
     this.layoutControlItem8.Size     = new System.Drawing.Size(229, 49);
     this.layoutControlItem8.Text     = "不透明度:";
     this.layoutControlItem8.TextSize = new System.Drawing.Size(60, 14);
     //
     // layoutControlGroup3
     //
     this.layoutControlGroup3.CustomizationFormText = "动态模拟";
     this.layoutControlGroup3.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
         this.layoutControlItem9,
         this.layoutControlItem10,
         this.layoutControlItem11,
         this.layoutControlItem12
     });
     this.layoutControlGroup3.Location = new System.Drawing.Point(0, 197);
     this.layoutControlGroup3.Name     = "layoutControlGroup3";
     this.layoutControlGroup3.Size     = new System.Drawing.Size(253, 194);
     this.layoutControlGroup3.Text     = "动态模拟";
     //
     // layoutControlItem9
     //
     this.layoutControlItem9.Control = this.cmb_simu;
     this.layoutControlItem9.CustomizationFormText = "模拟方式:";
     this.layoutControlItem9.Location = new System.Drawing.Point(0, 0);
     this.layoutControlItem9.Name     = "layoutControlItem9";
     this.layoutControlItem9.Size     = new System.Drawing.Size(229, 26);
     this.layoutControlItem9.Text     = "模拟方式:";
     this.layoutControlItem9.TextSize = new System.Drawing.Size(60, 14);
     //
     // layoutControlItem10
     //
     this.layoutControlItem10.Control = this.spe_Int;
     this.layoutControlItem10.CustomizationFormText = "时间间隔:";
     this.layoutControlItem10.Location = new System.Drawing.Point(0, 26);
     this.layoutControlItem10.Name     = "layoutControlItem10";
     this.layoutControlItem10.Size     = new System.Drawing.Size(229, 26);
     this.layoutControlItem10.Text     = "时间间隔:";
     this.layoutControlItem10.TextSize = new System.Drawing.Size(60, 14);
     //
     // layoutControlItem11
     //
     this.layoutControlItem11.Control = this.tbc_Time;
     this.layoutControlItem11.CustomizationFormText = "时间:";
     this.layoutControlItem11.Location = new System.Drawing.Point(0, 52);
     this.layoutControlItem11.Name     = "layoutControlItem11";
     this.layoutControlItem11.Size     = new System.Drawing.Size(229, 49);
     this.layoutControlItem11.Text     = "时间:";
     this.layoutControlItem11.TextSize = new System.Drawing.Size(60, 14);
     //
     // layoutControlItem12
     //
     this.layoutControlItem12.Control = this.tbc_Date;
     this.layoutControlItem12.CustomizationFormText = "日期:";
     this.layoutControlItem12.Location = new System.Drawing.Point(0, 101);
     this.layoutControlItem12.Name     = "layoutControlItem12";
     this.layoutControlItem12.Size     = new System.Drawing.Size(229, 49);
     this.layoutControlItem12.Text     = "日期:";
     this.layoutControlItem12.TextSize = new System.Drawing.Size(60, 14);
     //
     // emptySpaceItem4
     //
     this.emptySpaceItem4.AllowHotTrack         = false;
     this.emptySpaceItem4.CustomizationFormText = "emptySpaceItem4";
     this.emptySpaceItem4.Location = new System.Drawing.Point(0, 391);
     this.emptySpaceItem4.Name     = "emptySpaceItem4";
     this.emptySpaceItem4.Size     = new System.Drawing.Size(253, 53);
     this.emptySpaceItem4.Text     = "emptySpaceItem4";
     this.emptySpaceItem4.TextSize = new System.Drawing.Size(0, 0);
     //
     // barManager1
     //
     this.barManager1.Bars.AddRange(new DevExpress.XtraBars.Bar[] {
         this.bar1
     });
     this.barManager1.DockControls.Add(this.barDockControlTop);
     this.barManager1.DockControls.Add(this.barDockControlBottom);
     this.barManager1.DockControls.Add(this.barDockControlLeft);
     this.barManager1.DockControls.Add(this.barDockControlRight);
     this.barManager1.Form = this;
     this.barManager1.Items.AddRange(new DevExpress.XtraBars.BarItem[] {
         this.bci_Play,
         this.bci_Pause,
         this.bci_Stop
     });
     this.barManager1.MaxItemId = 3;
     //
     // bar1
     //
     this.bar1.BarName      = "Tools";
     this.bar1.CanDockStyle = DevExpress.XtraBars.BarCanDockStyle.Top;
     this.bar1.DockCol      = 0;
     this.bar1.DockRow      = 0;
     this.bar1.DockStyle    = DevExpress.XtraBars.BarDockStyle.Top;
     this.bar1.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] {
         new DevExpress.XtraBars.LinkPersistInfo(this.bci_Play),
         new DevExpress.XtraBars.LinkPersistInfo(this.bci_Pause),
         new DevExpress.XtraBars.LinkPersistInfo(this.bci_Stop)
     });
     this.bar1.OptionsBar.DrawDragBorder = false;
     this.bar1.Text = "Tools";
     //
     // bci_Play
     //
     this.bci_Play.Caption    = "播放";
     this.bci_Play.Id         = 0;
     this.bci_Play.Name       = "bci_Play";
     this.bci_Play.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.bci_Play_ItemClick);
     //
     // bci_Pause
     //
     this.bci_Pause.Caption    = "暂停";
     this.bci_Pause.Id         = 1;
     this.bci_Pause.Name       = "bci_Pause";
     this.bci_Pause.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.bci_Pause_ItemClick);
     //
     // bci_Stop
     //
     this.bci_Stop.Caption    = "停止";
     this.bci_Stop.Id         = 2;
     this.bci_Stop.Name       = "bci_Stop";
     this.bci_Stop.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.bci_Stop_ItemClick);
     //
     // barDockControlTop
     //
     this.barDockControlTop.CausesValidation = false;
     this.barDockControlTop.Dock             = System.Windows.Forms.DockStyle.Top;
     this.barDockControlTop.Location         = new System.Drawing.Point(0, 0);
     this.barDockControlTop.Size             = new System.Drawing.Size(253, 31);
     //
     // barDockControlBottom
     //
     this.barDockControlBottom.CausesValidation = false;
     this.barDockControlBottom.Dock             = System.Windows.Forms.DockStyle.Bottom;
     this.barDockControlBottom.Location         = new System.Drawing.Point(0, 475);
     this.barDockControlBottom.Size             = new System.Drawing.Size(253, 0);
     //
     // barDockControlLeft
     //
     this.barDockControlLeft.CausesValidation = false;
     this.barDockControlLeft.Dock             = System.Windows.Forms.DockStyle.Left;
     this.barDockControlLeft.Location         = new System.Drawing.Point(0, 31);
     this.barDockControlLeft.Size             = new System.Drawing.Size(0, 444);
     //
     // barDockControlRight
     //
     this.barDockControlRight.CausesValidation = false;
     this.barDockControlRight.Dock             = System.Windows.Forms.DockStyle.Right;
     this.barDockControlRight.Location         = new System.Drawing.Point(253, 31);
     this.barDockControlRight.Size             = new System.Drawing.Size(0, 444);
     //
     // UCSunSimulation
     //
     this.Controls.Add(this.layoutControl1);
     this.Controls.Add(this.barDockControlLeft);
     this.Controls.Add(this.barDockControlRight);
     this.Controls.Add(this.barDockControlBottom);
     this.Controls.Add(this.barDockControlTop);
     this.Name = "UCSunSimulation";
     this.Size = new System.Drawing.Size(253, 475);
     ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
     this.layoutControl1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.tbc_Date.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.tbc_Date)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.tbc_Time.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.tbc_Time)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.spe_Int.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.cmb_simu.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.tbc_colorAlpha.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.tbc_colorAlpha)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.ce_color.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.cbeLunarHolDay.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.te_time.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.de_data.Properties.CalendarTimeProperties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.de_data.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup3)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem4)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.barManager1)).EndInit();
     this.ResumeLayout(false);
 }
Пример #10
0
 private void InitializeComponent()
 {
     this.txtColorName     = new DevExpress.XtraEditors.TextEdit();
     this.labelControl3    = new DevExpress.XtraEditors.LabelControl();
     this.btnCancel        = new DevExpress.XtraEditors.SimpleButton();
     this.btnSave          = new DevExpress.XtraEditors.SimpleButton();
     this.panelControl1    = new DevExpress.XtraEditors.PanelControl();
     this.traktTansparency = new DevExpress.XtraEditors.TrackBarControl();
     this.labelControl4    = new DevExpress.XtraEditors.LabelControl();
     this.labelControl2    = new DevExpress.XtraEditors.LabelControl();
     this.colorValue       = new DevExpress.XtraEditors.ColorEdit();
     this.cbxColorType     = new DevExpress.XtraEditors.ComboBoxEdit();
     this.labelControl1    = new DevExpress.XtraEditors.LabelControl();
     ((System.ComponentModel.ISupportInitialize)(this.txtColorName.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit();
     this.panelControl1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.traktTansparency)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.traktTansparency.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.colorValue.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.cbxColorType.Properties)).BeginInit();
     this.SuspendLayout();
     //
     // txtColorName
     //
     this.txtColorName.Location = new System.Drawing.Point(87, 18);
     this.txtColorName.Name     = "txtColorName";
     this.txtColorName.Size     = new System.Drawing.Size(217, 22);
     this.txtColorName.TabIndex = 12;
     //
     // labelControl3
     //
     this.labelControl3.Location = new System.Drawing.Point(21, 21);
     this.labelControl3.Name     = "labelControl3";
     this.labelControl3.Size     = new System.Drawing.Size(52, 14);
     this.labelControl3.TabIndex = 11;
     this.labelControl3.Text     = "颜色名称:";
     //
     // btnCancel
     //
     this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.Location     = new System.Drawing.Point(178, 210);
     this.btnCancel.Name         = "btnCancel";
     this.btnCancel.Size         = new System.Drawing.Size(75, 23);
     this.btnCancel.TabIndex     = 10;
     this.btnCancel.Text         = "取消";
     this.btnCancel.Click       += new System.EventHandler(this.btnCancel_Click);
     //
     // btnSave
     //
     this.btnSave.Location = new System.Drawing.Point(79, 210);
     this.btnSave.Name     = "btnSave";
     this.btnSave.Size     = new System.Drawing.Size(75, 23);
     this.btnSave.TabIndex = 7;
     this.btnSave.Text     = "保存";
     this.btnSave.Click   += new System.EventHandler(this.btnSave_Click);
     //
     // panelControl1
     //
     this.panelControl1.Controls.Add(this.traktTansparency);
     this.panelControl1.Controls.Add(this.labelControl4);
     this.panelControl1.Controls.Add(this.labelControl2);
     this.panelControl1.Controls.Add(this.colorValue);
     this.panelControl1.Location = new System.Drawing.Point(20, 87);
     this.panelControl1.Name     = "panelControl1";
     this.panelControl1.Size     = new System.Drawing.Size(299, 111);
     this.panelControl1.TabIndex = 9;
     //
     // traktTansparency
     //
     this.traktTansparency.EditValue                   = 255;
     this.traktTansparency.Location                    = new System.Drawing.Point(83, 58);
     this.traktTansparency.Name                        = "traktTansparency";
     this.traktTansparency.Properties.Maximum          = 255;
     this.traktTansparency.Properties.ShowValueToolTip = true;
     this.traktTansparency.Properties.TickFrequency    = 10;
     this.traktTansparency.Size                        = new System.Drawing.Size(201, 45);
     this.traktTansparency.TabIndex                    = 13;
     this.traktTansparency.Value                       = 255;
     this.traktTansparency.EditValueChanged           += new System.EventHandler(this.colorAlpha_EditValueChanged);
     //
     // labelControl4
     //
     this.labelControl4.Location = new System.Drawing.Point(13, 67);
     this.labelControl4.Name     = "labelControl4";
     this.labelControl4.Size     = new System.Drawing.Size(40, 14);
     this.labelControl4.TabIndex = 5;
     this.labelControl4.Text     = "透明度:";
     //
     // labelControl2
     //
     this.labelControl2.Location = new System.Drawing.Point(13, 25);
     this.labelControl2.Name     = "labelControl2";
     this.labelControl2.Size     = new System.Drawing.Size(40, 14);
     this.labelControl2.TabIndex = 5;
     this.labelControl2.Text     = "颜色值:";
     //
     // colorValue
     //
     this.colorValue.EditValue = System.Drawing.Color.Red;
     this.colorValue.Location  = new System.Drawing.Point(83, 22);
     this.colorValue.Name      = "colorValue";
     this.colorValue.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
     });
     this.colorValue.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard;
     this.colorValue.Size              = new System.Drawing.Size(201, 22);
     this.colorValue.TabIndex          = 4;
     this.colorValue.EditValueChanged += new System.EventHandler(this.ColorValueCE_EditValueChanged);
     //
     // cbxColorType
     //
     this.cbxColorType.EditValue = "ARGB";
     this.cbxColorType.Location  = new System.Drawing.Point(87, 48);
     this.cbxColorType.Name      = "cbxColorType";
     this.cbxColorType.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
     });
     this.cbxColorType.Properties.Items.AddRange(new object[] {
         "ARGB"
     });
     this.cbxColorType.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
     this.cbxColorType.Size     = new System.Drawing.Size(217, 22);
     this.cbxColorType.TabIndex = 8;
     //
     // labelControl1
     //
     this.labelControl1.Location = new System.Drawing.Point(21, 51);
     this.labelControl1.Name     = "labelControl1";
     this.labelControl1.Size     = new System.Drawing.Size(52, 14);
     this.labelControl1.TabIndex = 6;
     this.labelControl1.Text     = "颜色类型:";
     //
     // FrmEditColor
     //
     this.AcceptButton        = this.btnSave;
     this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.CancelButton        = this.btnCancel;
     this.ClientSize          = new System.Drawing.Size(342, 245);
     this.Controls.Add(this.txtColorName);
     this.Controls.Add(this.labelControl3);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnSave);
     this.Controls.Add(this.panelControl1);
     this.Controls.Add(this.cbxColorType);
     this.Controls.Add(this.labelControl1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     this.Name            = "FrmEditColor";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text            = "添加颜色";
     ((System.ComponentModel.ISupportInitialize)(this.txtColorName.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit();
     this.panelControl1.ResumeLayout(false);
     this.panelControl1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.traktTansparency.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.traktTansparency)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.colorValue.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.cbxColorType.Properties)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Пример #11
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FrmVideo));
            GridLevelNode            gridLevelNode            = new GridLevelNode();

            splitContainerControl1 = new SplitContainerControl();
            pbImage  = new PictureBox();
            gcImages = new GridControl();
            lvImages = new LayoutView();
            colImage = new LayoutViewColumn();
            repositoryItemPictureEdit1        = new RepositoryItemPictureEdit();
            layoutViewField_layoutViewColumn1 = new LayoutViewField();
            layoutViewCard1  = new LayoutViewCard();
            gridView1        = new GridView();
            btPlay           = new SimpleButton();
            btPause          = new SimpleButton();
            btStop           = new SimpleButton();
            btOpen           = new SimpleButton();
            btCancel         = new SimpleButton();
            btAccept         = new SimpleButton();
            trackBarControl1 = new TrackBarControl();
            labelControl1    = new LabelControl();
            btClear          = new SimpleButton();
            splitContainerControl1.BeginInit();
            splitContainerControl1.SuspendLayout();
            ((ISupportInitialize)pbImage).BeginInit();
            gcImages.BeginInit();
            lvImages.BeginInit();
            repositoryItemPictureEdit1.BeginInit();
            layoutViewField_layoutViewColumn1.BeginInit();
            layoutViewCard1.BeginInit();
            gridView1.BeginInit();
            ((ISupportInitialize)trackBarControl1).BeginInit();
            trackBarControl1.Properties.BeginInit();
            SuspendLayout();
            componentResourceManager.ApplyResources(splitContainerControl1, "splitContainerControl1");
            splitContainerControl1.Name = "splitContainerControl1";
            componentResourceManager.ApplyResources(splitContainerControl1.Panel1, "splitContainerControl1.Panel1");
            splitContainerControl1.Panel1.Controls.Add(pbImage);
            componentResourceManager.ApplyResources(splitContainerControl1.Panel2, "splitContainerControl1.Panel2");
            splitContainerControl1.Panel2.Controls.Add(gcImages);
            splitContainerControl1.SplitterPosition = 751;
            componentResourceManager.ApplyResources(pbImage, "pbImage");
            pbImage.Name    = "pbImage";
            pbImage.TabStop = false;
            componentResourceManager.ApplyResources(gcImages, "gcImages");
            gcImages.EmbeddedNavigator.AccessibleDescription  = componentResourceManager.GetString("gcImages.EmbeddedNavigator.AccessibleDescription");
            gcImages.EmbeddedNavigator.AccessibleName         = componentResourceManager.GetString("gcImages.EmbeddedNavigator.AccessibleName");
            gcImages.EmbeddedNavigator.AllowHtmlTextInToolTip = (DefaultBoolean)componentResourceManager.GetObject("gcImages.EmbeddedNavigator.AllowHtmlTextInToolTip");
            gcImages.EmbeddedNavigator.Anchor                = (AnchorStyles)componentResourceManager.GetObject("gcImages.EmbeddedNavigator.Anchor");
            gcImages.EmbeddedNavigator.BackgroundImage       = (Image)componentResourceManager.GetObject("gcImages.EmbeddedNavigator.BackgroundImage");
            gcImages.EmbeddedNavigator.BackgroundImageLayout = (ImageLayout)componentResourceManager.GetObject("gcImages.EmbeddedNavigator.BackgroundImageLayout");
            gcImages.EmbeddedNavigator.ImeMode               = (ImeMode)componentResourceManager.GetObject("gcImages.EmbeddedNavigator.ImeMode");
            gcImages.EmbeddedNavigator.MaximumSize           = (Size)componentResourceManager.GetObject("gcImages.EmbeddedNavigator.MaximumSize");
            gcImages.EmbeddedNavigator.TextLocation          = (NavigatorButtonsTextLocation)componentResourceManager.GetObject("gcImages.EmbeddedNavigator.TextLocation");
            gcImages.EmbeddedNavigator.ToolTip               = componentResourceManager.GetString("gcImages.EmbeddedNavigator.ToolTip");
            gcImages.EmbeddedNavigator.ToolTipIconType       = (ToolTipIconType)componentResourceManager.GetObject("gcImages.EmbeddedNavigator.ToolTipIconType");
            gcImages.EmbeddedNavigator.ToolTipTitle          = componentResourceManager.GetString("gcImages.EmbeddedNavigator.ToolTipTitle");
            gridLevelNode.RelationName = "Level1";
            gcImages.LevelTree.Nodes.AddRange(new GridLevelNode[1]
            {
                gridLevelNode
            });
            gcImages.MainView = lvImages;
            gcImages.Name     = "gcImages";
            gcImages.ViewCollection.AddRange(new BaseView[2]
            {
                lvImages,
                gridView1
            });
            componentResourceManager.ApplyResources(lvImages, "lvImages");
            lvImages.CardHorzInterval = 0;
            lvImages.CardMinSize      = new Size(150, 150);
            lvImages.CardVertInterval = 0;
            lvImages.Columns.AddRange(new LayoutViewColumn[1]
            {
                colImage
            });
            lvImages.GridControl = gcImages;
            lvImages.Name        = "lvImages";
            lvImages.OptionsBehavior.AllowAddRows           = DefaultBoolean.False;
            lvImages.OptionsBehavior.AllowDeleteRows        = DefaultBoolean.False;
            lvImages.OptionsBehavior.AllowExpandCollapse    = false;
            lvImages.OptionsBehavior.AutoPopulateColumns    = false;
            lvImages.OptionsBehavior.AutoSelectAllInEditor  = false;
            lvImages.OptionsCustomization.AllowFilter       = false;
            lvImages.OptionsCustomization.AllowSort         = false;
            lvImages.OptionsItemText.AlignMode              = FieldTextAlignMode.CustomSize;
            lvImages.OptionsItemText.TextToControlDistance  = 0;
            lvImages.OptionsLayout.Columns.AddNewColumns    = false;
            lvImages.OptionsLayout.Columns.RemoveOldColumns = false;
            lvImages.OptionsLayout.Columns.StoreLayout      = false;
            lvImages.OptionsLayout.StoreDataSettings        = false;
            lvImages.OptionsLayout.StoreVisualOptions       = false;
            lvImages.OptionsSelection.MultiSelect           = true;
            lvImages.OptionsView.AllowHotTrackFields        = false;
            lvImages.OptionsView.ShowButtonMode             = ShowButtonModeEnum.ShowAlways;
            lvImages.OptionsView.ShowCardExpandButton       = false;
            lvImages.OptionsView.ShowCardFieldBorders       = true;
            lvImages.OptionsView.ShowCardLines              = false;
            lvImages.OptionsView.ShowFieldHints             = false;
            lvImages.OptionsView.ShowFilterPanelMode        = ShowFilterPanelMode.Never;
            lvImages.OptionsView.ShowHeaderPanel            = false;
            lvImages.OptionsView.ViewMode             = LayoutViewMode.MultiColumn;
            lvImages.TemplateCard                     = layoutViewCard1;
            lvImages.CustomDrawCardCaption           += lvImages_CustomDrawCardCaption;
            colImage.AppearanceCell.Font              = (Font)componentResourceManager.GetObject("colImage.AppearanceCell.Font");
            colImage.AppearanceCell.FontSizeDelta     = (int)componentResourceManager.GetObject("colImage.AppearanceCell.FontSizeDelta");
            colImage.AppearanceCell.FontStyleDelta    = (FontStyle)componentResourceManager.GetObject("colImage.AppearanceCell.FontStyleDelta");
            colImage.AppearanceCell.GradientMode      = (LinearGradientMode)componentResourceManager.GetObject("colImage.AppearanceCell.GradientMode");
            colImage.AppearanceCell.Image             = (Image)componentResourceManager.GetObject("colImage.AppearanceCell.Image");
            colImage.AppearanceCell.Options.UseFont   = true;
            colImage.AppearanceHeader.Font            = (Font)componentResourceManager.GetObject("colImage.AppearanceHeader.Font");
            colImage.AppearanceHeader.FontSizeDelta   = (int)componentResourceManager.GetObject("colImage.AppearanceHeader.FontSizeDelta");
            colImage.AppearanceHeader.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("colImage.AppearanceHeader.FontStyleDelta");
            colImage.AppearanceHeader.GradientMode    = (LinearGradientMode)componentResourceManager.GetObject("colImage.AppearanceHeader.GradientMode");
            colImage.AppearanceHeader.Image           = (Image)componentResourceManager.GetObject("colImage.AppearanceHeader.Image");
            colImage.AppearanceHeader.Options.UseFont = true;
            componentResourceManager.ApplyResources(colImage, "colImage");
            colImage.ColumnEdit                  = repositoryItemPictureEdit1;
            colImage.FieldName                   = "Image";
            colImage.LayoutViewField             = layoutViewField_layoutViewColumn1;
            colImage.Name                        = "colImage";
            colImage.OptionsColumn.AllowEdit     = false;
            colImage.OptionsColumn.AllowMove     = false;
            colImage.OptionsColumn.AllowShowHide = false;
            colImage.OptionsColumn.AllowSize     = false;
            colImage.OptionsColumn.ReadOnly      = true;
            componentResourceManager.ApplyResources(repositoryItemPictureEdit1, "repositoryItemPictureEdit1");
            repositoryItemPictureEdit1.Name     = "repositoryItemPictureEdit1";
            repositoryItemPictureEdit1.SizeMode = PictureSizeMode.Zoom;
            layoutViewField_layoutViewColumn1.EditorPreferredWidth = 122;
            layoutViewField_layoutViewColumn1.Location             = new Point(0, 0);
            layoutViewField_layoutViewColumn1.Name     = "layoutViewField_layoutViewColumn1";
            layoutViewField_layoutViewColumn1.Padding  = new Padding(0, 0, 0, 0);
            layoutViewField_layoutViewColumn1.Size     = new Size(129, 22);
            layoutViewField_layoutViewColumn1.TextSize = new Size(7, 13);
            componentResourceManager.ApplyResources(layoutViewCard1, "layoutViewCard1");
            layoutViewCard1.ExpandButtonLocation = GroupElementLocation.AfterText;
            layoutViewCard1.Items.AddRange(new BaseLayoutItem[1]
            {
                layoutViewField_layoutViewColumn1
            });
            layoutViewCard1.Name = "layoutViewTemplateCard";
            layoutViewCard1.OptionsItemText.TextToControlDistance = 0;
            layoutViewCard1.Padding = new Padding(0, 0, 0, 0);
            componentResourceManager.ApplyResources(gridView1, "gridView1");
            gridView1.GridControl = gcImages;
            gridView1.Name        = "gridView1";
            componentResourceManager.ApplyResources(btPlay, "btPlay");
            btPlay.Appearance.Font            = (Font)componentResourceManager.GetObject("btPlay.Appearance.Font");
            btPlay.Appearance.FontSizeDelta   = (int)componentResourceManager.GetObject("btPlay.Appearance.FontSizeDelta");
            btPlay.Appearance.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btPlay.Appearance.FontStyleDelta");
            btPlay.Appearance.GradientMode    = (LinearGradientMode)componentResourceManager.GetObject("btPlay.Appearance.GradientMode");
            btPlay.Appearance.Image           = (Image)componentResourceManager.GetObject("btPlay.Appearance.Image");
            btPlay.Appearance.Options.UseFont = true;
            btPlay.Image  = Resources.play36;
            btPlay.Name   = "btPlay";
            btPlay.Click += btPlay_Click;
            componentResourceManager.ApplyResources(btPause, "btPause");
            btPause.Appearance.Font            = (Font)componentResourceManager.GetObject("btPause.Appearance.Font");
            btPause.Appearance.FontSizeDelta   = (int)componentResourceManager.GetObject("btPause.Appearance.FontSizeDelta");
            btPause.Appearance.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btPause.Appearance.FontStyleDelta");
            btPause.Appearance.GradientMode    = (LinearGradientMode)componentResourceManager.GetObject("btPause.Appearance.GradientMode");
            btPause.Appearance.Image           = (Image)componentResourceManager.GetObject("btPause.Appearance.Image");
            btPause.Appearance.Options.UseFont = true;
            btPause.Image  = Resources.pause36;
            btPause.Name   = "btPause";
            btPause.Click += btPause_Click;
            componentResourceManager.ApplyResources(btStop, "btStop");
            btStop.Appearance.Font            = (Font)componentResourceManager.GetObject("btStop.Appearance.Font");
            btStop.Appearance.FontSizeDelta   = (int)componentResourceManager.GetObject("btStop.Appearance.FontSizeDelta");
            btStop.Appearance.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btStop.Appearance.FontStyleDelta");
            btStop.Appearance.GradientMode    = (LinearGradientMode)componentResourceManager.GetObject("btStop.Appearance.GradientMode");
            btStop.Appearance.Image           = (Image)componentResourceManager.GetObject("btStop.Appearance.Image");
            btStop.Appearance.Options.UseFont = true;
            btStop.Image  = Resources.stop36;
            btStop.Name   = "btStop";
            btStop.Click += btStop_Click;
            componentResourceManager.ApplyResources(btOpen, "btOpen");
            btOpen.Appearance.Font            = (Font)componentResourceManager.GetObject("btOpen.Appearance.Font");
            btOpen.Appearance.FontSizeDelta   = (int)componentResourceManager.GetObject("btOpen.Appearance.FontSizeDelta");
            btOpen.Appearance.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btOpen.Appearance.FontStyleDelta");
            btOpen.Appearance.GradientMode    = (LinearGradientMode)componentResourceManager.GetObject("btOpen.Appearance.GradientMode");
            btOpen.Appearance.Image           = (Image)componentResourceManager.GetObject("btOpen.Appearance.Image");
            btOpen.Appearance.Options.UseFont = true;
            btOpen.Image  = Resources.Open3;
            btOpen.Name   = "btOpen";
            btOpen.Click += btOpen_Click;
            componentResourceManager.ApplyResources(btCancel, "btCancel");
            btCancel.Appearance.Font            = (Font)componentResourceManager.GetObject("btCancel.Appearance.Font");
            btCancel.Appearance.FontSizeDelta   = (int)componentResourceManager.GetObject("btCancel.Appearance.FontSizeDelta");
            btCancel.Appearance.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btCancel.Appearance.FontStyleDelta");
            btCancel.Appearance.GradientMode    = (LinearGradientMode)componentResourceManager.GetObject("btCancel.Appearance.GradientMode");
            btCancel.Appearance.Image           = (Image)componentResourceManager.GetObject("btCancel.Appearance.Image");
            btCancel.Appearance.Options.UseFont = true;
            btCancel.DialogResult = DialogResult.Cancel;
            btCancel.Name         = "btCancel";
            btCancel.Click       += btCancel_Click;
            componentResourceManager.ApplyResources(btAccept, "btAccept");
            btAccept.Appearance.Font            = (Font)componentResourceManager.GetObject("btAccept.Appearance.Font");
            btAccept.Appearance.FontSizeDelta   = (int)componentResourceManager.GetObject("btAccept.Appearance.FontSizeDelta");
            btAccept.Appearance.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btAccept.Appearance.FontStyleDelta");
            btAccept.Appearance.GradientMode    = (LinearGradientMode)componentResourceManager.GetObject("btAccept.Appearance.GradientMode");
            btAccept.Appearance.Image           = (Image)componentResourceManager.GetObject("btAccept.Appearance.Image");
            btAccept.Appearance.Options.UseFont = true;
            btAccept.Name   = "btAccept";
            btAccept.Click += btAccept_Click;
            componentResourceManager.ApplyResources(trackBarControl1, "trackBarControl1");
            trackBarControl1.Name = "trackBarControl1";
            trackBarControl1.Properties.AccessibleDescription = componentResourceManager.GetString("trackBarControl1.Properties.AccessibleDescription");
            trackBarControl1.Properties.AccessibleName        = componentResourceManager.GetString("trackBarControl1.Properties.AccessibleName");
            trackBarControl1.Properties.Orientation           = (Orientation)componentResourceManager.GetObject("trackBarControl1.Properties.Orientation");
            trackBarControl1.EditValueChanged += trackBarControl1_EditValueChanged;
            componentResourceManager.ApplyResources(labelControl1, "labelControl1");
            labelControl1.Name = "labelControl1";
            componentResourceManager.ApplyResources(btClear, "btClear");
            btClear.Appearance.Font            = (Font)componentResourceManager.GetObject("btClear.Appearance.Font");
            btClear.Appearance.FontSizeDelta   = (int)componentResourceManager.GetObject("btClear.Appearance.FontSizeDelta");
            btClear.Appearance.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btClear.Appearance.FontStyleDelta");
            btClear.Appearance.GradientMode    = (LinearGradientMode)componentResourceManager.GetObject("btClear.Appearance.GradientMode");
            btClear.Appearance.Image           = (Image)componentResourceManager.GetObject("btClear.Appearance.Image");
            btClear.Appearance.Options.UseFont = true;
            btClear.Name   = "btClear";
            btClear.Click += btClear_Click;
            componentResourceManager.ApplyResources(this, "$this");
            AutoScaleMode = AutoScaleMode.Font;
            Controls.Add(btClear);
            Controls.Add(labelControl1);
            Controls.Add(trackBarControl1);
            Controls.Add(splitContainerControl1);
            Controls.Add(btCancel);
            Controls.Add(btAccept);
            Controls.Add(btOpen);
            Controls.Add(btStop);
            Controls.Add(btPause);
            Controls.Add(btPlay);
            FormBorderStyle = FormBorderStyle.FixedSingle;
            MaximizeBox     = false;
            MinimizeBox     = false;
            Name            = "FrmVideo";
            FormClosing    += frmVideo_FormClosing;
            Load           += frmVideo_Load;
            splitContainerControl1.EndInit();
            splitContainerControl1.ResumeLayout(false);
            ((ISupportInitialize)pbImage).EndInit();
            gcImages.EndInit();
            lvImages.EndInit();
            repositoryItemPictureEdit1.EndInit();
            layoutViewField_layoutViewColumn1.EndInit();
            layoutViewCard1.EndInit();
            gridView1.EndInit();
            trackBarControl1.Properties.EndInit();
            ((ISupportInitialize)trackBarControl1).EndInit();
            ResumeLayout(false);
            PerformLayout();
        }
Пример #12
0
 private void InitializeComponent()
 {
     this.layoutControl1      = new DevExpress.XtraLayout.LayoutControl();
     this.ceShowImage         = new DevExpress.XtraEditors.CheckEdit();
     this.tbcClipDis          = new DevExpress.XtraEditors.TrackBarControl();
     this.cpeBackGround       = new DevExpress.XtraEditors.ColorPickEdit();
     this.labelControl1       = new DevExpress.XtraEditors.LabelControl();
     this.btnOutput           = new DevExpress.XtraEditors.SimpleButton();
     this.btnDrawSection      = new DevExpress.XtraEditors.SimpleButton();
     this.spResolution        = new DevExpress.XtraEditors.SpinEdit();
     this.seMinHeight         = new DevExpress.XtraEditors.SpinEdit();
     this.seMaxHeight         = new DevExpress.XtraEditors.SpinEdit();
     this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
     this.emptySpaceItem3     = new DevExpress.XtraLayout.EmptySpaceItem();
     this.layoutControlGroup2 = new DevExpress.XtraLayout.LayoutControlGroup();
     this.layoutControlItem1  = new DevExpress.XtraLayout.LayoutControlItem();
     this.layoutControlItem2  = new DevExpress.XtraLayout.LayoutControlItem();
     this.layoutControlItem6  = new DevExpress.XtraLayout.LayoutControlItem();
     this.layoutControlItem3  = new DevExpress.XtraLayout.LayoutControlItem();
     this.layoutControlGroup3 = new DevExpress.XtraLayout.LayoutControlGroup();
     this.layoutControlItem4  = new DevExpress.XtraLayout.LayoutControlItem();
     this.layoutControlItem8  = new DevExpress.XtraLayout.LayoutControlItem();
     this.layoutControlItem5  = new DevExpress.XtraLayout.LayoutControlItem();
     this.layoutControlItem7  = new DevExpress.XtraLayout.LayoutControlItem();
     this.layoutControlItem9  = new DevExpress.XtraLayout.LayoutControlItem();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
     this.layoutControl1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.ceShowImage.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.tbcClipDis)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.tbcClipDis.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.cpeBackGround.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.spResolution.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.seMinHeight.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.seMaxHeight.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup3)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit();
     this.SuspendLayout();
     //
     // layoutControl1
     //
     this.layoutControl1.Controls.Add(this.ceShowImage);
     this.layoutControl1.Controls.Add(this.tbcClipDis);
     this.layoutControl1.Controls.Add(this.cpeBackGround);
     this.layoutControl1.Controls.Add(this.labelControl1);
     this.layoutControl1.Controls.Add(this.btnOutput);
     this.layoutControl1.Controls.Add(this.btnDrawSection);
     this.layoutControl1.Controls.Add(this.spResolution);
     this.layoutControl1.Controls.Add(this.seMinHeight);
     this.layoutControl1.Controls.Add(this.seMaxHeight);
     this.layoutControl1.Cursor   = System.Windows.Forms.Cursors.Default;
     this.layoutControl1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.layoutControl1.Location = new System.Drawing.Point(0, 0);
     this.layoutControl1.Name     = "layoutControl1";
     this.layoutControl1.Root     = this.layoutControlGroup1;
     this.layoutControl1.Size     = new System.Drawing.Size(244, 366);
     this.layoutControl1.TabIndex = 0;
     this.layoutControl1.Text     = "layoutControl1";
     //
     // ceShowImage
     //
     this.ceShowImage.EditValue          = true;
     this.ceShowImage.Location           = new System.Drawing.Point(2, 295);
     this.ceShowImage.Name               = "ceShowImage";
     this.ceShowImage.Properties.Caption = "自动打开图片";
     this.ceShowImage.Size               = new System.Drawing.Size(240, 19);
     this.ceShowImage.StyleController    = this.layoutControl1;
     this.ceShowImage.TabIndex           = 12;
     //
     // tbcClipDis
     //
     this.tbcClipDis.EditValue = 200;
     this.tbcClipDis.Location  = new System.Drawing.Point(113, 86);
     this.tbcClipDis.Name      = "tbcClipDis";
     this.tbcClipDis.Properties.LabelAppearance.Options.UseTextOptions = true;
     this.tbcClipDis.Properties.LabelAppearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.tbcClipDis.Properties.Maximum = 500;
     this.tbcClipDis.Properties.Minimum = 10;
     this.tbcClipDis.Size              = new System.Drawing.Size(117, 45);
     this.tbcClipDis.StyleController   = this.layoutControl1;
     this.tbcClipDis.TabIndex          = 2;
     this.tbcClipDis.Value             = 200;
     this.tbcClipDis.EditValueChanged += new System.EventHandler(this.tbcClipDis_EditValueChanged);
     //
     // cpeBackGround
     //
     this.cpeBackGround.EditValue = System.Drawing.Color.White;
     this.cpeBackGround.Location  = new System.Drawing.Point(113, 231);
     this.cpeBackGround.Name      = "cpeBackGround";
     this.cpeBackGround.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
     });
     this.cpeBackGround.Size            = new System.Drawing.Size(117, 22);
     this.cpeBackGround.StyleController = this.layoutControl1;
     this.cpeBackGround.TabIndex        = 5;
     //
     // labelControl1
     //
     this.labelControl1.Location        = new System.Drawing.Point(177, 205);
     this.labelControl1.Name            = "labelControl1";
     this.labelControl1.Size            = new System.Drawing.Size(53, 14);
     this.labelControl1.StyleController = this.layoutControl1;
     this.labelControl1.TabIndex        = 11;
     this.labelControl1.Text            = "pixel/10m";
     //
     // btnOutput
     //
     this.btnOutput.Location        = new System.Drawing.Point(2, 269);
     this.btnOutput.Name            = "btnOutput";
     this.btnOutput.Size            = new System.Drawing.Size(240, 22);
     this.btnOutput.StyleController = this.layoutControl1;
     this.btnOutput.TabIndex        = 6;
     this.btnOutput.Text            = "出      图";
     this.btnOutput.Click          += new System.EventHandler(this.btnOutput_Click);
     //
     // btnDrawSection
     //
     this.btnDrawSection.Location        = new System.Drawing.Point(14, 135);
     this.btnDrawSection.Name            = "btnDrawSection";
     this.btnDrawSection.Size            = new System.Drawing.Size(216, 22);
     this.btnDrawSection.StyleController = this.layoutControl1;
     this.btnDrawSection.TabIndex        = 3;
     this.btnDrawSection.Text            = "绘制立面";
     this.btnDrawSection.Click          += new System.EventHandler(this.btnDrawSection_Click);
     //
     // spResolution
     //
     this.spResolution.EditValue = new decimal(new int[] {
         100,
         0,
         0,
         0
     });
     this.spResolution.Location = new System.Drawing.Point(113, 205);
     this.spResolution.Name     = "spResolution";
     this.spResolution.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
     });
     this.spResolution.Size            = new System.Drawing.Size(60, 22);
     this.spResolution.StyleController = this.layoutControl1;
     this.spResolution.TabIndex        = 4;
     //
     // seMinHeight
     //
     this.seMinHeight.EditValue = new decimal(new int[] {
         10,
         0,
         0,
         -2147483648
     });
     this.seMinHeight.Location = new System.Drawing.Point(113, 60);
     this.seMinHeight.Name     = "seMinHeight";
     this.seMinHeight.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
     });
     this.seMinHeight.Size              = new System.Drawing.Size(117, 22);
     this.seMinHeight.StyleController   = this.layoutControl1;
     this.seMinHeight.TabIndex          = 1;
     this.seMinHeight.EditValueChanged += new System.EventHandler(this.seMinHeight_EditValueChanged);
     //
     // seMaxHeight
     //
     this.seMaxHeight.EditValue = new decimal(new int[] {
         100,
         0,
         0,
         0
     });
     this.seMaxHeight.Location = new System.Drawing.Point(113, 34);
     this.seMaxHeight.Name     = "seMaxHeight";
     this.seMaxHeight.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
     });
     this.seMaxHeight.Size              = new System.Drawing.Size(117, 22);
     this.seMaxHeight.StyleController   = this.layoutControl1;
     this.seMaxHeight.TabIndex          = 0;
     this.seMaxHeight.EditValueChanged += new System.EventHandler(this.seMaxHeight_EditValueChanged);
     //
     // layoutControlGroup1
     //
     this.layoutControlGroup1.CustomizationFormText       = "layoutControlGroup1";
     this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
     this.layoutControlGroup1.GroupBordersVisible         = false;
     this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
         this.emptySpaceItem3,
         this.layoutControlGroup2,
         this.layoutControlGroup3,
         this.layoutControlItem7,
         this.layoutControlItem9
     });
     this.layoutControlGroup1.Location    = new System.Drawing.Point(0, 0);
     this.layoutControlGroup1.Name        = "layoutControlGroup1";
     this.layoutControlGroup1.Padding     = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
     this.layoutControlGroup1.Size        = new System.Drawing.Size(244, 366);
     this.layoutControlGroup1.Text        = "layoutControlGroup1";
     this.layoutControlGroup1.TextVisible = false;
     //
     // emptySpaceItem3
     //
     this.emptySpaceItem3.AllowHotTrack         = false;
     this.emptySpaceItem3.CustomizationFormText = "emptySpaceItem3";
     this.emptySpaceItem3.Location = new System.Drawing.Point(0, 316);
     this.emptySpaceItem3.Name     = "emptySpaceItem3";
     this.emptySpaceItem3.Size     = new System.Drawing.Size(244, 50);
     this.emptySpaceItem3.Text     = "emptySpaceItem3";
     this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0);
     //
     // layoutControlGroup2
     //
     this.layoutControlGroup2.CustomizationFormText = "立面参数设置";
     this.layoutControlGroup2.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
         this.layoutControlItem1,
         this.layoutControlItem2,
         this.layoutControlItem6,
         this.layoutControlItem3
     });
     this.layoutControlGroup2.Location = new System.Drawing.Point(0, 0);
     this.layoutControlGroup2.Name     = "layoutControlGroup2";
     this.layoutControlGroup2.Size     = new System.Drawing.Size(244, 171);
     this.layoutControlGroup2.Text     = "立面参数";
     //
     // layoutControlItem1
     //
     this.layoutControlItem1.Control = this.seMaxHeight;
     this.layoutControlItem1.CustomizationFormText = "layoutControlItem1";
     this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
     this.layoutControlItem1.Name     = "layoutControlItem1";
     this.layoutControlItem1.Size     = new System.Drawing.Size(220, 26);
     this.layoutControlItem1.Text     = "最高相对高度(m):";
     this.layoutControlItem1.TextSize = new System.Drawing.Size(96, 14);
     //
     // layoutControlItem2
     //
     this.layoutControlItem2.Control = this.seMinHeight;
     this.layoutControlItem2.CustomizationFormText = "layoutControlItem2";
     this.layoutControlItem2.Location = new System.Drawing.Point(0, 26);
     this.layoutControlItem2.Name     = "layoutControlItem2";
     this.layoutControlItem2.Size     = new System.Drawing.Size(220, 26);
     this.layoutControlItem2.Text     = "最低相对高度(m):";
     this.layoutControlItem2.TextSize = new System.Drawing.Size(96, 14);
     //
     // layoutControlItem6
     //
     this.layoutControlItem6.Control = this.btnDrawSection;
     this.layoutControlItem6.CustomizationFormText = "layoutControlItem6";
     this.layoutControlItem6.Location = new System.Drawing.Point(0, 101);
     this.layoutControlItem6.Name     = "layoutControlItem6";
     this.layoutControlItem6.Size     = new System.Drawing.Size(220, 26);
     this.layoutControlItem6.Text     = "layoutControlItem6";
     this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0);
     this.layoutControlItem6.TextToControlDistance = 0;
     this.layoutControlItem6.TextVisible           = false;
     //
     // layoutControlItem3
     //
     this.layoutControlItem3.Control = this.tbcClipDis;
     this.layoutControlItem3.CustomizationFormText = "远裁距离(m)";
     this.layoutControlItem3.Location = new System.Drawing.Point(0, 52);
     this.layoutControlItem3.Name     = "layoutControlItem3";
     this.layoutControlItem3.Size     = new System.Drawing.Size(220, 49);
     this.layoutControlItem3.Text     = "远裁距离(m):";
     this.layoutControlItem3.TextSize = new System.Drawing.Size(96, 14);
     //
     // layoutControlGroup3
     //
     this.layoutControlGroup3.CustomizationFormText = "layoutControlGroup3";
     this.layoutControlGroup3.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
         this.layoutControlItem4,
         this.layoutControlItem8,
         this.layoutControlItem5
     });
     this.layoutControlGroup3.Location = new System.Drawing.Point(0, 171);
     this.layoutControlGroup3.Name     = "layoutControlGroup3";
     this.layoutControlGroup3.Size     = new System.Drawing.Size(244, 96);
     this.layoutControlGroup3.Text     = "出图参数";
     //
     // layoutControlItem4
     //
     this.layoutControlItem4.Control = this.spResolution;
     this.layoutControlItem4.CustomizationFormText = "layoutControlItem4";
     this.layoutControlItem4.Location = new System.Drawing.Point(0, 0);
     this.layoutControlItem4.Name     = "layoutControlItem4";
     this.layoutControlItem4.Size     = new System.Drawing.Size(163, 26);
     this.layoutControlItem4.Text     = "出图分辨率:";
     this.layoutControlItem4.TextSize = new System.Drawing.Size(96, 14);
     //
     // layoutControlItem8
     //
     this.layoutControlItem8.Control = this.labelControl1;
     this.layoutControlItem8.CustomizationFormText = "layoutControlItem8";
     this.layoutControlItem8.Location = new System.Drawing.Point(163, 0);
     this.layoutControlItem8.Name     = "layoutControlItem8";
     this.layoutControlItem8.Size     = new System.Drawing.Size(57, 26);
     this.layoutControlItem8.Text     = "layoutControlItem8";
     this.layoutControlItem8.TextSize = new System.Drawing.Size(0, 0);
     this.layoutControlItem8.TextToControlDistance = 0;
     this.layoutControlItem8.TextVisible           = false;
     //
     // layoutControlItem5
     //
     this.layoutControlItem5.Control = this.cpeBackGround;
     this.layoutControlItem5.CustomizationFormText = "背景颜色:";
     this.layoutControlItem5.Location = new System.Drawing.Point(0, 26);
     this.layoutControlItem5.Name     = "layoutControlItem5";
     this.layoutControlItem5.Size     = new System.Drawing.Size(220, 26);
     this.layoutControlItem5.Text     = "背景颜色:";
     this.layoutControlItem5.TextSize = new System.Drawing.Size(96, 14);
     //
     // layoutControlItem7
     //
     this.layoutControlItem7.Control = this.btnOutput;
     this.layoutControlItem7.CustomizationFormText = "layoutControlItem7";
     this.layoutControlItem7.Location = new System.Drawing.Point(0, 267);
     this.layoutControlItem7.Name     = "layoutControlItem7";
     this.layoutControlItem7.Size     = new System.Drawing.Size(244, 26);
     this.layoutControlItem7.Text     = "layoutControlItem7";
     this.layoutControlItem7.TextSize = new System.Drawing.Size(0, 0);
     this.layoutControlItem7.TextToControlDistance = 0;
     this.layoutControlItem7.TextVisible           = false;
     //
     // layoutControlItem9
     //
     this.layoutControlItem9.Control = this.ceShowImage;
     this.layoutControlItem9.CustomizationFormText = "layoutControlItem9";
     this.layoutControlItem9.Location = new System.Drawing.Point(0, 293);
     this.layoutControlItem9.Name     = "layoutControlItem9";
     this.layoutControlItem9.Size     = new System.Drawing.Size(244, 23);
     this.layoutControlItem9.Text     = "layoutControlItem9";
     this.layoutControlItem9.TextSize = new System.Drawing.Size(0, 0);
     this.layoutControlItem9.TextToControlDistance = 0;
     this.layoutControlItem9.TextVisible           = false;
     //
     // UCStreetVerticalSection
     //
     this.Controls.Add(this.layoutControl1);
     this.Name  = "UCStreetVerticalSection";
     this.Size  = new System.Drawing.Size(244, 366);
     this.Load += new System.EventHandler(this.UCStreetVerticalSection_Load);
     ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
     this.layoutControl1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.ceShowImage.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.tbcClipDis.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.tbcClipDis)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.cpeBackGround.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.spResolution.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.seMinHeight.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.seMaxHeight.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup3)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit();
     this.ResumeLayout(false);
 }
Пример #13
0
        private void InitializeComponent()
        {
            components = new Container();
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FrmPictureEdit));

            elementHost1         = new ElementHost();
            barManager1          = new BarManager(components);
            bar1                 = new Bar();
            btOpen               = new BarButtonItem();
            btSave               = new BarButtonItem();
            btCancelEdit         = new BarButtonItem();
            btSelect             = new BarButtonItem();
            btEye                = new BarButtonItem();
            btRotateLeft         = new BarButtonItem();
            btRotateRight        = new BarButtonItem();
            btMirrow             = new BarButtonItem();
            btCutSelection       = new BarButtonItem();
            barDockControlTop    = new BarDockControl();
            barDockControlBottom = new BarDockControl();
            barDockControlLeft   = new BarDockControl();
            barDockControlRight  = new BarDockControl();
            barButtonItem5       = new BarButtonItem();
            btAccept             = new SimpleButton();
            btCancel             = new SimpleButton();
            btBrightness         = new TrackBarControl();
            lbBrightness         = new LabelControl();
            lbContrast           = new LabelControl();
            btContrast           = new TrackBarControl();
            lbSize               = new LabelControl();
            btSize               = new TrackBarControl();
            barManager1.BeginInit();
            ((ISupportInitialize)btBrightness).BeginInit();
            btBrightness.Properties.BeginInit();
            ((ISupportInitialize)btContrast).BeginInit();
            btContrast.Properties.BeginInit();
            ((ISupportInitialize)btSize).BeginInit();
            btSize.Properties.BeginInit();
            SuspendLayout();
            componentResourceManager.ApplyResources(elementHost1, "elementHost1");
            elementHost1.Name  = "elementHost1";
            elementHost1.Child = null;
            barManager1.Bars.AddRange(new Bar[1]
            {
                bar1
            });
            barManager1.DockControls.Add(barDockControlTop);
            barManager1.DockControls.Add(barDockControlBottom);
            barManager1.DockControls.Add(barDockControlLeft);
            barManager1.DockControls.Add(barDockControlRight);
            barManager1.Form = this;
            barManager1.Items.AddRange(new BarItem[10]
            {
                btOpen,
                btSave,
                btCancelEdit,
                btSelect,
                btEye,
                barButtonItem5,
                btRotateLeft,
                btRotateRight,
                btMirrow,
                btCutSelection
            });
            barManager1.MaxItemId = 20;
            bar1.BarName          = "Tools";
            bar1.DockCol          = 0;
            bar1.DockRow          = 0;
            bar1.DockStyle        = BarDockStyle.Top;
            bar1.LinksPersistInfo.AddRange(new LinkPersistInfo[9]
            {
                new LinkPersistInfo(btOpen),
                new LinkPersistInfo(btSave),
                new LinkPersistInfo(btCancelEdit),
                new LinkPersistInfo(btSelect),
                new LinkPersistInfo(btEye),
                new LinkPersistInfo(btRotateLeft),
                new LinkPersistInfo(btRotateRight),
                new LinkPersistInfo(btMirrow),
                new LinkPersistInfo(btCutSelection)
            });
            bar1.OptionsBar.AllowQuickCustomization = false;
            bar1.OptionsBar.MultiLine   = true;
            bar1.OptionsBar.UseWholeRow = true;
            componentResourceManager.ApplyResources(bar1, "bar1");
            componentResourceManager.ApplyResources(btOpen, "btOpen");
            btOpen.Border = BorderStyles.Default;
            btOpen.Glyph  = Resources._10;
            btOpen.Id     = 8;
            btOpen.ItemAppearance.Normal.Font            = (Font)componentResourceManager.GetObject("btOpen.ItemAppearance.Normal.Font");
            btOpen.ItemAppearance.Normal.FontSizeDelta   = (int)componentResourceManager.GetObject("btOpen.ItemAppearance.Normal.FontSizeDelta");
            btOpen.ItemAppearance.Normal.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btOpen.ItemAppearance.Normal.FontStyleDelta");
            btOpen.ItemAppearance.Normal.Options.UseFont = true;
            btOpen.Name       = "btOpen";
            btOpen.ItemClick += btOpen_ItemClick;
            componentResourceManager.ApplyResources(btSave, "btSave");
            btSave.Border = BorderStyles.Default;
            btSave.Glyph  = Resources._13;
            btSave.Id     = 9;
            btSave.ItemAppearance.Normal.Font            = (Font)componentResourceManager.GetObject("btSave.ItemAppearance.Normal.Font");
            btSave.ItemAppearance.Normal.FontSizeDelta   = (int)componentResourceManager.GetObject("btSave.ItemAppearance.Normal.FontSizeDelta");
            btSave.ItemAppearance.Normal.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btSave.ItemAppearance.Normal.FontStyleDelta");
            btSave.ItemAppearance.Normal.Options.UseFont = true;
            btSave.Name       = "btSave";
            btSave.ItemClick += btSave_ItemClick;
            componentResourceManager.ApplyResources(btCancelEdit, "btCancelEdit");
            btCancelEdit.Border = BorderStyles.Default;
            btCancelEdit.Glyph  = Resources._11;
            btCancelEdit.Id     = 10;
            btCancelEdit.ItemAppearance.Normal.Font            = (Font)componentResourceManager.GetObject("btCancelEdit.ItemAppearance.Normal.Font");
            btCancelEdit.ItemAppearance.Normal.FontSizeDelta   = (int)componentResourceManager.GetObject("btCancelEdit.ItemAppearance.Normal.FontSizeDelta");
            btCancelEdit.ItemAppearance.Normal.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btCancelEdit.ItemAppearance.Normal.FontStyleDelta");
            btCancelEdit.ItemAppearance.Normal.Options.UseFont = true;
            btCancelEdit.Name       = "btCancelEdit";
            btCancelEdit.ItemClick += btCancelEdit_ItemClick;
            componentResourceManager.ApplyResources(btSelect, "btSelect");
            btSelect.Border      = BorderStyles.Default;
            btSelect.ButtonStyle = BarButtonStyle.Check;
            btSelect.Glyph       = Resources._08;
            btSelect.Id          = 11;
            btSelect.ItemAppearance.Normal.Font            = (Font)componentResourceManager.GetObject("btSelect.ItemAppearance.Normal.Font");
            btSelect.ItemAppearance.Normal.FontSizeDelta   = (int)componentResourceManager.GetObject("btSelect.ItemAppearance.Normal.FontSizeDelta");
            btSelect.ItemAppearance.Normal.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btSelect.ItemAppearance.Normal.FontStyleDelta");
            btSelect.ItemAppearance.Normal.Options.UseFont = true;
            btSelect.Name       = "btSelect";
            btSelect.ItemClick += btSelect_ItemClick;
            componentResourceManager.ApplyResources(btEye, "btEye");
            btEye.Border      = BorderStyles.Default;
            btEye.ButtonStyle = BarButtonStyle.Check;
            btEye.Glyph       = Resources._01;
            btEye.Id          = 12;
            btEye.ItemAppearance.Normal.Font            = (Font)componentResourceManager.GetObject("btEye.ItemAppearance.Normal.Font");
            btEye.ItemAppearance.Normal.FontSizeDelta   = (int)componentResourceManager.GetObject("btEye.ItemAppearance.Normal.FontSizeDelta");
            btEye.ItemAppearance.Normal.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btEye.ItemAppearance.Normal.FontStyleDelta");
            btEye.ItemAppearance.Normal.Options.UseFont = true;
            btEye.Name       = "btEye";
            btEye.ItemClick += btEye_ItemClick;
            componentResourceManager.ApplyResources(btRotateLeft, "btRotateLeft");
            btRotateLeft.Border = BorderStyles.Default;
            btRotateLeft.Glyph  = Resources._09;
            btRotateLeft.Id     = 14;
            btRotateLeft.ItemAppearance.Normal.Font            = (Font)componentResourceManager.GetObject("btRotateLeft.ItemAppearance.Normal.Font");
            btRotateLeft.ItemAppearance.Normal.FontSizeDelta   = (int)componentResourceManager.GetObject("btRotateLeft.ItemAppearance.Normal.FontSizeDelta");
            btRotateLeft.ItemAppearance.Normal.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btRotateLeft.ItemAppearance.Normal.FontStyleDelta");
            btRotateLeft.ItemAppearance.Normal.Options.UseFont = true;
            btRotateLeft.Name       = "btRotateLeft";
            btRotateLeft.ItemClick += btRotateLeft_ItemClick;
            componentResourceManager.ApplyResources(btRotateRight, "btRotateRight");
            btRotateRight.Border = BorderStyles.Default;
            btRotateRight.Glyph  = Resources._12;
            btRotateRight.Id     = 15;
            btRotateRight.ItemAppearance.Normal.Font            = (Font)componentResourceManager.GetObject("btRotateRight.ItemAppearance.Normal.Font");
            btRotateRight.ItemAppearance.Normal.FontSizeDelta   = (int)componentResourceManager.GetObject("btRotateRight.ItemAppearance.Normal.FontSizeDelta");
            btRotateRight.ItemAppearance.Normal.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btRotateRight.ItemAppearance.Normal.FontStyleDelta");
            btRotateRight.ItemAppearance.Normal.Options.UseFont = true;
            btRotateRight.Name       = "btRotateRight";
            btRotateRight.ItemClick += btRotateRight_ItemClick;
            componentResourceManager.ApplyResources(btMirrow, "btMirrow");
            btMirrow.Border = BorderStyles.Default;
            btMirrow.Glyph  = Resources._07;
            btMirrow.Id     = 16;
            btMirrow.ItemAppearance.Normal.Font            = (Font)componentResourceManager.GetObject("btMirrow.ItemAppearance.Normal.Font");
            btMirrow.ItemAppearance.Normal.FontSizeDelta   = (int)componentResourceManager.GetObject("btMirrow.ItemAppearance.Normal.FontSizeDelta");
            btMirrow.ItemAppearance.Normal.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btMirrow.ItemAppearance.Normal.FontStyleDelta");
            btMirrow.ItemAppearance.Normal.Options.UseFont = true;
            btMirrow.Name       = "btMirrow";
            btMirrow.ItemClick += btMirrow_ItemClick;
            componentResourceManager.ApplyResources(btCutSelection, "btCutSelection");
            btCutSelection.Border = BorderStyles.Default;
            btCutSelection.Glyph  = Resources._06;
            btCutSelection.Id     = 17;
            btCutSelection.ItemAppearance.Normal.Font            = (Font)componentResourceManager.GetObject("btCutSelection.ItemAppearance.Normal.Font");
            btCutSelection.ItemAppearance.Normal.FontSizeDelta   = (int)componentResourceManager.GetObject("btCutSelection.ItemAppearance.Normal.FontSizeDelta");
            btCutSelection.ItemAppearance.Normal.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btCutSelection.ItemAppearance.Normal.FontStyleDelta");
            btCutSelection.ItemAppearance.Normal.Options.UseFont = true;
            btCutSelection.Name       = "btCutSelection";
            btCutSelection.ItemClick += btCutSelection_ItemClick;
            componentResourceManager.ApplyResources(barDockControlTop, "barDockControlTop");
            barDockControlTop.Appearance.FontSizeDelta  = (int)componentResourceManager.GetObject("barDockControlTop.Appearance.FontSizeDelta");
            barDockControlTop.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("barDockControlTop.Appearance.FontStyleDelta");
            barDockControlTop.Appearance.GradientMode   = (LinearGradientMode)componentResourceManager.GetObject("barDockControlTop.Appearance.GradientMode");
            barDockControlTop.Appearance.Image          = (Image)componentResourceManager.GetObject("barDockControlTop.Appearance.Image");
            barDockControlTop.CausesValidation          = false;
            componentResourceManager.ApplyResources(barDockControlBottom, "barDockControlBottom");
            barDockControlBottom.Appearance.FontSizeDelta  = (int)componentResourceManager.GetObject("barDockControlBottom.Appearance.FontSizeDelta");
            barDockControlBottom.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("barDockControlBottom.Appearance.FontStyleDelta");
            barDockControlBottom.Appearance.GradientMode   = (LinearGradientMode)componentResourceManager.GetObject("barDockControlBottom.Appearance.GradientMode");
            barDockControlBottom.Appearance.Image          = (Image)componentResourceManager.GetObject("barDockControlBottom.Appearance.Image");
            barDockControlBottom.CausesValidation          = false;
            componentResourceManager.ApplyResources(barDockControlLeft, "barDockControlLeft");
            barDockControlLeft.Appearance.FontSizeDelta  = (int)componentResourceManager.GetObject("barDockControlLeft.Appearance.FontSizeDelta");
            barDockControlLeft.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("barDockControlLeft.Appearance.FontStyleDelta");
            barDockControlLeft.Appearance.GradientMode   = (LinearGradientMode)componentResourceManager.GetObject("barDockControlLeft.Appearance.GradientMode");
            barDockControlLeft.Appearance.Image          = (Image)componentResourceManager.GetObject("barDockControlLeft.Appearance.Image");
            barDockControlLeft.CausesValidation          = false;
            componentResourceManager.ApplyResources(barDockControlRight, "barDockControlRight");
            barDockControlRight.Appearance.FontSizeDelta  = (int)componentResourceManager.GetObject("barDockControlRight.Appearance.FontSizeDelta");
            barDockControlRight.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("barDockControlRight.Appearance.FontStyleDelta");
            barDockControlRight.Appearance.GradientMode   = (LinearGradientMode)componentResourceManager.GetObject("barDockControlRight.Appearance.GradientMode");
            barDockControlRight.Appearance.Image          = (Image)componentResourceManager.GetObject("barDockControlRight.Appearance.Image");
            barDockControlRight.CausesValidation          = false;
            componentResourceManager.ApplyResources(barButtonItem5, "barButtonItem5");
            barButtonItem5.Glyph = Resources._09;
            barButtonItem5.Id    = 13;
            barButtonItem5.Name  = "barButtonItem5";
            componentResourceManager.ApplyResources(btAccept, "btAccept");
            btAccept.DialogResult = DialogResult.OK;
            btAccept.Name         = "btAccept";
            btAccept.Click       += btAccept_Click;
            componentResourceManager.ApplyResources(btCancel, "btCancel");
            btCancel.DialogResult = DialogResult.Cancel;
            btCancel.Name         = "btCancel";
            btCancel.Click       += btCancel_Click;
            componentResourceManager.ApplyResources(btBrightness, "btBrightness");
            btBrightness.MenuManager = barManager1;
            btBrightness.Name        = "btBrightness";
            btBrightness.Properties.AccessibleDescription = componentResourceManager.GetString("btBrightness.Properties.AccessibleDescription");
            btBrightness.Properties.AccessibleName        = componentResourceManager.GetString("btBrightness.Properties.AccessibleName");
            btBrightness.Properties.AutoSize    = false;
            btBrightness.Properties.Maximum     = byte.MaxValue;
            btBrightness.Properties.Minimum     = -255;
            btBrightness.Properties.Orientation = (Orientation)componentResourceManager.GetObject("btBrightness.Properties.Orientation");
            btBrightness.Value             = -255;
            btBrightness.EditValueChanged += btBrightness_EditValueChanged;
            componentResourceManager.ApplyResources(lbBrightness, "lbBrightness");
            lbBrightness.Appearance.DisabledImage  = (Image)componentResourceManager.GetObject("lbBrightness.Appearance.DisabledImage");
            lbBrightness.Appearance.Font           = (Font)componentResourceManager.GetObject("lbBrightness.Appearance.Font");
            lbBrightness.Appearance.FontSizeDelta  = (int)componentResourceManager.GetObject("lbBrightness.Appearance.FontSizeDelta");
            lbBrightness.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("lbBrightness.Appearance.FontStyleDelta");
            lbBrightness.Appearance.GradientMode   = (LinearGradientMode)componentResourceManager.GetObject("lbBrightness.Appearance.GradientMode");
            lbBrightness.Appearance.HoverImage     = (Image)componentResourceManager.GetObject("lbBrightness.Appearance.HoverImage");
            lbBrightness.Appearance.Image          = (Image)componentResourceManager.GetObject("lbBrightness.Appearance.Image");
            lbBrightness.Appearance.PressedImage   = (Image)componentResourceManager.GetObject("lbBrightness.Appearance.PressedImage");
            lbBrightness.Name = "lbBrightness";
            componentResourceManager.ApplyResources(lbContrast, "lbContrast");
            lbContrast.Appearance.DisabledImage  = (Image)componentResourceManager.GetObject("lbContrast.Appearance.DisabledImage");
            lbContrast.Appearance.Font           = (Font)componentResourceManager.GetObject("lbContrast.Appearance.Font");
            lbContrast.Appearance.FontSizeDelta  = (int)componentResourceManager.GetObject("lbContrast.Appearance.FontSizeDelta");
            lbContrast.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("lbContrast.Appearance.FontStyleDelta");
            lbContrast.Appearance.GradientMode   = (LinearGradientMode)componentResourceManager.GetObject("lbContrast.Appearance.GradientMode");
            lbContrast.Appearance.HoverImage     = (Image)componentResourceManager.GetObject("lbContrast.Appearance.HoverImage");
            lbContrast.Appearance.Image          = (Image)componentResourceManager.GetObject("lbContrast.Appearance.Image");
            lbContrast.Appearance.PressedImage   = (Image)componentResourceManager.GetObject("lbContrast.Appearance.PressedImage");
            lbContrast.Name = "lbContrast";
            componentResourceManager.ApplyResources(btContrast, "btContrast");
            btContrast.MenuManager = barManager1;
            btContrast.Name        = "btContrast";
            btContrast.Properties.AccessibleDescription = componentResourceManager.GetString("btContrast.Properties.AccessibleDescription");
            btContrast.Properties.AccessibleName        = componentResourceManager.GetString("btContrast.Properties.AccessibleName");
            btContrast.Properties.AutoSize    = false;
            btContrast.Properties.Maximum     = sbyte.MaxValue;
            btContrast.Properties.Minimum     = -127;
            btContrast.Properties.Orientation = (Orientation)componentResourceManager.GetObject("btContrast.Properties.Orientation");
            btContrast.Value             = -127;
            btContrast.EditValueChanged += btContrast_EditValueChanged;
            componentResourceManager.ApplyResources(lbSize, "lbSize");
            lbSize.Appearance.DisabledImage  = (Image)componentResourceManager.GetObject("lbSize.Appearance.DisabledImage");
            lbSize.Appearance.Font           = (Font)componentResourceManager.GetObject("lbSize.Appearance.Font");
            lbSize.Appearance.FontSizeDelta  = (int)componentResourceManager.GetObject("lbSize.Appearance.FontSizeDelta");
            lbSize.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("lbSize.Appearance.FontStyleDelta");
            lbSize.Appearance.GradientMode   = (LinearGradientMode)componentResourceManager.GetObject("lbSize.Appearance.GradientMode");
            lbSize.Appearance.HoverImage     = (Image)componentResourceManager.GetObject("lbSize.Appearance.HoverImage");
            lbSize.Appearance.Image          = (Image)componentResourceManager.GetObject("lbSize.Appearance.Image");
            lbSize.Appearance.PressedImage   = (Image)componentResourceManager.GetObject("lbSize.Appearance.PressedImage");
            lbSize.Name = "lbSize";
            componentResourceManager.ApplyResources(btSize, "btSize");
            btSize.MenuManager = barManager1;
            btSize.Name        = "btSize";
            btSize.Properties.AccessibleDescription = componentResourceManager.GetString("btSize.Properties.AccessibleDescription");
            btSize.Properties.AccessibleName        = componentResourceManager.GetString("btSize.Properties.AccessibleName");
            btSize.Properties.AutoSize    = false;
            btSize.Properties.Maximum     = 500;
            btSize.Properties.Orientation = (Orientation)componentResourceManager.GetObject("btSize.Properties.Orientation");
            btSize.Value             = 100;
            btSize.EditValueChanged += btSize_EditValueChanged_1;
            componentResourceManager.ApplyResources(this, "$this");
            AutoScaleMode = AutoScaleMode.Font;
            Controls.Add(lbSize);
            Controls.Add(btSize);
            Controls.Add(lbContrast);
            Controls.Add(btContrast);
            Controls.Add(lbBrightness);
            Controls.Add(btBrightness);
            Controls.Add(btCancel);
            Controls.Add(btAccept);
            Controls.Add(elementHost1);
            Controls.Add(barDockControlLeft);
            Controls.Add(barDockControlRight);
            Controls.Add(barDockControlBottom);
            Controls.Add(barDockControlTop);
            Name     = "FrmPictureEdit";
            ShowIcon = false;
            Load    += frmPictureEdit_Load;
            barManager1.EndInit();
            btBrightness.Properties.EndInit();
            ((ISupportInitialize)btBrightness).EndInit();
            btContrast.Properties.EndInit();
            ((ISupportInitialize)btContrast).EndInit();
            btSize.Properties.EndInit();
            ((ISupportInitialize)btSize).EndInit();
            ResumeLayout(false);
            PerformLayout();
        }