Exemple #1
0
        private void btnFontColor_ItemClick(object sender, DevExpress.Xpf.Bars.ItemClickEventArgs e)
        {
            PopupControlContainer pcc = (e.Item as DevExpress.Xpf.Bars.BarSplitButtonItem).PopupControl as PopupControlContainer;
            Color color = ((pcc.Content as UserControl).Content as ColorChooser).Color;

            MessageBox.Show("Color is applied: " + color.ToString());
        }
        void popupControlContainer1_Popup(object sender, EventArgs e)
        {
            PopupControlContainer    control    = sender as PopupControlContainer;
            PopupContainerBarControl barControl = (control.Parent as PopupContainerBarControl);

            barControl.Paint += Form1_Paint;
        }
Exemple #3
0
        private void imgMd_Click(object sender, EventArgs e)
        {
            if (!_IsPostAndComments)
            {
                return;
            }

            try
            {
                //UcFilterParams wUcFilterParams = new UcFilterParams();
                //wUcFilterParams.AllTree = true;
                //wUcFilterParams.PostId = this._Comment.ElementId.Value;
                //wUcFilterParams.SCInternalCode = this._Comment.SCInternalCode;

                //UcPostAndComment wUcPostAndComment = new UcPostAndComment();
                //wUcPostAndComment.Populate(wUcFilterParams);

                PopupControlContainer popup = new PopupControlContainer();


                popup.BringToFront();
                popup.ShowPopup(barManager1, this.PointToScreen(this.imgMd.Location));
            }
            catch (Exception ex)
            {
                //Helper.ShowErrorMessage(ex);
            }
        }
Exemple #4
0
        /// <summary>
        /// Thực hiện hiển thị PopupControl trên một control nào đó
        /// </summary>
        /// <param name="popup"></param>
        /// <param name="control"></param>
        public static void ShowOnUp(this PopupControlContainer popup, Control control, Action <PopupControlContainer> extend = null)
        {
            // Thiết lập tọa độ
            popup.Location = new Point {
                X = control.Location.X, Y = control.Location.Y + control.Size.Height + popup.Size.Height
            };

            // extend
            if (!extend.IsNull())
            {
                extend(popup);
            }

            // Tìm các IShInput
            var inputs = popup.FindIShInput();

            // Hiển thị
            popup.Show();

            // Thực hiện Focus
            if (inputs.Count != 0)
            {
                inputs[0].As <Control>().Focus();
            }
        }
Exemple #5
0
        internal void CreateTabControl(PopupControlContainer container)
        {
            if (tabControl != null)
            {
                tabControl.Dispose();
            }
            tabControl = new XtraTabControl();
            tabControl.LookAndFeel.ParentLookAndFeel = container.LookAndFeel;
            tabControl.TabStop = false;
            ColorListBox colorListBox;

            if (signType.HasValue && signType.Value != SignType.RGB)
            {
                colorListBox = CreateColorListBox(MonoColorList);
            }
            else
            {
                colorListBox = CreateColorListBox(ColorListBoxViewInfo.WebColors);
            }

            PWColorCellsControl colorCellsControl = CreateColorCellsControl();

            AddTabPage(tabControl, colorCellsControl, StringId.ColorTabCustom);
            AddTabPage(tabControl, colorListBox, "Standard");
            //AddTabPage(tabControl, new DateEdit(), "Date");

            tabControl.Dock = DockStyle.Fill;
            this.container.Controls.Add(tabControl);
            Size size = colorCellsControl.GetBestSize();

            size.Height         = GetNearestBestClientHeight(size.Height, colorListBox);
            this.container.Size = tabControl.CalcSizeByPageClient(size);
        }
		public FilterAspectForBindingSource(IDataBindingSource ds, IEditorsHost eh, BarManager bm){
			_ds = ds;
			_barManager = bm;
			_popup = new PopupControlContainer();
			_fc = new FieldExpressionControl();
			_popup.Controls.Add(_fc);
			_fc.Dock = DockStyle.Fill;

			//weak event
			_fc.OnCancel += (s, e) =>
			{
				_popupCloseKind = PopupCloseKind.Cancel;
				_popup.HidePopup();
			};
			//weak event
			_fc.OnOk += (s, e) =>
			{
				_popupCloseKind = PopupCloseKind.Confirm;
				_popup.HidePopup();
			};

			_fc.filterEditorControl.FilterControl.BeforeShowValueEditor += showvalueEditor_handler;

			_popup.CloseUp += popup_CloseUp;
		}
Exemple #7
0
        public ColorPopup(PopupControlContainer container)
        {
            this.container   = container;
            this.resultColor = Color.Empty;
            CreateTabControl(container);
            //signType = ControlService.SignCombo.Current.Type;

            MessageBus.Subject <SelectedSignMessage>().Observers += new System.Communication.Messaging.ObserverHandler <SelectedSignMessage>(ColorPopup_Observers);
        }
 public RibbonStyleSelectorItem()
 {
     ActAsDropDown      = true;
     ItemClickBehaviour = PopupItemClickBehaviour.CloseAllPopups;
     PopupControl       = new PopupControlContainer()
     {
         Content = popupContentControl
     };
 }
 public FilterAspectForBindingSource(IDataBindingSource ds, IEditorsHost eh, BarManager bm)
 {
     _ds             = ds;
     _barManager     = bm;
     _popup          = new PopupControlContainer();
     _popup.CloseUp += popup_CloseUp;
     // _fc will be done when needed
     _fc = null;
     _eh = eh;
 }
