Пример #1
0
        protected override void CreateChildElements()
        {
            base.CreateChildElements();
            this.stackLayout = new StackLayoutPanel();
            this.stackLayout.Orientation = Orientation.Horizontal;
            this.stackLayout.EqualChildrenWidth = false;

            this.labelPrefix = new RadLabelElement();
            this.labelPrefix.Text = "+7";
            this.labelPrefix.Font = new System.Drawing.Font("Segoe UI", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.stackLayout.Children.Add(this.labelPrefix);

            this.textBoxNumber = new RadMaskedEditBoxElement();
            this.textBoxNumber.Font = new System.Drawing.Font("Segoe UI", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.textBoxNumber.MinSize = new Size(200,0);
            this.textBoxNumber.TextChanged += textBoxNumber_TextChanged;
            this.textBoxNumber.MaskType = MaskType.Standard;
            this.textBoxNumber.MouseUp += textBoxNumber_MouseUp;
            this.textBoxNumber.Border.Visibility = ElementVisibility.Hidden;
            this.textBoxNumber.TextRenderingHint = TextRenderingHint.SystemDefault;
            this.textBoxNumber.Mask = "(000) 000-0000";
            this.textBoxNumber.Text = "";
            this.stackLayout.Children.Add(this.textBoxNumber);

            this.Children.Add(this.stackLayout);
        }
Пример #2
0
        public void setStatus()
        {
            RadLabelElement labelElement = new RadLabelElement();

            labelElement.Text = C.vUserName + "@" + C.vProfileName + "      Sucursal:" + C.vSucursalName;

            RadLabelElement labelElement2 = new RadLabelElement();

            labelElement2.Font = new Font("Cambria", 16);
            labelElement2.Text = C.vCompanyName;

            RadButtonElement buttonElement = new RadButtonElement();

            buttonElement.Text       = "My ButtonElement";
            buttonElement.Visibility = ElementVisibility.Hidden;
            //buttonElement.Click += new EventHandler(buttonElement_Click);
            RadRepeatButtonElement repeatButtonElement = new RadRepeatButtonElement();

            repeatButtonElement.Text       = "My Repeat button";
            repeatButtonElement.Visibility = ElementVisibility.Hidden;
            // repeatButtonElement.Click += new EventHandler(repeatButtonElement_Click);
            CommandBarSeparator   separator          = new CommandBarSeparator();
            RadProgressBarElement progressBarElement = new RadProgressBarElement();

            progressBarElement.Text       = "My Progress Bar";
            progressBarElement.Visibility = ElementVisibility.Hidden;
            radStatusStrip1.Items.AddRange(new RadItem[] { labelElement, buttonElement, repeatButtonElement, separator, progressBarElement, labelElement2 });
        }
Пример #3
0
        private void radMenuItem2_Click_1(object sender, EventArgs e)
        {
            RadLabelElement label = new RadLabelElement();

            label.Text = "label";
            surface1.Element.Children.Add(new SurfaceObject(10, 10, label));
            radButtonRemove.Enabled        = true;
            surface1.Element.CurrentObject = (SurfaceObject)surface1.Element.Children[surface1.Element.Children.Count - 1];
        }
Пример #4
0
        private void InitHeader()
        {
            if (!this.settings.ShowHeader)
            {
                this.navigatorElement.Header.Visibility = ElementVisibility.Collapsed;
            }
            else
            {
                RadLabelElement header = this.navigatorElement.Header;
                header.Padding = this.settings.HeaderPadding;

                this.headerSize = this.GetDesiredSize(header);
            }
        }
Пример #5
0
        private void InitFooter()
        {
            if (!this.settings.ShowFooter)
            {
                this.navigatorElement.Footer.Visibility = ElementVisibility.Collapsed;
            }
            else
            {
                RadLabelElement footer = this.navigatorElement.Footer;
                footer.Padding = this.settings.FooterPadding;
                footer.Text    = "Sample description for document";

                this.footerSize = this.GetDesiredSize(footer);
            }
        }
Пример #6
0
 private void GetMDIProgessBar()
 {
     try
     {
         FrmA3DBhavCopy _RadFormParent = (FrmA3DBhavCopy)this.Parent.Parent.Parent.Parent.Parent;
         RdStatusStrip = _RadFormParent.RdStatusStrip;
         //RdProgressBar = _RadFormParent.RdProgressBar;
         //RdLlbMessage = _RadFormParent.RdLlbMessage;
         RdLlbDateRange = _RadFormParent.RdLlbDateRange;
     }
     catch (Exception ex)
     {
         ClsMessage._IClsMessage.ProjectExceptionMessage(ex);
     }
 }
Пример #7
0
 protected override void CreateChildElements()
 {
     base.CreateChildElements();
     _panel = new StackLayoutPanel()
     {
         Orientation = System.Windows.Forms.Orientation.Horizontal,
         //AutoSize = true,
         EqualChildrenWidth       = true,
         ShouldHandleMouseInput   = false,
         NotifyParentOnMouseInput = true
     };
     _image = new LightVisualElement();
     _panel.Children.Add(_image);
     _name = new RadLabelElement();
     _panel.Children.Add(_name);
 }
        protected override void CreateChildElements()
        {
            base.CreateChildElements();

            StackLayoutElement stack = new StackLayoutElement();

            stack.StretchVertically   = true;
            stack.StretchHorizontally = true;
            stack.Orientation         = System.Windows.Forms.Orientation.Horizontal;
            stack.ElementSpacing      = 10;
            this.Children.Add(stack);

            this.imagePrimitive = new ReflectiveImagePrimitive();
            this.imagePrimitive.StretchVertically = true;
            stack.Children.Add(this.imagePrimitive);

            this.groupBoxElement                     = new RadGroupBoxElement();
            this.groupBoxElement.Header.Font         = new Font(this.groupBoxElement.Header.Font.FontFamily, 10, FontStyle.Bold);
            this.groupBoxElement.Content.Padding     = new System.Windows.Forms.Padding(20);
            this.groupBoxElement.StretchHorizontally = true;
            this.groupBoxElement.StretchVertically   = true;
            stack.Children.Add(this.groupBoxElement);

            this.groupBoxStackLayout = new StackLayoutElement();
            this.groupBoxStackLayout.StretchHorizontally = true;
            this.groupBoxStackLayout.StretchVertically   = true;
            this.groupBoxElement.Content.Children.Add(this.groupBoxStackLayout);

            this.groupBoxStackLayoutFirstColumn             = new StackLayoutElement();
            this.groupBoxStackLayoutFirstColumn.Orientation = System.Windows.Forms.Orientation.Vertical;
            this.groupBoxStackLayout.Children.Add(this.groupBoxStackLayoutFirstColumn);

            this.labelPosition = new RadLabelElement();
            this.groupBoxStackLayoutFirstColumn.Children.Add(labelPosition);

            this.labelBirthDate = new RadLabelElement();
            this.groupBoxStackLayoutFirstColumn.Children.Add(labelBirthDate);

            this.labelHireDate = new RadLabelElement();
            this.groupBoxStackLayoutFirstColumn.Children.Add(labelHireDate);

            this.labelNotes = new NoteElement();
            this.groupBoxStackLayout.Children.Add(labelNotes);
        }
Пример #9
0
        /// <summary>
        /// HeaderPresenterElement
        /// </summary>
        /// <param name="toggleCollapseButton"></param>
        /// <param name="label"></param>
        public OrgHeaderPresenterElement(RadToggleButtonElement toggleCollapseButton, RadLabelElement label)
        {
            this.StretchVertically = false;

            this.label = label;
            this.label.StretchHorizontally = false;
            this.label.Font           = new Font(this.label.Font.FontFamily, 14);
            this.toggleCollapseButton = toggleCollapseButton;
            this.teamMembers          = new RadLabelElement();

            this.Children.Add(this.label);
            this.Children.Add(this.toggleCollapseButton);
            this.Children.Add(this.teamMembers);

            this.teamMembers.LabelFill.Visibility = Telerik.WinControls.ElementVisibility.Visible;

            this.teamMembers.ForeColor                = Color.White;
            this.teamMembers.LabelFill.BackColor      = Color.Black;
            this.teamMembers.LabelFill.NumberOfColors = 1;
            this.teamMembers.Click += this.teamMembers_Click;
        }
Пример #10
0
        public void sb(string Text = "", RadStatusStrip radstatstrip = null, RadLabelElement radlabelelement = null)
        {
            if (radstatstrip != null)
            {
                StatStrip = radstatstrip;
            }
            if (radlabelelement != null)
            {
                StripElement = radlabelelement;
            }

            if (StatStrip != null && StripElement != null)
            {
                if (StatStrip.InvokeRequired)  // if currently on a different thread, invoke
                {
                    StatStrip.BeginInvoke((MethodInvoker) delegate() { StripElement.Text = Text; });
                }
                else
                {
                    StripElement.Text = Text;
                }
            }
        }
Пример #11
0
 /// <summary>
 /// Seteaza imaginea in functie de dificultatea specificata intr-un label (0-3)
 /// </summary>
 /// <param name="buttonLabel">Label-ul pentru care se va seta imaginea</param>
 /// <param name="difficulty">Dificultatea</param>
 private void SetDifficultyImage(RadLabelElement buttonLabel, int difficulty)
 {
     SetStatusLabelState("", 0);
     switch (difficulty)
     {
         case 1:
             buttonLabel.Image = Properties.Resources._1_star_rating;
             break;
         case 2:
             buttonLabel.Image = Properties.Resources._2_star_rating;
             break;
         case 3:
             buttonLabel.Image = Properties.Resources._3_star_rating;
             break;
         default:
             buttonLabel.Image = Properties.Resources._0_star_rating;
             break;
     }
 }
Пример #12
0
 private void InitializeComponent()
 {
     this.components    = new Container();
     this.radStatusBar1 = new RadStatusStrip();
     this.textBox1      = new RadTextBoxElement();
     this.radToolStripSeparatorItem1 = new RadToolStripSeparatorItem();
     this.radLabelElement0           = new RadLabelElement();
     this.radProgressBarElement1     = new RadProgressBarElement();
     this.radToolStripSeparatorItem2 = new RadToolStripSeparatorItem();
     this.radLabelElement1           = new RadLabelElement();
     this.radToolStripSeparatorItem3 = new RadToolStripSeparatorItem();
     this.radButtonElementL          = new RadButtonElement();
     this.radButtonElementR          = new RadButtonElement();
     this.radLabelElement2           = new RadLabelElement();
     this.radToolStripSeparatorItem5 = new RadToolStripSeparatorItem();
     this.radLabelElement3           = new RadLabelElement();
     this.radToolStripSeparatorItem6 = new RadToolStripSeparatorItem();
     this.radLabelElement4           = new RadLabelElement();
     this.radToolStripSeparatorItem4 = new RadToolStripSeparatorItem();
     this.timer1 = new Timer(this.components);
     ((ISupportInitialize)this.radStatusBar1).BeginInit();
     base.SuspendLayout();
     this.radStatusBar1.AutoSize  = true;
     this.radStatusBar1.BackColor = SystemColors.ControlLightLight;
     this.radStatusBar1.Items.AddRange(new RadItem[]
     {
         this.textBox1,
         this.radToolStripSeparatorItem1,
         this.radLabelElement0,
         this.radProgressBarElement1,
         this.radToolStripSeparatorItem2,
         this.radLabelElement1,
         this.radToolStripSeparatorItem3,
         this.radButtonElementL,
         this.radButtonElementR,
         this.radToolStripSeparatorItem3,
         this.radLabelElement2,
         this.radToolStripSeparatorItem5,
         this.radLabelElement3,
         this.radToolStripSeparatorItem6,
         this.radLabelElement4
     });
     this.radStatusBar1.LayoutStyle = RadStatusBarLayoutStyle.Stack;
     this.radStatusBar1.Location    = new Point(0, 1);
     this.radStatusBar1.Margin      = new Padding(5, 4, 5, 4);
     this.radStatusBar1.Name        = "radStatusBar1";
     this.radStatusBar1.RootElement.ControlBounds     = new Rectangle(0, 1, 300, 24);
     this.radStatusBar1.RootElement.StretchVertically = true;
     this.radStatusBar1.Size       = new Size(1155, 23);
     this.radStatusBar1.SizingGrip = true;
     this.radStatusBar1.TabIndex   = 0;
     this.radStatusBar1.Text       = "radStatusBar1";
     this.textBox1.CanFocus        = true;
     this.textBox1.Margin          = new Padding(1);
     this.textBox1.Name            = "radButtonElement1";
     this.radStatusBar1.SetSpring(this.textBox1, true);
     this.textBox1.StretchVertically = false;
     this.textBox1.Text = "";
     this.radToolStripSeparatorItem1.Margin  = new Padding(1);
     this.radToolStripSeparatorItem1.MinSize = new Size(2, 17);
     this.radToolStripSeparatorItem1.Name    = "radToolStripSeparatorItem1";
     this.radStatusBar1.SetSpring(this.radToolStripSeparatorItem1, false);
     this.radToolStripSeparatorItem1.Text = "radToolStripSeparatorItem1";
     this.radLabelElement0.Margin         = new Padding(1);
     this.radLabelElement0.MinSize        = new Size(2, 17);
     this.radLabelElement0.Name           = "radLabelElement0";
     this.radStatusBar1.SetSpring(this.radLabelElement0, false);
     this.radLabelElement0.Text               = "任务进度";
     this.radLabelElement0.TextWrap           = true;
     this.radProgressBarElement1.AutoSize     = false;
     this.radProgressBarElement1.AutoSizeMode = RadAutoSizeMode.FitToAvailableSize;
     this.radProgressBarElement1.Bounds       = new Rectangle(0, 0, 133, 16);
     this.radProgressBarElement1.ClipDrawing  = true;
     this.radProgressBarElement1.DefaultSize  = new Size(130, 16);
     this.radProgressBarElement1.Margin       = new Padding(1);
     this.radProgressBarElement1.Name         = "radProgressBarElement1";
     this.radStatusBar1.SetSpring(this.radProgressBarElement1, false);
     this.radProgressBarElement1.Text          = "";
     this.radProgressBarElement1.TextAlignment = ContentAlignment.MiddleCenter;
     this.radToolStripSeparatorItem2.Margin    = new Padding(1);
     this.radToolStripSeparatorItem2.MinSize   = new Size(2, 17);
     this.radToolStripSeparatorItem2.Name      = "radToolStripSeparatorItem2";
     this.radStatusBar1.SetSpring(this.radToolStripSeparatorItem2, false);
     this.radToolStripSeparatorItem2.Text = "radToolStripSeparatorItem2";
     this.radLabelElement1.Margin         = new Padding(1);
     this.radLabelElement1.MinSize        = new Size(2, 17);
     this.radLabelElement1.Name           = "radLabelElement1";
     this.radStatusBar1.SetSpring(this.radLabelElement1, false);
     this.radLabelElement1.Text              = "";
     this.radLabelElement1.TextWrap          = true;
     this.radToolStripSeparatorItem3.Margin  = new Padding(1);
     this.radToolStripSeparatorItem3.MinSize = new Size(2, 17);
     this.radToolStripSeparatorItem3.Name    = "radToolStripSeparatorItem3";
     this.radStatusBar1.SetSpring(this.radToolStripSeparatorItem3, false);
     this.radToolStripSeparatorItem3.Text = "radToolStripSeparatorItem3";
     this.radButtonElementL.Margin        = new Padding(1);
     this.radButtonElementL.MinSize       = new Size(2, 17);
     this.radButtonElementL.Name          = "radLabelElementL";
     this.radStatusBar1.SetSpring(this.radButtonElementL, false);
     this.radButtonElementL.Text    = "<";
     this.radButtonElementR.Margin  = new Padding(1);
     this.radButtonElementR.MinSize = new Size(2, 17);
     this.radButtonElementR.Name    = "radLabelElementR";
     this.radStatusBar1.SetSpring(this.radButtonElementR, false);
     this.radButtonElementR.Text   = ">";
     this.radLabelElement2.Margin  = new Padding(1);
     this.radLabelElement2.MinSize = new Size(2, 17);
     this.radLabelElement2.Name    = "radLabelElement1";
     this.radStatusBar1.SetSpring(this.radLabelElement2, false);
     this.radLabelElement2.Text              = "";
     this.radLabelElement2.TextWrap          = true;
     this.radToolStripSeparatorItem5.Margin  = new Padding(1);
     this.radToolStripSeparatorItem5.MinSize = new Size(2, 17);
     this.radToolStripSeparatorItem5.Name    = "radToolStripSeparatorItem5";
     this.radStatusBar1.SetSpring(this.radToolStripSeparatorItem5, false);
     this.radToolStripSeparatorItem5.Text = "radToolStripSeparatorItem5";
     this.radLabelElement3.Margin         = new Padding(1);
     this.radLabelElement3.Name           = "radLabelElement2";
     this.radStatusBar1.SetSpring(this.radLabelElement3, false);
     this.radLabelElement3.Text              = "";
     this.radLabelElement3.TextWrap          = true;
     this.radToolStripSeparatorItem6.Margin  = new Padding(1);
     this.radToolStripSeparatorItem6.MinSize = new Size(2, 17);
     this.radToolStripSeparatorItem6.Name    = "radToolStripSeparatorItem4";
     this.radStatusBar1.SetSpring(this.radToolStripSeparatorItem6, false);
     this.radToolStripSeparatorItem6.Text = "radToolStripSeparatorItem4";
     this.radLabelElement4.Margin         = new Padding(1);
     this.radLabelElement4.Name           = "radLabelElement3";
     this.radStatusBar1.SetSpring(this.radLabelElement4, false);
     this.radLabelElement4.Text              = "";
     this.radLabelElement4.TextWrap          = true;
     this.radToolStripSeparatorItem4.Margin  = new Padding(1);
     this.radToolStripSeparatorItem4.MinSize = new Size(2, 17);
     this.radToolStripSeparatorItem4.Name    = "radToolStripSeparatorItem4";
     this.radToolStripSeparatorItem4.Text    = "radToolStripSeparatorItem4";
     this.timer1.Interval     = 1000;
     this.timer1.Tick        += new EventHandler(this.timer1_Tick);
     base.AutoScaleDimensions = new SizeF(6f, 12f);
     base.AutoScaleMode       = AutoScaleMode.Font;
     this.BackColor           = Color.White;
     base.Controls.Add(this.radStatusBar1);
     base.Name = "UCStatusBar";
     base.Size = new Size(1155, 24);
     ((ISupportInitialize)this.radStatusBar1).EndInit();
     base.ResumeLayout(false);
     base.PerformLayout();
 }
Пример #13
0
        private void CreateMenuGroup()
        {
            #region 时间
            dtBeginTime              = new RadDateTimePickerElement();
            dtBeginTime.Format       = DateTimePickerFormat.Custom;
            dtBeginTime.CustomFormat = "yyyy年MM月dd日 HH:mm:ss";
            dtBeginTime.Value        = DateTime.Today;
            dtBeginTime.Size         = new System.Drawing.Size(180, 21);
            dtBeginTime.MaxSize      = new System.Drawing.Size(180, 21);
            dtBeginTime.MinSize      = new System.Drawing.Size(180, 21);
            dtBeginTime.Alignment    = ContentAlignment.TopLeft;

            RadLabelElement lbBeginTime = new RadLabelElement();
            lbBeginTime.Text    = "开始时间";
            lbBeginTime.MinSize = new System.Drawing.Size(40, 21);

            RadRibbonBarButtonGroup gpBeginTime = new RadRibbonBarButtonGroup();
            gpBeginTime.Items.AddRange(new RadItem[] { lbBeginTime, dtBeginTime });
            gpBeginTime.Orientation   = Orientation.Horizontal;
            gpBeginTime.ShowBackColor = false;
            //gpBeginTime.ShowBorder = false;
            gpBeginTime.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);

            dtEndTime              = new RadDateTimePickerElement();
            dtEndTime.Format       = DateTimePickerFormat.Custom;
            dtEndTime.CustomFormat = "yyyy年MM月dd日 HH:mm:ss";
            dtEndTime.Value        = DateTime.Today.AddDays(1).AddSeconds(-1);
            dtEndTime.Size         = new System.Drawing.Size(180, 21);
            dtEndTime.MaxSize      = new System.Drawing.Size(180, 21);
            dtEndTime.MinSize      = new System.Drawing.Size(180, 21);
            dtEndTime.Alignment    = ContentAlignment.TopLeft;

            RadLabelElement lbEndTime = new RadLabelElement();
            lbEndTime.Text    = "结束时间";
            lbEndTime.MinSize = new System.Drawing.Size(40, 21);

            RadRibbonBarButtonGroup gpEndTime = new RadRibbonBarButtonGroup();
            gpEndTime.Items.AddRange(new RadItem[] { lbEndTime, dtEndTime });
            gpEndTime.Orientation   = Orientation.Horizontal;
            gpEndTime.ShowBackColor = false;
            //gpEndTime.ShowBorder = false;
            gpEndTime.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);

            RadRibbonBarButtonGroup gpTime = new RadRibbonBarButtonGroup();
            gpTime.Items.AddRange(new RadItem[] { gpBeginTime, gpEndTime });
            gpTime.Orientation   = Orientation.Vertical;
            gpTime.ShowBackColor = false;
            gpTime.ShowBorder    = false;
            gpTime.Margin        = new System.Windows.Forms.Padding(3, 3, 3, 3);
            #endregion

            #region 卫星传感器
            sate1      = new RadRadioButtonElement();
            sate1.Text = "FY-3A";
            //sate1.Font = new System.Drawing.Font("宋体", 11);
            sate1.MinSize     = new System.Drawing.Size(50, 21);
            sate1.Margin      = new System.Windows.Forms.Padding(3, 0, 0, 0);
            sate1.ToggleState = Telerik.WinControls.Enumerations.ToggleState.On;

            sate2      = new RadRadioButtonElement();
            sate2.Text = "FY-3B";
            //sate2.Font = new System.Drawing.Font("宋体", 11);
            sate2.MinSize = new System.Drawing.Size(50, 21);
            sate2.Margin  = new System.Windows.Forms.Padding(3, 0, 0, 0);

            sate3         = new RadRadioButtonElement();
            sate3.Text    = "FY-3C";
            sate3.MinSize = new System.Drawing.Size(50, 21);
            sate3.Margin  = new System.Windows.Forms.Padding(3, 0, 0, 0);

            RadRibbonBarButtonGroup gpSatellite = new RadRibbonBarButtonGroup();
            gpSatellite.Items.AddRange(new RadItem[] { sate1, sate2, sate3 });
            gpSatellite.Orientation   = Orientation.Vertical;
            gpSatellite.ShowBackColor = false;
            //gpSatellite.ShowBorder = false;
            gpSatellite.Margin = new System.Windows.Forms.Padding(3, 3, 3, 3);

            sensor1      = new RadRadioButtonElement();
            sensor1.Text = "VIRR";
            //sensor1.Font = new System.Drawing.Font("宋体", 11);
            sensor1.MinSize     = new System.Drawing.Size(60, 21);
            sensor1.ToggleState = Telerik.WinControls.Enumerations.ToggleState.On;
            sensor1.Margin      = new System.Windows.Forms.Padding(3, 0, 0, 0);

            sensor2      = new RadRadioButtonElement();
            sensor2.Text = "MERSI";
            //sensor2.Font = new System.Drawing.Font("宋体", 11);
            sensor2.MinSize = new System.Drawing.Size(60, 21);
            sensor2.Margin  = new System.Windows.Forms.Padding(3, 0, 0, 0);

            RadRibbonBarButtonGroup gpSensor = new RadRibbonBarButtonGroup();
            gpSensor.Items.AddRange(new RadItem[] { sensor1, sensor2 });
            gpSensor.Orientation   = Orientation.Vertical;
            gpSensor.ShowBackColor = false;
            //gpSensor.ShowBorder = false;
            gpSensor.Margin = new System.Windows.Forms.Padding(3, 3, 3, 3);

            RadRibbonBarButtonGroup gpSatelliteSensor = new RadRibbonBarButtonGroup();
            gpSatelliteSensor.Items.AddRange(new RadItem[] { gpSatellite, gpSensor });
            gpSatelliteSensor.Orientation   = Orientation.Horizontal;
            gpSatelliteSensor.ShowBackColor = false;
            gpSatelliteSensor.ShowBorder    = false;

            #endregion

            #region 数据类型
            dataType1             = new RadRadioButtonElement();
            dataType1.Text        = "投影数据";
            dataType1.MinSize     = new System.Drawing.Size(60, 21);
            dataType1.ToggleState = Telerik.WinControls.Enumerations.ToggleState.On;
            dataType1.Margin      = new System.Windows.Forms.Padding(3, 0, 0, 0);

            dataType2         = new RadRadioButtonElement();
            dataType2.Text    = "投影拼接数据";
            dataType2.MinSize = new System.Drawing.Size(60, 21);
            dataType2.Margin  = new System.Windows.Forms.Padding(3, 0, 0, 0);
            dataType3         = new RadRadioButtonElement();
            dataType3.Text    = "分幅数据";
            dataType3.MinSize = new System.Drawing.Size(60, 21);
            dataType3.Margin  = new System.Windows.Forms.Padding(3, 0, 0, 0);

            RadRibbonBarButtonGroup gpDataType = new RadRibbonBarButtonGroup();
            gpDataType.Items.AddRange(new RadItem[] { dataType1, dataType2, dataType3 });
            gpDataType.Orientation   = Orientation.Vertical;
            gpDataType.ShowBackColor = false;
            gpDataType.Margin        = new System.Windows.Forms.Padding(3, 3, 3, 3);
            #endregion

            RadButtonElement btnSearch = new RadButtonElement();
            btnSearch.Image             = GeoDo.RSS.UI.AddIn.HdService.Properties.Resources.search_green;
            btnSearch.Text              = "预处理数据查询";
            btnSearch.ImageAlignment    = ContentAlignment.MiddleCenter;
            btnSearch.TextAlignment     = ContentAlignment.MiddleCenter;
            btnSearch.TextImageRelation = TextImageRelation.ImageAboveText;
            btnSearch.Margin            = new System.Windows.Forms.Padding(3, 3, 3, 3);
            btnSearch.Click            += new EventHandler(btnSearch_Click);

            _group      = new RadRibbonBarGroup();
            _group.Text = "数据查询";
            _group.Items.Add(gpSatelliteSensor);
            _group.Items.Add(gpDataType);
            _group.Items.Add(gpTime);
            _group.Items.Add(btnSearch);

            //RadButtonElement prjData = new RadButtonElement("投影数据查询");
            //prjData.Click += new EventHandler(_rasterDats_Click);
            //_group.Items.Add(prjData);
            //RadButtonElement prjCombinData = new RadButtonElement("投影拼接数据查询");
            //prjCombinData.Click += new EventHandler(_rasterDats_Click);
            //_group.Items.Add(prjCombinData);
            //RadButtonElement splitDats = new RadButtonElement("分幅数据查询");
            //splitDats.Click += new EventHandler(_rasterDats_Click);
            //_group.Items.Add(splitDats);

            RadButtonElement rasterDats = new RadButtonElement("栅格产品数据查询");
            rasterDats.Image             = GeoDo.RSS.UI.AddIn.HdService.Properties.Resources.search_green;
            rasterDats.ImageAlignment    = ContentAlignment.MiddleCenter;
            rasterDats.TextAlignment     = ContentAlignment.MiddleCenter;
            rasterDats.TextImageRelation = TextImageRelation.ImageAboveText;
            rasterDats.Margin            = new System.Windows.Forms.Padding(3, 3, 3, 3);
            rasterDats.Click            += new EventHandler(_rasterDats_Click);

            RadRibbonBarButtonGroup gpPd = new RadRibbonBarButtonGroup();
            gpPd.Items.AddRange(new RadItem[] { rasterDats });
            gpPd.Orientation   = Orientation.Horizontal;
            gpPd.ShowBackColor = false;
            gpPd.Margin        = new System.Windows.Forms.Padding(3, 3, 3, 3);

            _group.Items.Add(gpPd);
        }