Exemple #10
0
 public ColorPopup(PopupControlContainer container, BarItem item, PLWord editor)
 {
     this.wordEditor = editor;
     this.container = container;
     itemFontColor = item;
     this.fResultColor = Color.Empty;
     this.tabControl = CreateTabControl();
     this.tabControl.TabStop = false;
     this.tabControl.TabPages.AddRange(new XtraTabPage[] { new XtraTabPage(), new XtraTabPage(), new XtraTabPage()});
     for(int i = 0; i < tabControl.TabPages.Count; i++) SetTabPageProperties(i);
     tabControl.Dock = DockStyle.Fill;
     this.container.Controls.AddRange(new System.Windows.Forms.Control[] {tabControl});
     this.container.Size = CalcFormSize();
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="RibbonApplicationMenuBottomPaneSimpleButtonUIAdapter"/> class.
        /// </summary>
        /// <param name="workItem">The work item. Since Events are used this can
        /// be any work item including the root work item.</param>
        /// <param name="applicationMenu">The application menu.</param>
        /// <param name="bottomPaneHeight">Height of the bottom pane (default is 26).</param>
        /// <param name="spacing">Spacing between the buttons (default is 3).</param>
        public RibbonAppMenuBottomPaneSimpleButtonUIAdapter(WorkItem workItem,
                                                            ApplicationMenu applicationMenu, int bottomPaneHeight, int spacing)
        {
            Guard.ArgumentNotNull(applicationMenu, "ApplicationMenu");
            Guard.ArgumentNotNull(applicationMenu.Ribbon, "ApplicationMenu.Ribbon");
            Guard.ArgumentNotNull(workItem, "workItem");

            this.spacing         = spacing;
            bottomPane           = new PopupControlContainer();
            bottomPane.Height    = bottomPaneHeight;
            bottomPane.BackColor = System.Drawing.Color.Transparent;
            applicationMenu.BottomPaneControlContainer = bottomPane;

            this.applicationMenu = applicationMenu;
            this.workItem        = workItem;
        }
Exemple #12
0
 public ColorPopup(PopupControlContainer container, BarItem item, frmMain parent)
 {
     this.main               = parent;
     this.container          = container;
     this.itemFontColor      = item;
     this.fResultColor       = Color.Empty;
     this.tabControl         = CreateTabControl();
     this.tabControl.TabStop = false;
     this.tabControl.TabPages.AddRange(new XtraTabPage[] { new XtraTabPage(), new XtraTabPage(), new XtraTabPage() });
     for (int i = 0; i < tabControl.TabPages.Count; i++)
     {
         SetTabPageProperties(i);
     }
     tabControl.Dock = DockStyle.Fill;
     this.container.Controls.AddRange(new System.Windows.Forms.Control[] { tabControl });
     this.container.Size = CalcFormSize();
 }
 public ColorPopup(PopupControlContainer container, BarItem item, ProtocolVN.Framework.Win.Trial.PLWord editor)
 {
     this.wordEditor = editor;
     this.container = container;
     itemFontColor = item;
     this.fResultColor = Color.Empty;
     this.tabControl = this.CreateTabControl();
     this.tabControl.TabStop = false;
     this.tabControl.TabPages.AddRange(new XtraTabPage[] { new XtraTabPage(), new XtraTabPage(), new XtraTabPage() });
     for (int i = 0; i < this.tabControl.TabPages.Count; i++)
     {
         this.SetTabPageProperties(i);
     }
     this.tabControl.Dock = DockStyle.Fill;
     this.container.Controls.AddRange(new Control[] { this.tabControl });
     this.container.Size = this.CalcFormSize();
 }
Exemple #14
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            PopupControlContainer popup = ChargeDateSelectBtn.DropDownControl as PopupControlContainer;

            popup.HidePopup();

            DateEdit startDate  = popup.Controls.Find("startDate", true)[0] as DateEdit;
            DateEdit middleDate = popup.Controls.Find("middleDate", true)[0] as DateEdit;
            DateEdit lastDate   = popup.Controls.Find("lastDate", true)[0] as DateEdit;

            if (startDate.EditValue != null && startDate.EditValue != "" && middleDate.EditValue != null &&
                middleDate.EditValue != "" && lastDate.EditValue != null && lastDate.EditValue != "" &&
                startDate.DateTime <= middleDate.DateTime && middleDate.DateTime <= lastDate.DateTime)
            {
                var taskCharge = new TaskChargeFilter("获取自定义时段计费信息",
                                                      new ChargeFilterCondition(startDate.DateTime, middleDate.DateTime, lastDate.DateTime,
                                                                                _nodeTreeControl.CurrentNodeMid, CurrentPID), SetChargeData);
                TaskPool.AddTask(taskCharge, TaskScheduler.FromCurrentSynchronizationContext());
            }
            else
            {
                MessageBox.Show("计费时间设定错误");
            }
        }
Exemple #15
0
 private void CreateColorPopup(PopupControlContainer container)
 {
     //CHAUTV : Bị lỗi tại phương thức này
     cp = new ColorPopup(container,iFontColor , this);
 }
Exemple #16
0
 private void CreateColorPopup(PopupControlContainer container)
 {
     cp = new ColorPopup(container, iFontColor, this);
 }
Exemple #17
0
        public static BarButtonItem AddXemTatCa(BarManager barManager, Bar mainBar, 
            BarButtonItem barButtonItemSearch,PopupControlContainer popUP,BarCheckItem filter, GridView gridViewMaster,RepositoryItemCheckedComboBoxEdit listChoseColumn, string filterString
            )
        {
            int index = 0;
            for (int i = 0; i < mainBar.LinksPersistInfo.Count; i++)
            {
                LinkPersistInfo info =mainBar.LinksPersistInfo[i];
                if (info.Item.Name == barButtonItemSearch.Name)
                {
                    info.BeginGroup = false;
                    index = i;
                    break;
                }
            }

            BarButtonItem viewAll = new BarButtonItem();
            viewAll.Caption = "Xem tất c&ả";
            viewAll.PaintStyle = BarItemPaintStyle.CaptionGlyph;
            viewAll.Glyph = FrameworkParams.imageStore.GetImage2020("Picture.png");
            viewAll.Visibility = BarItemVisibility.Always;

            viewAll.Appearance.ForeColor = Color.Red;
            Font bk = viewAll.Font;
            viewAll.Appearance.Font = new Font(bk, FontStyle.Bold);
            viewAll.Appearance.Options.UseFont = true;
            viewAll.Appearance.Options.UseForeColor = true;

            mainBar.LinksPersistInfo.Insert(index, new LinkPersistInfo(viewAll, true));
            barManager.Items.Add(viewAll);

            viewAll.ItemClick += delegate(object sender, ItemClickEventArgs e)
            {
                try
                {
                    if (listChoseColumn != null)
                    {
                        AppCtrl.DisplayTheoTuyBienCot(gridViewMaster, listChoseColumn);
                    }
                    QueryBuilder query = new QueryBuilder(filterString);
                    foreach (string sort in BIEN_MUC.DEFAUT_SORT_ASC_FIELDS)
                    {
                        query.setAscOrderBy(sort);
                    }
                    DataSet ds = HelpDB.getDBService().LoadDataSet(query);
                    if (ds != null && ds.Tables.Count > 0)
                        gridViewMaster.GridControl.DataSource = ds.Tables[0];
                    else gridViewMaster.GridControl.DataSource = null;
                    popUP.Visible = false;
                    filter.Checked = false;
                    foreach (Control ctrl in popUP.Controls)
                    {
                        if (ctrl is PLMultiCombobox)
                        {
                            PLMultiCombobox plm = ctrl as PLMultiCombobox;
                            plm._setSelectedIDs(new long[] {-1});
                        }
                        else if (ctrl is SpinEdit)
                        {
                            SpinEdit spin = ctrl as SpinEdit;
                            spin.EditValue = null;
                        }
                        else if (ctrl is TextEdit)
                        {
                            TextEdit txt = ctrl as TextEdit;
                            txt.Text = null;
                        }
                        else if (ctrl is DateEdit)
                        {
                            DateEdit date = ctrl as DateEdit;
                            date.EditValue = null;
                        }
                        else if (ctrl is CheckedListBoxControl)
                        {
                            CheckedListBoxControl check = ctrl as CheckedListBoxControl;
                            check.UnCheckAll();
                        }
                        else if(ctrl is PLDateSelection)
                        {
                            PLDateSelection date = ctrl as PLDateSelection;
                            if (date.AllowNull) date.SelectedType = SelectionTypes.None;
                        }

                    }
                }
                catch
                {

                }
            };
            return viewAll;
        }
Exemple #18
0
        private static BarButtonItem AddXemTatCa(BarManager barManager, Bar mainBar,
            BarButtonItem barButtonItemSearch, PopupControlContainer popUP,
            BarCheckItem filter, GridView gridViewMaster, string filterString,
            string ascSortClause, string descSortClause, string groupClause
            )
        {
            int index = 0;
            for (int i = 0; i < mainBar.LinksPersistInfo.Count; i++)
            {
                LinkPersistInfo info = mainBar.LinksPersistInfo[i];
                if (info.Item.Name == barButtonItemSearch.Name)
                {
                    info.BeginGroup = false;
                    index = i;
                    break;
                }
            }

            var viewAll = new BarButtonItem
                              {
                                  Caption = "Xem tất c&ả",
                                  PaintStyle = BarItemPaintStyle.CaptionGlyph,
                                  Glyph = FrameworkParams.imageStore.GetImage2020("Picture.png"),
                                  Visibility = BarItemVisibility.Always
                              };

            viewAll.Appearance.ForeColor = Color.Red;
            Font bk = viewAll.Font;
            viewAll.Appearance.Font = new Font(bk, FontStyle.Bold);
            viewAll.Appearance.Options.UseFont = true;
            viewAll.Appearance.Options.UseForeColor = true;

            mainBar.LinksPersistInfo.Insert(index, new LinkPersistInfo(viewAll, true));
            barManager.Items.Add(viewAll);

            viewAll.ItemClick += delegate
                                     {

                                         var wait = new FWWaitingMsg();

                                         try
                                         {

                                             var query = new QueryBuilder(filterString);
                                             if (!string.IsNullOrEmpty(groupClause))
                                             {
                                                 query.addGroupBy(groupClause);
                                             }
                                             if (ascSortClause != "")
                                                 query.setAscOrderBy(ascSortClause);
                                             if (descSortClause != "")
                                                 query.setDescOrderBy(descSortClause);
                                             var ds = HelpDB.getDBService().LoadDataSet(query);
                                             gridViewMaster.ClearSelection();
                                             if (ds != null && ds.Tables.Count > 0)
                                             {
                                                 gridViewMaster.GridControl.DataSource = ds.Tables[0];
                                                 if (gridViewMaster.RowCount > 0)
                                                 {
                                                     gridViewMaster.FocusedRowHandle = -1;
                                                     gridViewMaster.SelectRow(0);
                                                     gridViewMaster.FocusedRowHandle = 0;
                                                 }
                                                 else
                                                 {
                                                     gridViewMaster.SelectRow(-1);
                                                 }

                                             }
                                             else gridViewMaster.GridControl.DataSource = null;

                                             filter.Checked = false;

                                             //if (frm == null
                                             //    || !(frm is PhieuQuanLyBandedChange)
                                             //    || ((PhieuQuanLyBandedChange)frm)._UsingCheckFiler)
                                             //{
                                             //    popUP.Visible = false;
                                             //}

                                             ClearDataCtrl(popUP.Controls);
                                         }
                                         catch (Exception ex)
                                         {
                                             PLException.AddException(ex);
                                         }
                                         finally
                                         {
                                             wait.Finish();
                                         }
                                     };
            return viewAll;
        }
Exemple #19
0
 private static void AddXemTatCa(BarManager barManager, Bar mainBar, BarButtonItem barButtonItemSearch,
     PopupControlContainer popUP, BarCheckItem filter, GridView gridViewMaster,
     string filterString)
 {
     AddXemTatCa(barManager, mainBar, barButtonItemSearch, popUP, filter, gridViewMaster, filterString, null,
                 null, "");
 }