Пример #14
0
        protected override void CreateChildElements()
        {
            base.CreateChildElements();
            //left part
            this.stackLayout                          = new StackLayoutElement();
            this.stackLayout.Orientation              = Orientation.Vertical;
            this.stackLayout.ShouldHandleMouseInput   = false;
            this.stackLayout.NotifyParentOnMouseInput = true;
            this.stackLayout.StretchHorizontally      = true;

            this.titleElement                          = new LightVisualElement();
            this.titleElement.Font                     = new Font("Segoe UI", 12, FontStyle.Regular);
            this.titleElement.TextAlignment            = ContentAlignment.MiddleLeft;
            this.titleElement.StretchHorizontally      = true;
            this.titleElement.ShouldHandleMouseInput   = false;
            this.titleElement.NotifyParentOnMouseInput = true;

            this.priceElement = new LightVisualElement();
            this.priceElement.StretchHorizontally      = true;
            this.priceElement.TextAlignment            = ContentAlignment.MiddleLeft;
            this.priceElement.ShouldHandleMouseInput   = false;
            this.priceElement.NotifyParentOnMouseInput = true;

            this.descriptionElement = new LightVisualElement();
            this.descriptionElement.StretchHorizontally = true;
            this.descriptionElement.Font                     = new Font("Segoe UI", 7, FontStyle.Regular);
            this.descriptionElement.TextAlignment            = ContentAlignment.MiddleLeft;
            this.descriptionElement.ShouldHandleMouseInput   = false;
            this.descriptionElement.NotifyParentOnMouseInput = true;

            this.stackLayout.Children.Add(this.titleElement);
            this.stackLayout.Children.Add(this.priceElement);
            this.stackLayout.Children.Add(this.descriptionElement);

            //right part

            this.stackLayout2                          = new StackLayoutElement();
            this.stackLayout2.Orientation              = Orientation.Horizontal;
            this.stackLayout2.ShouldHandleMouseInput   = false;
            this.stackLayout2.NotifyParentOnMouseInput = true;
            this.stackLayout2.StretchHorizontally      = true;
            this.stackLayout2.StretchVertically        = true;

            this.buttonElement1        = new RadButtonElement();
            this.buttonElement1.Text   = "-";
            this.buttonElement1.Margin = new Padding(15);
            this.buttonElement1.Click += ButtonElement1_Click;
            this.stackLayout2.Children.Add(this.buttonElement1);

            this.amountElement        = new RadLabelElement();
            this.amountElement.Margin = new Padding(15);

            this.amountElement.TextAlignment = ContentAlignment.MiddleCenter;
            this.stackLayout2.Children.Add(amountElement);

            this.buttonElement2        = new RadButtonElement();
            this.buttonElement2.Margin = new Padding(15);
            this.buttonElement2.Text   = "+";
            this.buttonElement2.Click += ButtonElement2_Click;
            this.stackLayout2.Children.Add(this.buttonElement2);

            //combine
            this.stackLayout3                          = new StackLayoutElement();
            this.stackLayout3.Orientation              = Orientation.Horizontal;
            this.stackLayout3.ShouldHandleMouseInput   = false;
            this.stackLayout3.NotifyParentOnMouseInput = true;
            this.stackLayout3.StretchHorizontally      = true;

            this.stackLayout3.Children.Add(stackLayout);
            this.stackLayout3.Children.Add(stackLayout2);
            this.Children.Add(this.stackLayout3);
        }
Пример #15
0
        public mehrdadPanel(float width)
        {
            //  label = GlobalVariable.GloaballistViewManager.gettitleLable();

            checkbox = new checkBoxModel(width);
            label    = new  LableModel(width, 1);
            label2   = new LableModel(width, 2);
            label3   = new LableModel(width, 3);
            label4   = new LableModel(width, 4);
            label5   = new LableModel(width, 5);
            label6   = new LableModel(width, 6);
            label7   = new LableModel(width, 7);
            label8   = new LableModel(width, 8);
            label9   = new LableModel(width, 9);
            label10  = new LableModel(width, 10);

            panel = new PanelModel();

            //label2 = GlobalVariable.GloaballistViewManager.getarealable();
            //label3 = GlobalVariable.GloaballistViewManager.getkindlable();
            //label4 = GlobalVariable.GloaballistViewManager.gettotallable();
            //label5 = GlobalVariable.GloaballistViewManager.getvadielable();
            //label6 = GlobalVariable.GloaballistViewManager.getejarelable();
            //Picpanel = GlobalVariable.GloaballistViewManager.getPicPanel();

            //imp = GlobalVariable.GloaballistViewManager.getimp();


            // Picpanelon = new RadPanelElement();
            // Picpanelon.Size = new System.Drawing.Size(25, 25);
            // Picpanelon.PanelBorder.Visibility = ElementVisibility.Collapsed;
            // Picpanelon.Margin = new Padding(65, 35, (int)picpos2, 35);
            // Picpanelon.Shape = new RoundRectShape(4);
            //// Picpanelon.Click += new System.EventHandler(this.Picpanel_click);


            // impon = new MyElement();
            // string pathon = Path.Combine(Application.StartupPath, "Resources", "up.png");
            // impon.Image = Image.FromFile(pathon);
            // impon.ImageLayout = ImageLayout.Zoom;
            // impon.Shape = Picpanel.Shape;
            // impon.Click += new System.EventHandler(this.impon_click);
            // Picpanelon.Children.Add(impon);


            // Picpaneloff = new RadPanelElement();
            // Picpaneloff.Size = new System.Drawing.Size(25, 25);
            // Picpaneloff.PanelBorder.Visibility = ElementVisibility.Collapsed;
            // Picpaneloff.Margin = new Padding(65, 35, (int)picpos2, 35);
            // Picpaneloff.Shape = new RoundRectShape(4);
            //// Picpaneloff.Click += new System.EventHandler(this.Picpanel_click);


            // impoff = new MyElement();
            // string pathoff = Path.Combine(Application.StartupPath, "Resources", "down.png");
            // impoff.Image = Image.FromFile(pathoff);
            // impoff.ImageLayout = ImageLayout.Zoom;
            // impoff.Shape = Picpanel.Shape;
            // impoff.Click += new System.EventHandler(this.impoff_click);
            // Picpaneloff.Children.Add(impoff);

            //imp.Click += new System.EventHandler(this.Picpanel_click);

            //if (!Picpanel.Children.Contains(imp))
            //{
            //    Picpanel.Children.Add(imp);
            //}
            if (!panel.Children.Contains(checkbox))
            {
                panel.Children.Add(checkbox);
            }
            if (!panel.Children.Contains(label))
            {
                panel.Children.Add(label);
            }
            if (!panel.Children.Contains(label2))
            {
                panel.Children.Add(label2);
            }
            if (!panel.Children.Contains(label3))
            {
                panel.Children.Add(label3);
            }
            if (!panel.Children.Contains(label4))
            {
                panel.Children.Add(label4);
            }
            if (!panel.Children.Contains(label5))
            {
                panel.Children.Add(label5);
            }
            if (!panel.Children.Contains(label6))
            {
                panel.Children.Add(label6);
            }
            if (!panel.Children.Contains(label7))
            {
                panel.Children.Add(label7);
            }
            if (!panel.Children.Contains(label8))
            {
                panel.Children.Add(label8);
            }
            if (!panel.Children.Contains(label9))
            {
                panel.Children.Add(label9);
            }
            if (!panel.Children.Contains(label10))
            {
                panel.Children.Add(label10);
            }
            //if (!panel.Children.Contains(Picpanel))
            //{
            //    panel.Children.Add(Picpanel);
            //}

            //   panel.Children.Add(Picpanelon);
            //  panel.Children.Add(Picpaneloff);
        }