Exemple #20
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
     this.barItem8               = new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem();
     this.barItem9               = new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem();
     this.imageList1             = new System.Windows.Forms.ImageList(this.components);
     this.popupControlContainer1 = new Syncfusion.Windows.Forms.PopupControlContainer();
     this.listBox1               = new System.Windows.Forms.ListBox();
     this.barManager1            = new Syncfusion.Windows.Forms.Tools.XPMenus.MainFrameBarManager(this);
     this.bar1                   = new Syncfusion.Windows.Forms.Tools.XPMenus.Bar(this.barManager1, "MainMenu");
     this.parentBarItem1         = new Syncfusion.Windows.Forms.Tools.XPMenus.ParentBarItem();
     this.openBarItem            = new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem();
     this.closeBarItem           = new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem();
     this.parentBarItem4         = new Syncfusion.Windows.Forms.Tools.XPMenus.ParentBarItem();
     this.toolbarListBarItem1    = new Syncfusion.Windows.Forms.Tools.XPMenus.ToolbarListBarItem();
     this.mdiListBarItem1        = new Syncfusion.Windows.Forms.Tools.XPMenus.MdiListBarItem();
     this.parentBarItem6         = new Syncfusion.Windows.Forms.Tools.XPMenus.ParentBarItem();
     this.bar2                   = new Syncfusion.Windows.Forms.Tools.XPMenus.Bar(this.barManager1, "Standard");
     this.dropDownBarItem2       = new Syncfusion.Windows.Forms.Tools.XPMenus.DropDownBarItem();
     this.popupControlContainer2 = new Syncfusion.Windows.Forms.PopupControlContainer();
     this.colorPickerUIAdv1      = new Syncfusion.Windows.Forms.Tools.ColorPickerUIAdv();
     this.largeImageList         = new System.Windows.Forms.ImageList(this.components);
     this.mdiClient1             = new System.Windows.Forms.MdiClient();
     this.barItem12              = new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem();
     this.barItem11              = new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem();
     this.barItem10              = new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem();
     this.dropDownBarItem1       = new Syncfusion.Windows.Forms.Tools.XPMenus.DropDownBarItem();
     this.popupMenu2             = new Syncfusion.Windows.Forms.Tools.XPMenus.PopupMenu(this.components);
     this.openFileDialog1        = new System.Windows.Forms.OpenFileDialog();
     this.barItem4               = new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem();
     ((System.ComponentModel.ISupportInitialize)(this.barManager1)).BeginInit();
     this.popupControlContainer2.SuspendLayout();
     this.SuspendLayout();
     //
     // barItem8
     //
     this.barItem8.BarName            = "barItem8";
     this.barItem8.CategoryIndex      = 0;
     this.barItem8.ID                 = "Test4";
     this.barItem8.ShowToolTipInPopUp = false;
     this.barItem8.SizeToFit          = true;
     this.barItem8.Text               = "Test4";
     //
     // barItem9
     //
     this.barItem9.BarName            = "barItem9";
     this.barItem9.CategoryIndex      = 0;
     this.barItem9.ID                 = "Test5";
     this.barItem9.ShowToolTipInPopUp = false;
     this.barItem9.SizeToFit          = true;
     this.barItem9.Text               = "Test5";
     //
     // imageList1
     //
     this.imageList1.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     this.imageList1.Images.SetKeyName(0, "");
     this.imageList1.Images.SetKeyName(1, "");
     this.imageList1.Images.SetKeyName(2, "");
     this.imageList1.Images.SetKeyName(3, "");
     this.imageList1.Images.SetKeyName(4, "");
     this.imageList1.Images.SetKeyName(5, "");
     this.imageList1.Images.SetKeyName(6, "");
     this.imageList1.Images.SetKeyName(7, "");
     this.imageList1.Images.SetKeyName(8, "");
     this.imageList1.Images.SetKeyName(9, "");
     this.imageList1.Images.SetKeyName(10, "");
     this.imageList1.Images.SetKeyName(11, "");
     this.imageList1.Images.SetKeyName(12, "");
     this.imageList1.Images.SetKeyName(13, "");
     this.imageList1.Images.SetKeyName(14, "");
     this.imageList1.Images.SetKeyName(15, "architecture_info_16.png");
     this.imageList1.Images.SetKeyName(16, "ballon_fav_16.png");
     //
     // popupControlContainer1
     //
     this.popupControlContainer1.Location = new System.Drawing.Point(384, 80);
     this.popupControlContainer1.Name     = "popupControlContainer1";
     this.popupControlContainer1.Size     = new System.Drawing.Size(96, 96);
     this.popupControlContainer1.TabIndex = 5;
     this.popupControlContainer1.Visible  = false;
     //
     // listBox1
     //
     this.listBox1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.listBox1.Location = new System.Drawing.Point(0, 0);
     this.listBox1.Name     = "listBox1";
     this.listBox1.Size     = new System.Drawing.Size(96, 95);
     this.listBox1.TabIndex = 0;
     //
     // barManager1
     //
     this.barManager1.BarPositionInfo = ((System.IO.MemoryStream)(resources.GetObject("barManager1.BarPositionInfo")));
     this.barManager1.ThemeName       = "Office2019Colorful";
     this.barManager1.Bars.Add(this.bar1);
     //this.barManager1.Bars.Add(this.bar2);
     this.barManager1.Categories.Add("File");
     this.barManager1.Categories.Add("View");
     this.barManager1.Categories.Add("Window");
     this.barManager1.Categories.Add("&Help");
     this.barManager1.Categories.Add("StatusBar");
     this.barManager1.EnableMenuMerge = true;
     this.barManager1.Font            = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     //this.barManager1.Form = this;
     this.barManager1.ImageList = this.imageList1;
     this.barManager1.Items.AddRange(new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem[] {
         this.parentBarItem1,
         this.openBarItem,
         this.closeBarItem,
         this.parentBarItem4,
         this.mdiListBarItem1,
         this.toolbarListBarItem1,
         this.dropDownBarItem2,
         this.parentBarItem6
     });
     this.barManager1.LargeImageList          = this.largeImageList;
     this.barManager1.ResetCustomization      = false;
     this.barManager1.UseBackwardCompatiblity = false;
     //
     // bar1
     //
     this.bar1.BarName  = "MainMenu";
     this.bar1.BarStyle = ((Syncfusion.Windows.Forms.Tools.XPMenus.BarStyle)((((Syncfusion.Windows.Forms.Tools.XPMenus.BarStyle.AllowQuickCustomizing | Syncfusion.Windows.Forms.Tools.XPMenus.BarStyle.IsMainMenu)
                                                                               | Syncfusion.Windows.Forms.Tools.XPMenus.BarStyle.RotateWhenVertical)
                                                                              | Syncfusion.Windows.Forms.Tools.XPMenus.BarStyle.Visible)));
     this.bar1.Caption = "MainMenu";
     this.bar1.Items.AddRange(new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem[] {
         this.parentBarItem1,
         this.parentBarItem4,
         this.parentBarItem6
     });
     this.bar1.Manager = this.barManager1;
     //
     // parentBarItem1
     //
     this.parentBarItem1.BarName        = "parentBarItem1";
     this.parentBarItem1.CategoryIndex  = 0;
     this.parentBarItem1.CustomTextFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.parentBarItem1.ID             = "&File";
     this.parentBarItem1.Items.AddRange(new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem[] {
         this.openBarItem,
         this.closeBarItem
     });
     this.parentBarItem1.MergeOrder = 1;
     this.parentBarItem1.MetroColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(110)))), ((int)(((byte)(218)))));
     this.parentBarItem1.SeparatorIndices.AddRange(new int[] {
         2,
         3
     });
     this.parentBarItem1.ShowToolTipInPopUp = false;
     this.parentBarItem1.SizeToFit          = true;
     this.parentBarItem1.Style      = Syncfusion.Windows.Forms.VisualStyle.Metro;
     this.parentBarItem1.Text       = "&File";
     this.parentBarItem1.WrapLength = 20;
     //
     // openBarItem
     //
     this.openBarItem.BarName            = "openBarItem";
     this.openBarItem.CategoryIndex      = 0;
     this.openBarItem.CustomTextFont     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.openBarItem.ID                 = "&Open";
     this.openBarItem.ImageIndex         = 0;
     this.openBarItem.MergeOrder         = 1;
     this.openBarItem.Shortcut           = System.Windows.Forms.Shortcut.CtrlO;
     this.openBarItem.ShowToolTipInPopUp = false;
     this.openBarItem.SizeToFit          = true;
     this.openBarItem.Text               = "&Open";
     this.openBarItem.Click             += new System.EventHandler(this.openBarItem_Click);
     //
     // closeBarItem
     //
     this.closeBarItem.BarName            = "closeBarItem";
     this.closeBarItem.CategoryIndex      = 0;
     this.closeBarItem.CustomTextFont     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.closeBarItem.ID                 = "&Close";
     this.closeBarItem.ImageIndex         = 4;
     this.closeBarItem.MergeOrder         = 3;
     this.closeBarItem.Shortcut           = System.Windows.Forms.Shortcut.CtrlShiftO;
     this.closeBarItem.ShowToolTipInPopUp = false;
     this.closeBarItem.SizeToFit          = true;
     this.closeBarItem.Text               = "&Close";
     this.closeBarItem.Click             += new System.EventHandler(this.closeBarItem_Click);
     //
     // parentBarItem4
     //
     this.parentBarItem4.BarName        = "parentBarItem4";
     this.parentBarItem4.CategoryIndex  = 1;
     this.parentBarItem4.CustomTextFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.parentBarItem4.ID             = "&View";
     this.parentBarItem4.Items.AddRange(new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem[] {
         this.toolbarListBarItem1
     });
     this.parentBarItem4.MergeOrder         = 5;
     this.parentBarItem4.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(110)))), ((int)(((byte)(218)))));
     this.parentBarItem4.ShowToolTipInPopUp = false;
     this.parentBarItem4.SizeToFit          = true;
     this.parentBarItem4.Style      = Syncfusion.Windows.Forms.VisualStyle.Metro;
     this.parentBarItem4.Text       = "&View";
     this.parentBarItem4.WrapLength = 20;
     //
     // toolbarListBarItem1
     //
     this.toolbarListBarItem1.BarName            = "toolbarListBarItem1";
     this.toolbarListBarItem1.CategoryIndex      = 1;
     this.toolbarListBarItem1.CustomTextFont     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.toolbarListBarItem1.ID                 = "&Toolbars";
     this.toolbarListBarItem1.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(110)))), ((int)(((byte)(218)))));
     this.toolbarListBarItem1.ShowToolTipInPopUp = false;
     this.toolbarListBarItem1.SizeToFit          = true;
     this.toolbarListBarItem1.Text               = "&Toolbars";
     this.toolbarListBarItem1.WrapLength         = 20;
     //
     // mdiListBarItem1
     //
     this.mdiListBarItem1.BarName            = "mdiListBarItem1";
     this.mdiListBarItem1.CategoryIndex      = 2;
     this.mdiListBarItem1.CustomTextFont     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.mdiListBarItem1.ID                 = "Window List";
     this.mdiListBarItem1.ShowToolTipInPopUp = false;
     this.mdiListBarItem1.SizeToFit          = true;
     //
     // parentBarItem6
     //
     this.parentBarItem6.BarName        = "parentBarItem6";
     this.parentBarItem6.CategoryIndex  = 5;
     this.parentBarItem6.CustomTextFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.parentBarItem6.ID             = "&Help";
     this.parentBarItem6.Items.AddRange(new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem[] { });
     this.parentBarItem6.MergeOrder         = 21;
     this.parentBarItem6.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(110)))), ((int)(((byte)(218)))));
     this.parentBarItem6.ShowToolTipInPopUp = false;
     this.parentBarItem6.SizeToFit          = true;
     this.parentBarItem6.Text       = "&Help";
     this.parentBarItem6.WrapLength = 20;
     //
     // dropDownBarItem2
     //
     this.dropDownBarItem2.BarName               = "dropDownBarItem2";
     this.dropDownBarItem2.CategoryIndex         = 0;
     this.dropDownBarItem2.CustomTextFont        = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.dropDownBarItem2.ID                    = "Custom Colors";
     this.dropDownBarItem2.PopupControlContainer = this.popupControlContainer2;
     this.dropDownBarItem2.ShowToolTipInPopUp    = false;
     this.dropDownBarItem2.SizeToFit             = true;
     this.dropDownBarItem2.Text                  = "Custom Colors";
     //
     // popupControlContainer2
     //
     this.popupControlContainer2.Controls.Add(this.colorPickerUIAdv1);
     this.popupControlContainer2.Location = new System.Drawing.Point(277, 241);
     this.popupControlContainer2.Name     = "popupControlContainer2";
     this.popupControlContainer2.Size     = new System.Drawing.Size(275, 294);
     this.popupControlContainer2.TabIndex = 10002;
     this.popupControlContainer2.Visible  = false;
     //
     // colorPickerUIAdv1.RecentGroup
     //
     this.colorPickerUIAdv1.RecentGroup.HeaderHeight = 23;
     this.colorPickerUIAdv1.RecentGroup.Name         = "Recent Colors";
     this.colorPickerUIAdv1.RecentGroup.Visible      = false;
     //
     // colorPickerUIAdv1.StandardGroup
     //
     this.colorPickerUIAdv1.StandardGroup.HeaderHeight = 23;
     this.colorPickerUIAdv1.StandardGroup.Name         = "Standard Colors";
     //
     // colorPickerUIAdv1.ThemeGroup
     //
     this.colorPickerUIAdv1.ThemeGroup.HeaderHeight      = 23;
     this.colorPickerUIAdv1.ThemeGroup.IsSubItemsVisible = true;
     this.colorPickerUIAdv1.ThemeGroup.Name = "Theme Colors";
     //
     // colorPickerUIAdv1
     //
     this.colorPickerUIAdv1.BorderStyle          = System.Windows.Forms.BorderStyle.FixedSingle;
     this.colorPickerUIAdv1.ButtonsHeight        = 31;
     this.colorPickerUIAdv1.ColorItemSize        = new System.Drawing.Size(21, 21);
     this.colorPickerUIAdv1.Dock                 = System.Windows.Forms.DockStyle.Fill;
     this.colorPickerUIAdv1.Location             = new System.Drawing.Point(0, 0);
     this.colorPickerUIAdv1.MetroColor           = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(110)))), ((int)(((byte)(218)))));
     this.colorPickerUIAdv1.MinimumSize          = new System.Drawing.Size(136, 217);
     this.colorPickerUIAdv1.Name                 = "colorPickerUIAdv1";
     this.colorPickerUIAdv1.Size                 = new System.Drawing.Size(275, 294);
     this.colorPickerUIAdv1.ThemeName            = "Office2019Colorful";
     this.colorPickerUIAdv1.TabIndex             = 10003;
     this.colorPickerUIAdv1.Text                 = "colorPickerUIAdv1";
     this.colorPickerUIAdv1.VerticalItemsSpacing = 1;
     //
     // largeImageList
     //
     this.largeImageList.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("largeImageList.ImageStream")));
     this.largeImageList.TransparentColor = System.Drawing.Color.Transparent;
     this.largeImageList.Images.SetKeyName(0, "");
     this.largeImageList.Images.SetKeyName(1, "");
     this.largeImageList.Images.SetKeyName(2, "");
     this.largeImageList.Images.SetKeyName(3, "");
     this.largeImageList.Images.SetKeyName(4, "");
     this.largeImageList.Images.SetKeyName(5, "");
     this.largeImageList.Images.SetKeyName(6, "");
     //
     // mdiClient1
     //
     this.mdiClient1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.mdiClient1.Location = new System.Drawing.Point(0, 50);
     this.mdiClient1.Name     = "mdiClient1";
     this.mdiClient1.Size     = new System.Drawing.Size(0, 0);
     this.mdiClient1.TabIndex = 4;
     //
     // barItem12
     //
     this.barItem12.BarName            = "barItem12";
     this.barItem12.CategoryIndex      = 0;
     this.barItem12.ID                 = "dummy";
     this.barItem12.ShowToolTipInPopUp = false;
     this.barItem12.SizeToFit          = true;
     this.barItem12.Text               = "dummy";
     //
     // barItem11
     //
     this.barItem11.BarName            = "barItem11";
     this.barItem11.CategoryIndex      = 2;
     this.barItem11.ID                 = "Tseting";
     this.barItem11.ShowToolTipInPopUp = false;
     this.barItem11.SizeToFit          = true;
     this.barItem11.Text               = "Tseting";
     //
     // barItem10
     //
     this.barItem10.BarName            = "barItem10";
     this.barItem10.CategoryIndex      = 0;
     this.barItem10.ID                 = "Test";
     this.barItem10.ShowToolTipInPopUp = false;
     this.barItem10.SizeToFit          = true;
     this.barItem10.Text               = "Test";
     //
     // dropDownBarItem1
     //
     this.dropDownBarItem1.BarName            = "dropDownBarItem1";
     this.dropDownBarItem1.CategoryIndex      = 1;
     this.dropDownBarItem1.ID                 = "DropDown";
     this.dropDownBarItem1.ShowToolTipInPopUp = false;
     this.dropDownBarItem1.SizeToFit          = true;
     this.dropDownBarItem1.Text               = "DropDown";
     //
     // popupMenu2
     //
     this.popupMenu2.ParentBarItem = this.parentBarItem1;
     //
     // openFileDialog1
     //
     this.openFileDialog1.Filter      = "txt files (*.txt)|*.txt|Image Files (*.bmp; *.ico)|*.bmp;*.ico";
     this.openFileDialog1.FilterIndex = 0;
     this.openFileDialog1.Title       = "Text or Image File Selection Dialog";
     //
     // barItem4
     //
     this.barItem4.BarName            = "barItem4";
     this.barItem4.CategoryIndex      = 0;
     this.barItem4.CustomTextFont     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.barItem4.ID                 = "Custom Colors";
     this.barItem4.ShowToolTipInPopUp = false;
     this.barItem4.SizeToFit          = true;
     this.barItem4.Text               = "Custom Colors";
     //
     // MainForm
     //
     this.AccessibleName    = "";
     this.AutoScaleBaseSize = new System.Drawing.Size(4, 19);
     this.ClientSize        = new System.Drawing.Size(600, 600);
     this.WindowState       = FormWindowState.Normal;
     this.Controls.Add(this.popupControlContainer2);
     this.Font           = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Icon           = new System.Drawing.Icon(GetIconFile(@"..\\..\\\logo.ico"));
     this.IsMdiContainer = true;
     this.Name           = "MainForm";
     this.SizeGripStyle  = System.Windows.Forms.SizeGripStyle.Show;
     this.StartPosition  = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text           = "MDI Merge";
     this.Load          += new System.EventHandler(this.Form1_Load);
     ((System.ComponentModel.ISupportInitialize)(this.barManager1)).EndInit();
     this.popupControlContainer2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemple #21
0
 private void CreateColorPopup(PopupControlContainer container)
 {
     //CHAUTV : Bị lỗi tại phương thức này nên đã thiết kế lớp ColorPopup mới
     cp = new ProtocolVN.Framework.Win.Trial.ColorPopup(container, iFontColor, this);
 }
Exemple #22
0
 private void CreateColorPopup(PopupControlContainer container)
 {
     cp = new ColorPopup(container, iFontColor, this);
 }
Exemple #23
0
 protected void InitializeRibbon(RibbonControl ribbon, ApplicationMenu applicationMenu, PopupControlContainer popupControlContainer)
 {
     _ribbon = ribbon;
     ribbon.ApplicationButtonDropDownControl   = applicationMenu;
     applicationMenu.RightPaneControlContainer = popupControlContainer;
     applicationMenu.ShowRightPane             = true;
     applicationMenu.MenuDrawMode = MenuDrawMode.LargeImagesTextDescription;
     applicationMenu.Ribbon       = ribbon;
     popupControlContainer.Ribbon = ribbon;
 }
Exemple #24
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            Syncfusion.Windows.Forms.Edit.Implementation.Config.Config config1   = new Syncfusion.Windows.Forms.Edit.Implementation.Config.Config();
            System.ComponentModel.ComponentResourceManager             resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
            this.editControl1         = new Syncfusion.Windows.Forms.Edit.EditControl();
            this.mainFrameBarManager1 = new Syncfusion.Windows.Forms.Tools.XPMenus.MainFrameBarManager(this);
            this.bar1                   = new Syncfusion.Windows.Forms.Tools.XPMenus.Bar(this.mainFrameBarManager1, "Menu");
            this.parentBarItem1         = new Syncfusion.Windows.Forms.Tools.XPMenus.ParentBarItem();
            this.barItem1               = new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem();
            this.barItem2               = new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem();
            this.barItem3               = new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem();
            this.barItem4               = new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem();
            this.barItem5               = new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem();
            this.barItem6               = new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem();
            this.parentBarItem2         = new Syncfusion.Windows.Forms.Tools.XPMenus.ParentBarItem();
            this.dropDownBarItem1       = new Syncfusion.Windows.Forms.Tools.XPMenus.DropDownBarItem();
            this.popupControlContainer2 = new Syncfusion.Windows.Forms.PopupControlContainer(this.components);
            this.colorPickerUIAdv2      = new Syncfusion.Windows.Forms.Tools.ColorPickerUIAdv();
            this.dropDownBarItem2       = new Syncfusion.Windows.Forms.Tools.XPMenus.DropDownBarItem();
            this.popupControlContainer1 = new Syncfusion.Windows.Forms.PopupControlContainer();
            this.colorPickerUIAdv1      = new Syncfusion.Windows.Forms.Tools.ColorPickerUIAdv();
            ((System.ComponentModel.ISupportInitialize)(this.editControl1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.mainFrameBarManager1)).BeginInit();
            this.popupControlContainer2.SuspendLayout();
            this.popupControlContainer1.SuspendLayout();
            this.SuspendLayout();
            //
            // editControl1
            //
            this.editControl1.BackColor       = System.Drawing.SystemColors.Window;
            this.editControl1.BackgroundColor = new Syncfusion.Drawing.BrushInfo(Syncfusion.Drawing.GradientStyle.Horizontal, System.Drawing.Color.Beige, System.Drawing.Color.IndianRed);
            this.editControl1.BorderStyle     = System.Windows.Forms.BorderStyle.Fixed3D;
            this.editControl1.ChangedLinesMarkingLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(238)))), ((int)(((byte)(98)))));
            this.editControl1.CodeSnipptSize                = new System.Drawing.Size(100, 100);
            this.editControl1.Configurator                  = config1;
            this.editControl1.ContextChoiceBackColor        = System.Drawing.Color.FromArgb(((int)(((byte)(245)))), ((int)(((byte)(245)))), ((int)(((byte)(245)))));
            this.editControl1.ContextChoiceForeColor        = System.Drawing.SystemColors.InfoText;
            this.editControl1.ContextPromptBackgroundBrush  = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.FromArgb(((int)(((byte)(245)))), ((int)(((byte)(245)))), ((int)(((byte)(245))))));
            this.editControl1.ContextTooltipBackgroundBrush = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(232)))), ((int)(((byte)(236))))));
            this.editControl1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.editControl1.IndicatorMarginBackColor = System.Drawing.Color.Empty;
            this.editControl1.LineNumbersColor         = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
            this.editControl1.LineNumbersFont          = new System.Drawing.Font("Segoe UI", 8.25F);
            this.editControl1.Location                                = new System.Drawing.Point(10, 40);
            this.editControl1.MarkChangedLines                        = true;
            this.editControl1.Name                                    = "editControl1";
            this.editControl1.RenderRightToLeft                       = false;
            this.editControl1.ScrollPosition                          = new System.Drawing.Point(0, 0);
            this.editControl1.ScrollVisualStyle                       = Syncfusion.Windows.Forms.ScrollBarCustomDrawStyles.Metro;
            this.editControl1.SelectionTextColor                      = System.Drawing.Color.FromArgb(((int)(((byte)(173)))), ((int)(((byte)(214)))), ((int)(((byte)(255)))));
            this.editControl1.ShowHorizontalSplitters                 = false;
            this.editControl1.ShowIndicatorMargin                     = false;
            this.editControl1.ShowSelectionMargin                     = false;
            this.editControl1.ShowVerticalSplitters                   = false;
            this.editControl1.Size                                    = new System.Drawing.Size(546, 411);
            this.editControl1.StatusBarSettings.CoordsPanel.Width     = 150;
            this.editControl1.StatusBarSettings.EncodingPanel.Width   = 100;
            this.editControl1.StatusBarSettings.FileNamePanel.Width   = 100;
            this.editControl1.StatusBarSettings.InsertPanel.Width     = 33;
            this.editControl1.StatusBarSettings.Offcie2007ColorScheme = Syncfusion.Windows.Forms.Office2007Theme.Blue;
            this.editControl1.StatusBarSettings.Offcie2010ColorScheme = Syncfusion.Windows.Forms.Office2010Theme.Blue;
            this.editControl1.StatusBarSettings.StatusPanel.Width     = 70;
            this.editControl1.StatusBarSettings.TextPanel.Width       = 80;
            this.editControl1.StatusBarSettings.VisualStyle           = Syncfusion.Windows.Forms.Tools.Controls.StatusBar.VisualStyle.Default;
            this.editControl1.TabIndex                                = 0;
            this.editControl1.Text                                    = "editControl1\n\n\n";
            this.editControl1.TransferFocusOnTab                      = true;
            this.editControl1.UseXPStyleBorder                        = true;
            this.editControl1.VisualColumn                            = 1;
            this.editControl1.VScrollMode                             = Syncfusion.Windows.Forms.Edit.ScrollMode.Immediate;
            this.editControl1.WordWrap                                = true;
            //
            // mainFrameBarManager1
            //
#if !NETCORE
            this.mainFrameBarManager1.BarPositionInfo = ((System.IO.MemoryStream)(resources.GetObject("mainFrameBarManager1.BarPositionInfo")));
#endif
            this.mainFrameBarManager1.Bars.Add(this.bar1);
            this.mainFrameBarManager1.Categories.Add("File");
            this.mainFrameBarManager1.CurrentBaseFormType = "Syncfusion.Windows.Forms.MetroForm";
            this.mainFrameBarManager1.EnableMenuMerge     = true;
            this.mainFrameBarManager1.Font = new System.Drawing.Font("Segoe UI", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.mainFrameBarManager1.Form = this;
            this.mainFrameBarManager1.Items.AddRange(new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem[] {
                this.parentBarItem1,
                this.barItem1,
                this.barItem2,
                this.barItem3,
                this.barItem4,
                this.barItem5,
                this.barItem6,
                this.parentBarItem2,
                this.dropDownBarItem1,
                this.dropDownBarItem2
            });
            this.mainFrameBarManager1.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(110)))), ((int)(((byte)(218)))));
            this.mainFrameBarManager1.ResetCustomization = false;
            this.mainFrameBarManager1.Style = Syncfusion.Windows.Forms.VisualStyle.Metro;
            this.mainFrameBarManager1.UseBackwardCompatiblity = false;
            //
            // bar1
            //
            this.bar1.BarName = "Menu";
            this.bar1.Caption = "Menu";
            this.bar1.Items.AddRange(new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem[] {
                this.parentBarItem1,
                this.parentBarItem2
            });
            this.bar1.Manager = this.mainFrameBarManager1;
            //
            // parentBarItem1
            //
            this.parentBarItem1.BarName       = "parentBarItem1";
            this.parentBarItem1.CategoryIndex = 0;
            this.parentBarItem1.ID            = "&File";
            this.parentBarItem1.Items.AddRange(new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem[] {
                this.barItem1,
                this.barItem2,
                this.barItem3,
                this.barItem4,
                this.barItem5,
                this.barItem6
            });
            this.parentBarItem1.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(110)))), ((int)(((byte)(218)))));
            this.parentBarItem1.ShowToolTipInPopUp = false;
            this.parentBarItem1.SizeToFit          = true;
            this.parentBarItem1.Text       = "&File";
            this.parentBarItem1.WrapLength = 20;
            //
            // barItem1
            //
            this.barItem1.BarName            = "barItem1";
            this.barItem1.CategoryIndex      = 0;
            this.barItem1.ID                 = "&New";
            this.barItem1.ShowToolTipInPopUp = false;
            this.barItem1.SizeToFit          = true;
            this.barItem1.Text               = "&New";
            this.barItem1.Click             += new System.EventHandler(this.barItem1_Click);
            //
            // barItem2
            //
            this.barItem2.BarName            = "barItem2";
            this.barItem2.CategoryIndex      = 0;
            this.barItem2.ID                 = "&Open";
            this.barItem2.ShowToolTipInPopUp = false;
            this.barItem2.SizeToFit          = true;
            this.barItem2.Text               = "&Open";
            this.barItem2.Click             += new System.EventHandler(this.barItem2_Click);
            //
            // barItem3
            //
            this.barItem3.BarName            = "barItem3";
            this.barItem3.CategoryIndex      = 0;
            this.barItem3.ID                 = "&Save";
            this.barItem3.ShowToolTipInPopUp = false;
            this.barItem3.SizeToFit          = true;
            this.barItem3.Text               = "&Save";
            this.barItem3.Click             += new System.EventHandler(this.barItem3_Click);
            //
            // barItem4
            //
            this.barItem4.BarName            = "barItem4";
            this.barItem4.CategoryIndex      = 0;
            this.barItem4.ID                 = "Save&As";
            this.barItem4.ShowToolTipInPopUp = false;
            this.barItem4.SizeToFit          = true;
            this.barItem4.Text               = "Save&As";
            this.barItem4.Click             += new System.EventHandler(this.barItem4_Click);
            //
            // barItem5
            //
            this.barItem5.BarName            = "barItem5";
            this.barItem5.CategoryIndex      = 0;
            this.barItem5.ID                 = "&Close";
            this.barItem5.ShowToolTipInPopUp = false;
            this.barItem5.SizeToFit          = true;
            this.barItem5.Text               = "&Close";
            this.barItem5.Click             += new System.EventHandler(this.barItem5_Click);
            //
            // barItem6
            //
            this.barItem6.BarName            = "barItem6";
            this.barItem6.CategoryIndex      = 0;
            this.barItem6.ID                 = "&Exit";
            this.barItem6.ShowToolTipInPopUp = false;
            this.barItem6.SizeToFit          = true;
            this.barItem6.Text               = "&Exit";
            this.barItem6.Click             += new System.EventHandler(this.barItem6_Click);
            //
            // parentBarItem2
            //
            this.parentBarItem2.BarName       = "parentBarItem2";
            this.parentBarItem2.CategoryIndex = 0;
            this.parentBarItem2.ID            = "Choose Background Color";
            this.parentBarItem2.Items.AddRange(new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem[] {
                this.dropDownBarItem1,
                this.dropDownBarItem2
            });
            this.parentBarItem2.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(110)))), ((int)(((byte)(218)))));
            this.parentBarItem2.ShowToolTipInPopUp = false;
            this.parentBarItem2.SizeToFit          = true;
            this.parentBarItem2.Text       = "Choose Background Color";
            this.parentBarItem2.WrapLength = 20;
            //
            // dropDownBarItem1
            //
            this.dropDownBarItem1.BarName               = "dropDownBarItem1";
            this.dropDownBarItem1.CategoryIndex         = 0;
            this.dropDownBarItem1.ID                    = "Start Color";
            this.dropDownBarItem1.PopupControlContainer = this.popupControlContainer2;
            this.dropDownBarItem1.ShowToolTipInPopUp    = false;
            this.dropDownBarItem1.SizeToFit             = true;
            this.dropDownBarItem1.Text                  = "Start Color";
            //
            // popupControlContainer2
            //
            this.popupControlContainer2.Controls.Add(this.colorPickerUIAdv2);
            this.popupControlContainer2.Location = new System.Drawing.Point(173, 164);
            this.popupControlContainer2.Name     = "popupControlContainer2";
            this.popupControlContainer2.Size     = new System.Drawing.Size(220, 250);
            this.popupControlContainer2.TabIndex = 10002;
            this.popupControlContainer2.Visible  = false;
            //
            // colorPickerUIAdv2.RecentGroup
            //
            //
            // colorPickerUIAdv2.StandardGroup
            //
            //
            // colorPickerUIAdv2.ThemeGroup
            //
            //
            // colorPickerUIAdv2
            //
            this.colorPickerUIAdv2.BeforeTouchSize      = new System.Drawing.Size(13, 13);
            this.colorPickerUIAdv2.BorderStyle          = System.Windows.Forms.BorderStyle.FixedSingle;
            this.colorPickerUIAdv2.ColorItemSize        = new System.Drawing.Size(17, 41);
            this.colorPickerUIAdv2.Dock                 = System.Windows.Forms.DockStyle.Fill;
            this.colorPickerUIAdv2.Location             = new System.Drawing.Point(0, 0);
            this.colorPickerUIAdv2.MetroColor           = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(110)))), ((int)(((byte)(218)))));
            this.colorPickerUIAdv2.MinimumSize          = new System.Drawing.Size(136, 163);
            this.colorPickerUIAdv2.Name                 = "colorPickerUIAdv2";
            this.colorPickerUIAdv2.SelectedColor        = System.Drawing.Color.Empty;
            this.colorPickerUIAdv2.Size                 = new System.Drawing.Size(220, 250);
            this.colorPickerUIAdv2.Style                = Syncfusion.Windows.Forms.Tools.ColorPickerUIAdv.visualstyle.Metro;
            this.colorPickerUIAdv2.TabIndex             = 10003;
            this.colorPickerUIAdv2.Text                 = "colorPickerUIAdv2";
            this.colorPickerUIAdv2.UseOffice2007Style   = false;
            this.colorPickerUIAdv2.VerticalItemsSpacing = 1;
            this.colorPickerUIAdv2.Picked              += new Syncfusion.Windows.Forms.Tools.ColorPickerUIAdv.ColorPickedEventHandler(this.colorPickerUIAdv2_Picked);
            //
            // dropDownBarItem2
            //
            this.dropDownBarItem2.BarName               = "dropDownBarItem2";
            this.dropDownBarItem2.CategoryIndex         = 0;
            this.dropDownBarItem2.ID                    = "End Color";
            this.dropDownBarItem2.PopupControlContainer = this.popupControlContainer1;
            this.dropDownBarItem2.ShowToolTipInPopUp    = false;
            this.dropDownBarItem2.SizeToFit             = true;
            this.dropDownBarItem2.Text                  = "End Color";
            //
            // popupControlContainer1
            //
            this.popupControlContainer1.Controls.Add(this.colorPickerUIAdv1);
            this.popupControlContainer1.Location = new System.Drawing.Point(173, 164);
            this.popupControlContainer1.Name     = "popupControlContainer1";
            this.popupControlContainer1.Size     = new System.Drawing.Size(220, 250);
            this.popupControlContainer1.TabIndex = 10002;
            this.popupControlContainer1.Visible  = false;
            //
            // colorPickerUIAdv1.RecentGroup
            //
            //
            // colorPickerUIAdv1.StandardGroup
            //
            //
            // colorPickerUIAdv1.ThemeGroup
            //
            //
            // colorPickerUIAdv1
            //
            this.colorPickerUIAdv1.BeforeTouchSize      = new System.Drawing.Size(13, 13);
            this.colorPickerUIAdv1.BorderStyle          = System.Windows.Forms.BorderStyle.FixedSingle;
            this.colorPickerUIAdv1.ColorItemSize        = new System.Drawing.Size(17, 41);
            this.colorPickerUIAdv1.Dock                 = System.Windows.Forms.DockStyle.Fill;
            this.colorPickerUIAdv1.Location             = new System.Drawing.Point(0, 0);
            this.colorPickerUIAdv1.MetroColor           = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(110)))), ((int)(((byte)(218)))));
            this.colorPickerUIAdv1.MinimumSize          = new System.Drawing.Size(136, 163);
            this.colorPickerUIAdv1.Name                 = "colorPickerUIAdv1";
            this.colorPickerUIAdv1.SelectedColor        = System.Drawing.Color.Empty;
            this.colorPickerUIAdv1.Size                 = new System.Drawing.Size(220, 250);
            this.colorPickerUIAdv1.Style                = Syncfusion.Windows.Forms.Tools.ColorPickerUIAdv.visualstyle.Metro;
            this.colorPickerUIAdv1.TabIndex             = 10003;
            this.colorPickerUIAdv1.Text                 = "colorPickerUIAdv1";
            this.colorPickerUIAdv1.UseOffice2007Style   = false;
            this.colorPickerUIAdv1.VerticalItemsSpacing = 1;
            this.colorPickerUIAdv1.Picked              += new Syncfusion.Windows.Forms.Tools.ColorPickerUIAdv.ColorPickedEventHandler(this.colorPickerUIAdv1_Picked);
            //
            // Form1
            //
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize        = new System.Drawing.Size(566, 461);
            this.Controls.Add(this.editControl1);
            this.MinimumSize   = new System.Drawing.Size(552, 434);
            this.Name          = "Form1";
            this.Padding       = new System.Windows.Forms.Padding(10);
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text          = "Gradient Background";
            this.WindowState   = System.Windows.Forms.FormWindowState.Maximized;
            ((System.ComponentModel.ISupportInitialize)(this.editControl1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.mainFrameBarManager1)).EndInit();
            this.popupControlContainer2.ResumeLayout(false);
            this.popupControlContainer1.ResumeLayout(false);
            this.ResumeLayout(false);
        }
Exemple #25
0
        private void btnCancel_Click(object sender, EventArgs e)
        {
            PopupControlContainer popup = ChargeDateSelectBtn.DropDownControl as PopupControlContainer;

            popup.HidePopup();
        }