コード例 #1
0
        /// <summary>
        /// Farklılık var ise true döndürür.
        /// </summary>
        /// <param name="haricTutulacakKontrol"></param>
        /// <returns></returns>
        public static bool DegerleriTagdanFarkliMi(LayoutControlGroup layoutControlGroup,
                                                   string[] haricTutulacakKontrolIsimleri = null)
        {
            try
            {
                foreach (var groupItem in layoutControlGroup.Items)
                {
                    if (groupItem is LayoutControlItem)
                    {
                        LayoutControlItem layoutControlItem = (LayoutControlItem)groupItem;
                        if (groupItem is EmptySpaceItem)
                        {
                            continue;
                        }

                        if (!StringExistsInArray(layoutControlItem.Control.Name, haricTutulacakKontrolIsimleri) &&
                            layoutControlItem.Control.Tag != null &&
                            layoutControlItem.Control.Tag.ToString() != layoutControlItem.Control.Text)
                        {
                            return(true);
                        }
                    }
                    else if (groupItem is LayoutControlGroup)
                    {
                        return(DegerleriTagdanFarkliMi((LayoutControlGroup)groupItem, haricTutulacakKontrolIsimleri));
                    }
                }
            }
            catch (Exception ex)
            {
                WriteLog("DegerleriTagdanFarkliMi()", ex.Message);
            }
            return(false);
        }
コード例 #2
0
        private LayoutControlItem createMetadataProviderLayoutControlItem(LayoutControlGroup lg)
        {
            LayoutControlItem lci = lg.AddItem( );

            lci.Name = "lciMetadataProvider";
            lci.Text = "Metadata Provider";
            ComboBoxEdit o = (ComboBoxEdit)(lci.Control = new ComboBoxEdit( ));

            {
                ComboBoxItemCollection coll = o.Properties.Items;
                coll.BeginUpdate( );
                try
                {
                    string[] name = Enum.GetNames(typeof(MetadataProviderEnum));
                    for (int i = 0; i < name.Length; i++)
                    {
                        string tc = System.Globalization.CultureInfo.CurrentUICulture.TextInfo.ToTitleCase(name[i]);
                        coll.Add(tc);
                    }
                    o.SelectedIndex = 0;
                }
                finally
                {
                    coll.EndUpdate( );
                }
            }
            return(lci);
        }
コード例 #3
0
        private static LayoutControlGroup configRootGroup(LayoutControl lc, string titleText)
        {
            LayoutControlGroup rg = lc.Root;

            //
            // rg.AllowHide = false;
            // rg.AllowCustomizeChildren = false;
            //
            rg.GroupBordersVisible = true;
            rg.Text         = titleText;
            rg.TextLocation = DevExpress.Utils.Locations.Top;
            rg.TextVisible  = true;
            //
            rg.Expanded              = true; // BUG?!
            rg.ExpandOnDoubleClick   = true;
            rg.ExpandButtonVisible   = true;
            rg.HeaderButtonsLocation = DevExpress.Utils.GroupElementLocation.BeforeText;
            //
            // rg.CustomHeaderButtons.Add( button );
            // rg.CustomButtonClick += ...,
            // LayoutGroup.CustomButtonChecked += ...
            // LayoutGroup.CustomButtonUnchecked += events.

            //
            // rg.CaptionImage = null;
            // rg.Images = null;
            // rg.CaptionImageIndex = -1;
            //
            return(rg);
        }
コード例 #4
0
        public void PutDashboardInLayoutGroup(LayoutControlGroup editor)
        {
            var os      = ObjectSpace as XPObjectSpace;
            var session = os?.Session;

            var template = session.Query <DoSoDashboard>().FirstOrDefault(x => x.Name.ToLower() == "default");

            if (template == null)
            {
                return;
            }
            var dashboard = template.CreateDashBoard();

            var parameters = dashboard.Parameters.Where(x => x.Name.ToLower() == "currentobject");

            editor.Items.Clear();
            viewver = new DashboardViewer {
                Dock = DockStyle.Fill
            };


            //var dss = new List<DataSource>();
            ////dss.AddRange(dashboard.DataSources);
            //dashboard.DataSources.Clear();

            editor.Add(new LayoutControlItem()
            {
                Control = viewver, TextVisible = false
            });

            viewver.Dashboard = dashboard;

            //Task.Run(() => AddDataSource2Dashboard(dss, viewver));
        }
コード例 #5
0
ファイル: LayoutUtils.cs プロジェクト: JWPLAY/AUBE
        public static void ItemClear(this LayoutControlGroup group, params Control[] controls)
        {
            try
            {
                List <LayoutControlItem> list = null;
                if (controls == null || controls.Length == 0)
                {
                    list = group.Items.OfType <LayoutControlItem>().Where(x => x.Name.StartsWith("lcItem") && x.Control != null).ToList();
                }
                else
                {
                    list = group.Items.OfType <LayoutControlItem>().Where(x => x.Name.StartsWith("lcItem") && x.Control != null && controls.Contains(x.Control)).ToList();
                }

                if (list != null && list.Count > 0)
                {
                    list.ForEach(x =>
                    {
                        ItemClear(x.Control);
                    });
                }
            }
            catch
            {
            }
        }
コード例 #6
0
ファイル: DevLayoutUtils.cs プロジェクト: KingSZ221/Hulk
        public static TextEdit addItemText(string strName, string strLabelText, string strDefaultVal, bool bIsReadOnly,
                                           LayoutControl oParent, LayoutControlGroup oGroup = null)
        {
            var oTextEdit = new TextEdit();

            oTextEdit.Name            = NAME_ITEM_TEXT + strName;
            oTextEdit.Text            = strDefaultVal;
            oTextEdit.Enabled         = !bIsReadOnly;
            oTextEdit.StyleController = oParent;
            oParent.Controls.Add(oTextEdit);

            var oItemContainer = new LayoutControlItem();

            oItemContainer.Name    = NAME_ITEM_CONTAINER + strName;
            oItemContainer.Text    = strLabelText;
            oItemContainer.Control = oTextEdit;
            if (null == oGroup)
            {
                oParent.Root.Items.AddRange(new BaseLayoutItem[] { oItemContainer });
            }
            else
            {
                oGroup.Items.AddRange(new BaseLayoutItem[] { oItemContainer });
            }

            return(oTextEdit);
        }
コード例 #7
0
        private void LoadSelectedGRVDetailForUnitCostCalculation(int ReceiptID)
        {
            //This Might Be taking time to load
            DataRow dr = GRV.IsItemBeingPricedElsewhere();

            if (dr != null)
            {
                MessageBox.Show(string.Format(
                                    @"The Item {0} - with Unit: {1} - and Manufacturer: {2} is {3}.
Please finalize the receive process For {4} under the Activity {5} before continuing"
                                    , dr["FullItemName"], dr["ItemUnitName"], dr["ManufacturerName"], dr["Description"], dr["GRVNo"], dr["ActivityFullName"]
                                    )
                                , string.Format(@"Pending Receipt()...{0}", dr["ReceiptID"].ToString()), MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }
            selectTab = grpTabUnitCost;
            FocusOnSelectedTab();

            GRV.CalculateCostCoefficient();
            gridCostBuild.DataSource = GRV.GetCostBuildUp();

            //Display Correct Tab

            GRV.SuspendFromIssuing();
            gridUnitCost.DataSource = GRV.GRVDetail;
        }
コード例 #8
0
        private static LayoutControlItem createConnectionPropertiesLayoutControlItem(LayoutControlGroup lg, BindingSource bs)
        {
            LayoutControlItem lci = lg.AddItem( );

            lci.Name         = "lciConnectionProperties";
            lci.Text         = "Connection Properties";
            lci.TextLocation = DevExpress.Utils.Locations.Top;
            GridControl gc = new GridControl( );

            {
                gc.DataSource           = bs;
                gc.UseEmbeddedNavigator = true;
                gc.ForceInitialize( );
                gc.RefreshDataSource( );
                GridView gv = gc.MainView as GridView;
                {
                    gv.NewItemRowText = "New Row";
                    //gv.OptionsView.NewItemRowPosition = NewItemRowPosition.Top;
                    //gv.InitNewRow += new InitNewRowEventHandler( this.gridView1_InitNewRow );
                    gv.OptionsView.ShowFooter   = true;
                    gv.OptionsBehavior.Editable = true;
                    gv.OptionsBehavior.ReadOnly = false;
                }
            }
            lci.Control = gc;
            //gv.OptionsView.
            return(lci);
        }
コード例 #9
0
        private void LoadSelectedGRVDetailForInvoiceEntry(int ReceiptID)
        {
            //Display Correct Tab
            selectTab = grpTabInvoiceValue;
            FocusOnSelectedTab();

            // Load The GRV First
            GRV = new CenterCostCalculator();
            GRV.LoadGRV(ReceiptID);
            // Display the GRV Detail for Data Entry(Price Per Pack)

            //Please Make-up ur mind solution
            if (BLL.Settings.IsDamageIncludedOnTotalFOB)
            {
                gridInvoiceDetail.DataSource = GRV.GRVDetail;
            }
            else
            {
                gridInvoiceDetail.DataSource = GRV.GRVSoundDetail;
            }
            gridDiscrenpancy.DataSource = GRV.GRVDiscrepancyDetail;

            BLL.Receipt receipt = new BLL.Receipt();
            receipt.LoadByPrimaryKey(ReceiptID);
        }
コード例 #10
0
        private void PhanTich_Load(object sender, EventArgs e)
        {
            LoadThongTinChiTiet();
            LayoutControlGroup newGroup = dataLayoutControl1.Root.AddGroup();
            LayoutControlItem  item1    = newGroup.AddItem();

            gridControl            = new GridControl();
            gridControl.Dock       = DockStyle.Fill;
            gridControl.DataSource = getMarkDataWithID(MaHocVien);
            item1.Control          = gridControl;
            GridView   gridView1 = gridControl.MainView as GridView;
            GridColumn colHocKy  = gridView1.Columns["HocKy"];
            GridColumn colNam    = gridView1.Columns["Nam"];
            GridColumn colDiem   = gridView1.Columns["Diem"];

            colNam.GroupIndex   = 0;
            colHocKy.GroupIndex = 1;
            gridView1.ExpandAllGroups();

            //Change Format Rule

            GridFormatRule             gridFormatRule             = new GridFormatRule();
            FormatConditionRuleIconSet formatConditionRuleIconSet = new FormatConditionRuleIconSet();
            FormatConditionIconSet     iconSet = formatConditionRuleIconSet.IconSet = new FormatConditionIconSet();
            FormatConditionIconSetIcon icon1   = new FormatConditionIconSetIcon();
            FormatConditionIconSetIcon icon2   = new FormatConditionIconSetIcon();
            FormatConditionIconSetIcon icon3   = new FormatConditionIconSetIcon();
            FormatConditionIconSetIcon icon4   = new FormatConditionIconSetIcon();

            //Choose predefined icons.
            icon1.PredefinedName = "Rating4_1.png";
            icon2.PredefinedName = "Rating4_2.png";
            icon3.PredefinedName = "Rating4_3.png";
            icon4.PredefinedName = "Rating4_4.png";

            //Specify the type of threshold values.
            iconSet.ValueType = FormatConditionValueType.Number;

            //Define ranges to which icons are applied by setting threshold values.
            icon1.Value           = 8; // target range: 8 <= value
            icon1.ValueComparison = FormatConditionComparisonType.GreaterOrEqual;
            icon2.Value           = 7; // target range: 7 <= value < 8
            icon2.ValueComparison = FormatConditionComparisonType.GreaterOrEqual;
            icon3.Value           = 5; // target range: 5 <= value < 7
            icon3.ValueComparison = FormatConditionComparisonType.GreaterOrEqual;
            icon4.Value           = 0; // target range: 0 <= value < 5
            icon4.ValueComparison = FormatConditionComparisonType.GreaterOrEqual;
            //Add icons to the icon set.
            iconSet.Icons.Add(icon1);
            iconSet.Icons.Add(icon2);
            iconSet.Icons.Add(icon3);
            iconSet.Icons.Add(icon4);

            //Specify the rule type.
            gridFormatRule.Rule = formatConditionRuleIconSet;
            //Specify the column to which formatting is applied.
            gridFormatRule.Column = colDiem;
            //Add the formatting rule to the GridView.
            gridView1.FormatRules.Add(gridFormatRule);
        }
コード例 #11
0
ファイル: DevPGridPanel.cs プロジェクト: KingSZ221/Hulk
        public void init(string strName, string strText, List <RowVo> lstRow4Key, Action <object, EventArgs> oCallbackPropertyChange)
        {
            this.m_mapRow.Clear();

            this.m_oLayoutControl = DevLayoutUtils.addLayout(strName, strText, this);
            DevLayoutUtils.layoutBegin(this.m_oLayoutControl);

            this.m_oLayoutControlGroup = DevLayoutUtils.addGroup(strName, strText, this.m_oLayoutControl);
            foreach (var oRowVo4Key in lstRow4Key)
            {
                if (oRowVo4Key.type == RowVo.TYPE_TEXT)
                {
                    var oTextBox = DevLayoutUtils.addItemText(oRowVo4Key.name, oRowVo4Key.labelText, oRowVo4Key.defaultVal,
                                                              oRowVo4Key.isReadOnly, this.m_oLayoutControl, this.m_oLayoutControlGroup);
                    oTextBox.TextChanged += new EventHandler(oCallbackPropertyChange);
                    oRowVo4Key.textBox    = oTextBox;
                    oTextBox.Tag          = oRowVo4Key;
                    this.m_mapRow.Add(oRowVo4Key.name, oRowVo4Key);
                }
                else if (oRowVo4Key.type == RowVo.TYPE_COMBO || oRowVo4Key.type == RowVo.TYPE_CHOICE)
                {
                    var oCombo = DevLayoutUtils.addItemCombo(oRowVo4Key.name, oRowVo4Key.labelText, oRowVo4Key.values,
                                                             oRowVo4Key.defaultVal, oRowVo4Key.isReadOnly, this.m_oLayoutControl, this.m_oLayoutControlGroup);
                    oCombo.SelectedValueChanged += new EventHandler(oCallbackPropertyChange);
                    oRowVo4Key.combo             = oCombo;
                    oCombo.Tag = oRowVo4Key;
                    this.m_mapRow.Add(oRowVo4Key.name, oRowVo4Key);
                }
            }

            DevLayoutUtils.layoutEnd(this.m_oLayoutControl);
        }
コード例 #12
0
ファイル: DevLayoutUtils.cs プロジェクト: KingSZ221/Hulk
        public static LayoutControl addLayout(string strName, string strText, Control oParent)
        {
            //clear
            foreach (Control oChildControl in oParent.Controls)
            {
                oChildControl.Dispose();
            }
            oParent.Controls.Clear();

            var oRoot = new LayoutControlGroup();

            oRoot.Name = NAME_ROOT + strName;
            oRoot.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
            oRoot.GroupBordersVisible         = false;
            oRoot.TextVisible = false;

            var oLayout = new LayoutControl();

            oLayout.Name = NAME_LAYOUT + strName;
            oLayout.Text = strText;
            oLayout.Dock = DockStyle.Fill;
            oLayout.Root = oRoot;
            oParent.Controls.Add(oLayout);

            return(oLayout);
        }
コード例 #13
0
 public static void HideBorderIfRequired(this LayoutControlGroup layoutControlGroup)
 {
     /*hide the border if the selected skin is one that does not support border layout*/
     if (UIConstants.Skins.SkinsWithoutBorder.Contains(UserLookAndFeel.Default.SkinName))
     {
         layoutControlGroup.GroupBordersVisible = false;
     }
 }
コード例 #14
0
 public static void HideBorderIfRequired(this LayoutControlGroup layoutControlGroup)
 {
     /*hide the border if the selected skin is one that does not support border layout*/
     if (UserLookAndFeel.Default.SkinName == "Metropolis")
     {
         layoutControlGroup.GroupBordersVisible = false;
     }
 }
コード例 #15
0
 private void LoadSelectedGRVDetailForFinalization(int ReceiptID)
 {
     //Display Correct Tab
     selectTab = grpTabFinalize;
     FocusOnSelectedTab();
     GRV.CalculateFinalCost();
     gridFinal.DataSource = GRV.GRVSoundDetail;
 }
コード例 #16
0
        /// <summary>
        /// Создание полей матрицы
        /// </summary>
        private void Create()
        {
            LayoutControlGroup prevGroup = null;

            for (int i = 0; i < _dimension; i++)
            {
                // Prev LayoutItem
                LayoutControlItem prevItem = null;
                // Group-Row
                var group = new LayoutControlGroup
                {
                    TextVisible = false,
                    Padding     = new DevExpress.XtraLayout.Utils.Padding(3)
                };

                for (int j = 0; j < _dimension; j++)
                {
                    var textEdit = new TextEdit
                    {
                        Enabled = !_isDiagonal || i == j
                    };
                    textEdit.EditValueChanged += ValueChanged;
                    textEdit.Properties.Appearance.Options.UseTextOptions = true;
                    textEdit.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;

                    var item = new LayoutControlItem(group)
                    {
                        Control     = textEdit,
                        TextVisible = false
                    };

                    if (prevItem == null)
                    {
                        group.AddItem(item);
                    }
                    else
                    {
                        group.AddItem(item, prevItem, InsertType.Right);
                    }

                    prevItem      = item;
                    _matrix[i, j] = textEdit;
                }

                if (prevGroup == null)
                {
                    mainLayoutControl.AddGroup(group);
                }
                else
                {
                    mainLayoutControl.AddGroup(group, prevGroup, InsertType.Bottom);
                }

                prevGroup = group;
            }

            mainLayoutControl.AddItem(new EmptySpaceItem(), prevGroup, InsertType.Bottom);
        }
コード例 #17
0
        private static LayoutControlItem createConnectionStringLayoutControlItem(LayoutControlGroup lg)
        {
            LayoutControlItem lci = lg.AddItem( );

            lci.Name    = "lciConnectionString";
            lci.Text    = "Connection String";
            lci.Control = new TextEdit( );
            return(lci);
        }
コード例 #18
0
        private void LoadSelectedGRVDetailForMovingAverage(int ReceiptID)
        {
            //Display Correct Tab
            selectTab = grpTabMovingAverage;
            FocusOnSelectedTab();

            gridMovingAverage.DataSource   = GRV.GRVSoundDetail;
            gridPreviousBalance.DataSource = GRV.PreviousStock;
        }
コード例 #19
0
        private void LayoutManager_ItemCreated(object sender, ItemCreatedEventArgs e)
        {
            LayoutControlGroup group = e.Item as LayoutControlGroup;

            if (group != null && group.GroupStyle == DevExpress.Utils.GroupStyle.Title)
            {
                group.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, group.Spacing.Bottom);
            }
        }
コード例 #20
0
 private void LoadSelectedGRVDetailForMovingAverage(int ReceiptID)
 {
     //Display Correct Tab
     selectTab = grpTabMovingAverage;
     FocusOnSelectedTab();
     GRV.LoadGRVPreviousStock();
     gridMovingAverage.DataSource   = GRV.GRVSoundDetail;
     gridPreviousBalance.DataSource = BLL.Receipt.GetPreviousStockforCostAnalysisPrintout(ReceiptID);
 }
コード例 #21
0
        private LayoutControlItem createLoginIDLayoutControlItem(LayoutControlGroup lg)
        {
            LayoutControlItem lci = lg.AddItem( );

            lci.Name    = "lciLoginID";
            lci.Text    = "Login ID";
            lci.Control = new TextEdit( );
            return(lci);
        }
コード例 #22
0
        public LayoutControlGroup CreateLayoutGroup(string text)
        {
            LayoutControlGroup group1 = new LayoutControlGroup();

            group1.Text = text;
            group1.ExpandButtonVisible = true;

            return(group1);
        }
コード例 #23
0
ファイル: DevLayoutUtils.cs プロジェクト: KingSZ221/Hulk
        public static LayoutControlGroup addGroup(string strName, string strText, LayoutControl oParent)
        {
            var oGroup = new LayoutControlGroup();

            oGroup.Name = NAME_GROUP + strName;
            oGroup.Text = strText;
            oParent.Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { oGroup });

            return(oGroup);
        }
        private void searchLookUpEdit1_Popup(object sender, EventArgs e)
        {
            Control window = (sender as IPopupControl).PopupWindow;
            //Direct reference to the LayoutControl. It could be changed in future versions.
            //LayoutControl lc = (sender as IPopupControl).PopupWindow.Controls[2].Controls[0] as LayoutControl;
            LayoutControl      lc      = SearchForLayout(window);
            LayoutControlGroup lcgroup = lc.Items[0] as LayoutControlGroup;

            lcgroup.AppearanceGroup.BackColor = Color.CadetBlue;
        }
コード例 #25
0
ファイル: ExtensionMethod.cs プロジェクト: yyan/winform
 /// <summary>
 /// 设置控件组是否显示
 /// </summary>
 /// <returns></returns>
 public static void ToVisibility(this LayoutControlGroup control, bool visible)
 {
     if (visible)
     {
         control.Visibility = LayoutVisibility.Always;
     }
     else
     {
         control.Visibility = LayoutVisibility.Never;
     }
 }
コード例 #26
0
        private LayoutControlItem createDescriptionLayoutControlItem(LayoutControlGroup lg)
        {
            LayoutControlItem lci = lg.AddItem( );

            lci.Name         = "lciDescription";
            lci.Text         = "Description";
            lci.TextLocation = DevExpress.Utils.Locations.Top;
            MemoEdit o = (MemoEdit)(lci.Control = new MemoEdit( ));

            return(lci);
        }
コード例 #27
0
 /// <summary>
 /// 动态给控件绑定数据源
 /// </summary>
 /// <param name="lcGroup"></param>
 /// <param name="modelSource"></param>
 /// <param name="dataColumnCollection"></param>
 public static void VoucherDataBindings(LayoutControlGroup lcGroup, BindingSource modelSource, System.Data.DataColumnCollection dataColumnCollection)
 {
     foreach (BaseLayoutItem baseItem in lcGroup.Items)
     {
         LayoutControlItem item = baseItem as LayoutControlItem;
         if (item.Control != null && dataColumnCollection.Contains(item.CustomizationFormText))
         {
             item.Control.DataBindings.Add(new Binding("EditValue", modelSource, item.CustomizationFormText, true));
         }
     }
 }
コード例 #28
0
 /// <summary>
 /// 动态给控件绑定数据源
 /// </summary>
 /// <param name="lcGroup"></param>
 /// <param name="modelSource"></param>
 public static void VoucherDataBindings(LayoutControlGroup lcGroup, BindingSource modelSource)
 {
     foreach (BaseLayoutItem baseItem in lcGroup.Items)
     {
         LayoutControlItem item = baseItem as LayoutControlItem;
         if (item.Control != null && string.IsNullOrEmpty(item.CustomizationFormText) == false)
         {
             item.Control.DataBindings.Add(new Binding("EditValue", modelSource, item.CustomizationFormText, true));
         }
     }
 }
コード例 #29
0
        private LayoutControlItem createSuperToolTipFooterLayoutControlItem(LayoutControlGroup lg)
        {
            LayoutControlItem lci = lg.AddItem( );

            lci.Name         = "lciFooter";
            lci.Text         = "Footer";
            lci.TextLocation = DevExpress.Utils.Locations.Top;
            MemoEdit o = (MemoEdit)(lci.Control = new MemoEdit( ));

            return(lci);
        }
コード例 #30
0
        private void CreateLayoutItems(LayoutControl layout)
        {
            layout.BeginUpdate();
            try
            {
                layout.Clear();
                IList <DocumentItemBase> documentItems = GetSortedDocumentItems();
                if (documentItems.Count != 0)
                {
                    int itemsPerRow           = DefaultItemsPerRow;
                    ItemsPerRowAttribute attr = MemberInfo.FindAttribute <ItemsPerRowAttribute>();
                    if (attr != null)
                    {
                        itemsPerRow = attr.Value;
                    }



                    for (int rowNumber = 0; rowNumber < Math.Ceiling((decimal)documentItems.Count / (decimal)itemsPerRow); rowNumber++)
                    {
                        LayoutControlGroup row = layout.AddGroup();
                        row.Name = GetId("Row", rowNumber);
                        row.DefaultLayoutType   = DevExpress.XtraLayout.Utils.LayoutType.Horizontal;
                        row.GroupBordersVisible = false;

                        for (int cellNumber = 0; cellNumber < itemsPerRow; cellNumber++)
                        {
                            if (rowNumber * itemsPerRow + cellNumber < documentItems.Count)
                            {
                                DocumentItemBase  item = documentItems[rowNumber * itemsPerRow + cellNumber];
                                LayoutControlItem cell = new LayoutControlItem(layout, CreateDocumentItemEditor(item));
                                cell.Name = GetId("Cell", item);
                                cell.Text = item.Caption;
                                if (application.Model.Options.LayoutManagerOptions.EnableCaptionColon)
                                {
                                    cell.Text += ":";
                                }
                                row.Add(cell);
                            }
                            else
                            {
                                row.Add(new EmptySpaceItem());
                            }
                        }
                    }
                }
            }
            finally
            {
                layout.EndUpdate();
                layout.BestFit();
            }
        }
        private void LoadSelectedGRVDetailForCostBuildUp(int ReceiptID)
        {
            //   if (selectTab == grpTabInvoiceValue)

            GRV.SaveTotalCost();
            // reload The GRV
            DataRow SelectGRV = gridGRVsView.GetFocusedDataRow();
            if (SelectGRV != null)
                GRV.LoadCostBuilUp(false, SelectGRV["RefNo"].ToString());

            //if (chkUseProration.Checked)
            //    ColGRVValue.OptionsColumn.AllowEdit = false;
            //else
            //    ColGRVValue.OptionsColumn.AllowEdit = true;

            //Display Correct Tab
            selectTab = grpTabCostBuildUp;
            FocusOnSelectedTab();
            gridCostBuildUp.DataSource = GRV.CostBuildUp.DataTable;
        }
コード例 #32
0
 public void InitializeComponent()
 {
     layoutControlGroupQuestion1 = new LayoutControlGroup();
 }
コード例 #33
0
ファイル: LanguageEngine.cs プロジェクト: penguinsoft/iPOS
 public static void ChangeCaptionLayoutControlGroup(string parent_name, string language, LayoutControlGroup[] layout_control_groups)
 {
     foreach (LayoutControlGroup layout_control_group in layout_control_groups)
         ChangeCaptionLayoutControlGroup(parent_name, language, layout_control_group);
 }
コード例 #34
0
 public Padding GetLayoutControlGroupPadding(LayoutControlGroup layoutControlGroup)
 {
     if (this.list.ContainsKey(layoutControlGroup))
     {
         return list[layoutControlGroup].LayoutControlGroupPadding;
     }
     return new Padding(3, 3, 3, 3);
 }
        private void LoadSelectedGRVDetailForMovingAverage(int ReceiptID)
        {
            //Display Correct Tab
            selectTab = grpTabMovingAverage;
            FocusOnSelectedTab();

            gridMovingAverage.DataSource = GRV.GRVSoundDetail;
            gridPreviousBalance.DataSource = GRV.PreviousStock;
        }
コード例 #36
0
            private void Initialize()
            {
                /**
                 * if ui is needed, we will just leave this method.
                 * we will just use the grid control default of this module (gcReport)
                 */
                if (m_CallingEnvironment == eCallingEnvironment.BrightSales_SendEmail || m_IsWebPortalCall)
                    return;

                this.layoutControl = new LayoutControl();
                this.layoutControl.Name = "layoutControl" + Guid.NewGuid().ToString();
                this.layoutControl.Dock = DockStyle.Fill;
                this.Controls.Add(layoutControl);

                this.layoutControlGroup1 = new LayoutControlGroup();
                this.layoutControlGroup1.Name = "layoutControlGroup" + Guid.NewGuid().ToString();
                this.layoutControlGroup1.Text = this.Text;
                this.layoutControlGroup1.Padding = new DevExpress.XtraLayout.Utils.Padding(10, 10, 10, 10);
                this.layoutControlGroup1.ShowInCustomizationForm = false;

                this.emptySpaceItemLoading = new EmptySpaceItem();
                this.emptySpaceItemLoading.Text = "Loading view display. Please wait...";
                this.emptySpaceItemLoading.AppearanceItemCaption.Font = new Font("Arial", 10f, FontStyle.Bold);
                this.emptySpaceItemLoading.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
                this.emptySpaceItemLoading.TextVisible = true;
                this.emptySpaceItemLoading.Size = new Size(100, 20);
                this.emptySpaceItemLoading.MaxSize = new Size(100, 20);
                this.emptySpaceItemLoading.MinSize = new Size(100, 20);
                this.emptySpaceItemLoading.SizeConstraintsType = SizeConstraintsType.Custom;
                this.layoutControlGroup1.AddItem(emptySpaceItemLoading);

                /**
                 * grid control and grid view.
                 */
                this.gridControl1 = new GridControl();
                this.gridView1 = new GridView();

                this.gridControl1.Name = "gridControl" + Guid.NewGuid().ToString();
                this.gridControl1.MainView = this.gridView1;
                this.gridControl1.ViewCollection.AddRange(new BaseView[] { this.gridView1 });

                this.gridView1.Name = "gridView" + Guid.NewGuid().ToString();
                this.gridView1.GridControl = this.gridControl1;
                this.gridView1.OptionsFind.AlwaysVisible = false;
                this.gridView1.OptionsSelection.EnableAppearanceFocusedCell = false;
                this.gridView1.OptionsBehavior.AutoPopulateColumns = true;
                this.gridView1.OptionsSelection.MultiSelect = false;
                this.gridView1.OptionsView.ShowGroupPanel = false;
                this.gridView1.OptionsView.ColumnAutoWidth = false;
                this.gridView1.OptionsBehavior.Editable = false;
                this.gridView1.PopupMenuShowing += new DevExpress.XtraGrid.Views.Grid.PopupMenuShowingEventHandler(gridView1_PopupMenuShowing);
                this.gridView1.ColumnFilterChanged += new EventHandler(gridView1_ColumnFilterChanged);
                this.gridView1.DragObjectDrop += gridView1_DragObjectDrop;

                this.labelControl1 = new LabelControl();
                this.labelControl1.Name = "labelControl" + Guid.NewGuid().ToString();
                this.labelControl1.Text = "Records: 0";
                this.labelControl1.Size = new System.Drawing.Size(120, 22);

                this.layoutControl.BeginUpdate();
                this.layoutControlItem1 = new LayoutControlItem();
                this.layoutControlItem1.Name = "layoutControlItem" + Guid.NewGuid().ToString();
                this.layoutControlItem1.Control = gridControl1;
                this.layoutControlItem1.TextVisible = false;
                this.layoutControlGroup1.AddItem(this.layoutControlItem1);

                this.emptySpaceItem1 = new EmptySpaceItem();
                this.layoutControlGroup1.AddItem(emptySpaceItem1);

                /**
                 * [@jeff 06.18.2012]: https://brightvision.jira.com/browse/PLATFORM-1462
                 * added label to display the current grid record count.
                 */
                this.layoutControlItem5 = new LayoutControlItem();
                this.layoutControlItem5.Name = "layoutControlItem" + Guid.NewGuid().ToString();
                this.layoutControlItem5.Control = labelControl1;
                this.layoutControlItem5.SizeConstraintsType = SizeConstraintsType.Custom;
                this.layoutControlItem5.MaxSize = new Size(130, 30);
                this.layoutControlItem5.MinSize = new Size(80, 24);
                this.layoutControlItem5.Size = new Size(this.labelControl1.Width + 8, this.labelControl1.Height + 8);
                this.layoutControlItem5.TextVisible = false;
                this.layoutControlItem5.ShowInCustomizationForm = false;
                this.layoutControlItem5.Padding = new DevExpress.XtraLayout.Utils.Padding(5, 3, 3, 5);
                this.layoutControlGroup1.AddItem(layoutControlItem5, emptySpaceItem1, DevExpress.XtraLayout.Utils.InsertType.Left);

                /**
                 * show report.
                 */
                this.btnShowReport = new SimpleButton();
                this.btnShowReport.Name = "simpleButton" + Guid.NewGuid().ToString();
                this.btnShowReport.Text = "Show Report";
                this.btnShowReport.Size = new System.Drawing.Size(90, 22);
                this.btnShowReport.Enabled = false;
                this.btnShowReport.Click += new EventHandler(btnShowReport_Click);

                this.layoutControlItem4 = new LayoutControlItem();
                this.layoutControlItem4.Name = "layoutControlItem" + Guid.NewGuid().ToString();
                this.layoutControlItem4.Control = btnShowReport;
                this.layoutControlItem4.SizeConstraintsType = SizeConstraintsType.Custom;
                this.layoutControlItem4.MaxSize = new Size(100, 30);
                this.layoutControlItem4.MinSize = new Size(80, 24);
                this.layoutControlItem4.Size = new Size(this.btnShowReport.Width + 8, this.btnShowReport.Height + 8);
                this.layoutControlItem4.TextVisible = false;
                this.layoutControlItem4.ShowInCustomizationForm = false;
                this.layoutControlItem4.Padding = new DevExpress.XtraLayout.Utils.Padding(5, 3, 3, 5);
                this.layoutControlGroup1.AddItem(layoutControlItem4, emptySpaceItem1, DevExpress.XtraLayout.Utils.InsertType.Left);

                /**
                 * Save As Account Per PDF.
                 */
                this.btnSaveReportPerPdf = new SimpleButton();
                this.btnSaveReportPerPdf.Name = "simpleButton" + Guid.NewGuid().ToString();
                this.btnSaveReportPerPdf.Text = "Save Account Per PDF";
                this.btnSaveReportPerPdf.Size = new System.Drawing.Size(170, 22);
                this.btnSaveReportPerPdf.Enabled = false;
                this.btnSaveReportPerPdf.Click += new EventHandler(btnSaveReportPerPdf_Click);

                this.layoutControlItem7 = new LayoutControlItem();
                this.layoutControlItem7.Name = "layoutControlItem" + Guid.NewGuid().ToString();
                this.layoutControlItem7.Control = btnSaveReportPerPdf;
                this.layoutControlItem7.SizeConstraintsType = SizeConstraintsType.Custom;
                this.layoutControlItem7.MaxSize = new Size(180, 30);
                this.layoutControlItem7.MinSize = new Size(80, 24);
                this.layoutControlItem7.Size = new Size(this.btnSaveReportPerPdf.Width + 8, this.btnSaveReportPerPdf.Height + 8);
                this.layoutControlItem7.TextVisible = false;
                this.layoutControlItem7.ShowInCustomizationForm = false;
                this.layoutControlItem7.Padding = new DevExpress.XtraLayout.Utils.Padding(5, 3, 3, 5);
                this.layoutControlGroup1.AddItem(layoutControlItem7, emptySpaceItem1, DevExpress.XtraLayout.Utils.InsertType.Left);

                /**
                 * hide (Save As Account Per PDF) button
                 * if not called by bright manager application.
                 */
                //if (m_CallingEnvironment != eCallingEnvironment.BrightManager_ViewDisplay)
                //    layoutControlItem7.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;

                this.layoutControl.Root = layoutControlGroup1;
                this.layoutControl.Root.GroupBordersVisible = false;
                this.layoutControl.EndUpdate();
                this.Tag = this;
            }
コード例 #37
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(frmTrialXtraLayoutControl));
     this.defaultLookAndFeel1 = new DevExpress.LookAndFeel.DefaultLookAndFeel(this.components);
     this.imageCollection1 = new DevExpress.Utils.ImageCollection(this.components);
     this.splitContainerControl1 = new DevExpress.XtraEditors.SplitContainerControl();
     this.checkEdit1 = new DevExpress.XtraEditors.CheckEdit();
     this.filename = new DevExpress.XtraEditors.TextEdit();
     this.btnSave = new DevExpress.XtraEditors.SimpleButton();
     this.btnLoad = new DevExpress.XtraEditors.SimpleButton();
     this.labelControl2 = new DevExpress.XtraEditors.LabelControl();
     this.labelControl1 = new DevExpress.XtraEditors.LabelControl();
     this.dsFile = new DevExpress.XtraEditors.ComboBoxEdit();
     this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
     this.userCtrl_DieuKienLoc1 = new XtralayoutControl.chautv.UserCtrl_DieuKienLoc();
     this.NgaySinh = new DevExpress.XtraEditors.DateEdit();
     this.NgheNghiep = new DevExpress.XtraEditors.ComboBoxEdit();
     this.TenNuoc = new DevExpress.XtraEditors.ComboBoxEdit();
     this.NoiSinh = new DevExpress.XtraEditors.TextEdit();
     this.txt_HoTen = new DevExpress.XtraEditors.TextEdit();
     this.dataNavigator1 = new DevExpress.XtraEditors.DataNavigator();
     this.ThongTinThem = new DevExpress.XtraEditors.MemoEdit();
     this.pictureEditHinhAnh = new DevExpress.XtraEditors.PictureEdit();
     this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
     this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
     this.splitterItem1 = new DevExpress.XtraLayout.SplitterItem();
     this.splitterItem2 = new DevExpress.XtraLayout.SplitterItem();
     this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem();
     this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem();
     this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem();
     this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem();
     this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
     this.emptySpaceItem3 = new DevExpress.XtraLayout.EmptySpaceItem();
     this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem();
     this.emptySpaceItem4 = new DevExpress.XtraLayout.EmptySpaceItem();
     this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem();
     this.layoutControlGroup2 = new DevExpress.XtraLayout.LayoutControlGroup();
     this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem();
     this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem();
     this.layoutControlGroup3 = new DevExpress.XtraLayout.LayoutControlGroup();
     this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
     this.xtraUserControlLayout1 = new pl.fw.layout.test.XtraUserControlLayout();
     ((System.ComponentModel.ISupportInitialize)(this.imageCollection1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).BeginInit();
     this.splitContainerControl1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.checkEdit1.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.filename.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dsFile.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
     this.layoutControl1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.NgaySinh.Properties.VistaTimeProperties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.NgaySinh.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.NgheNghiep.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.TenNuoc.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.NoiSinh.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.txt_HoTen.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.ThongTinThem.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureEditHinhAnh.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.splitterItem1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.splitterItem2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem4)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup3)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
     this.SuspendLayout();
     //
     // defaultLookAndFeel1
     //
     this.defaultLookAndFeel1.LookAndFeel.SkinName = "Money Twins";
     //
     // imageCollection1
     //
     this.imageCollection1.ImageStream = ((DevExpress.Utils.ImageCollectionStreamer)(resources.GetObject("imageCollection1.ImageStream")));
     //
     // splitContainerControl1
     //
     this.splitContainerControl1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly;
     this.splitContainerControl1.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.splitContainerControl1.Horizontal = false;
     this.splitContainerControl1.Location = new System.Drawing.Point(0, 176);
     this.splitContainerControl1.Name = "splitContainerControl1";
     this.splitContainerControl1.Panel1.Controls.Add(this.checkEdit1);
     this.splitContainerControl1.Panel1.Controls.Add(this.filename);
     this.splitContainerControl1.Panel1.Controls.Add(this.btnSave);
     this.splitContainerControl1.Panel1.Controls.Add(this.btnLoad);
     this.splitContainerControl1.Panel1.Controls.Add(this.labelControl2);
     this.splitContainerControl1.Panel1.Controls.Add(this.labelControl1);
     this.splitContainerControl1.Panel1.Controls.Add(this.dsFile);
     this.splitContainerControl1.Panel1.Text = "Panel1";
     this.splitContainerControl1.Panel2.Controls.Add(this.layoutControl1);
     this.splitContainerControl1.Panel2.Text = "Panel2";
     this.splitContainerControl1.Size = new System.Drawing.Size(827, 451);
     this.splitContainerControl1.SplitterPosition = 92;
     this.splitContainerControl1.TabIndex = 0;
     this.splitContainerControl1.Text = "splitContainerControl1";
     //
     // checkEdit1
     //
     this.checkEdit1.Location = new System.Drawing.Point(26, 64);
     this.checkEdit1.Name = "checkEdit1";
     this.checkEdit1.Properties.Caption = "Thiết kế";
     this.checkEdit1.Size = new System.Drawing.Size(75, 18);
     this.checkEdit1.TabIndex = 5;
     this.checkEdit1.CheckedChanged += new System.EventHandler(this.checkEdit1_CheckedChanged);
     //
     // filename
     //
     this.filename.Location = new System.Drawing.Point(373, 37);
     this.filename.Name = "filename";
     this.filename.Size = new System.Drawing.Size(108, 20);
     this.filename.TabIndex = 4;
     //
     // btnSave
     //
     this.btnSave.Location = new System.Drawing.Point(487, 34);
     this.btnSave.Name = "btnSave";
     this.btnSave.Size = new System.Drawing.Size(61, 24);
     this.btnSave.TabIndex = 3;
     this.btnSave.Text = "Save";
     this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
     //
     // btnLoad
     //
     this.btnLoad.Location = new System.Drawing.Point(238, 34);
     this.btnLoad.Name = "btnLoad";
     this.btnLoad.Size = new System.Drawing.Size(61, 23);
     this.btnLoad.TabIndex = 2;
     this.btnLoad.Text = "Load";
     this.btnLoad.Click += new System.EventHandler(this.btnLoad_Click);
     //
     // labelControl2
     //
     this.labelControl2.Location = new System.Drawing.Point(309, 41);
     this.labelControl2.Name = "labelControl2";
     this.labelControl2.Size = new System.Drawing.Size(52, 13);
     this.labelControl2.TabIndex = 1;
     this.labelControl2.Text = "File name :";
     //
     // labelControl1
     //
     this.labelControl1.Location = new System.Drawing.Point(28, 40);
     this.labelControl1.Name = "labelControl1";
     this.labelControl1.Size = new System.Drawing.Size(47, 13);
     this.labelControl1.TabIndex = 1;
     this.labelControl1.Text = "Load file :";
     //
     // dsFile
     //
     this.dsFile.Location = new System.Drawing.Point(81, 36);
     this.dsFile.Name = "dsFile";
     this.dsFile.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
     new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
     this.dsFile.Size = new System.Drawing.Size(151, 20);
     this.dsFile.TabIndex = 0;
     //
     // layoutControl1
     //
     this.layoutControl1.Controls.Add(this.userCtrl_DieuKienLoc1);
     this.layoutControl1.Controls.Add(this.NgaySinh);
     this.layoutControl1.Controls.Add(this.NgheNghiep);
     this.layoutControl1.Controls.Add(this.TenNuoc);
     this.layoutControl1.Controls.Add(this.NoiSinh);
     this.layoutControl1.Controls.Add(this.txt_HoTen);
     this.layoutControl1.Controls.Add(this.dataNavigator1);
     this.layoutControl1.Controls.Add(this.ThongTinThem);
     this.layoutControl1.Controls.Add(this.pictureEditHinhAnh);
     this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.layoutControl1.Location = new System.Drawing.Point(0, 0);
     this.layoutControl1.Name = "layoutControl1";
     this.layoutControl1.OptionsCustomizationForm.ShowPropertyGrid = true;
     this.layoutControl1.Root = this.layoutControlGroup1;
     this.layoutControl1.Size = new System.Drawing.Size(821, 347);
     this.layoutControl1.TabIndex = 2;
     this.layoutControl1.Text = "layoutControl1";
     //
     // userCtrl_DieuKienLoc1
     //
     this.userCtrl_DieuKienLoc1.Location = new System.Drawing.Point(11, 29);
     this.userCtrl_DieuKienLoc1.Name = "userCtrl_DieuKienLoc1";
     this.userCtrl_DieuKienLoc1.Size = new System.Drawing.Size(800, 66);
     this.userCtrl_DieuKienLoc1.TabIndex = 21;
     //
     // NgaySinh
     //
     this.NgaySinh.EditValue = null;
     this.NgaySinh.Location = new System.Drawing.Point(404, 140);
     this.NgaySinh.Name = "NgaySinh";
     this.NgaySinh.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
     new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
     this.NgaySinh.Properties.VistaTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
     new DevExpress.XtraEditors.Controls.EditorButton()});
     this.NgaySinh.Size = new System.Drawing.Size(274, 20);
     this.NgaySinh.StyleController = this.layoutControl1;
     this.NgaySinh.TabIndex = 20;
     //
     // NgheNghiep
     //
     this.NgheNghiep.Location = new System.Drawing.Point(404, 233);
     this.NgheNghiep.Name = "NgheNghiep";
     this.NgheNghiep.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
     new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
     this.NgheNghiep.Size = new System.Drawing.Size(274, 20);
     this.NgheNghiep.StyleController = this.layoutControl1;
     this.NgheNghiep.TabIndex = 19;
     //
     // TenNuoc
     //
     this.TenNuoc.Location = new System.Drawing.Point(404, 202);
     this.TenNuoc.Name = "TenNuoc";
     this.TenNuoc.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
     new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
     this.TenNuoc.Size = new System.Drawing.Size(274, 20);
     this.TenNuoc.StyleController = this.layoutControl1;
     this.TenNuoc.TabIndex = 18;
     //
     // NoiSinh
     //
     this.NoiSinh.Location = new System.Drawing.Point(404, 171);
     this.NoiSinh.Name = "NoiSinh";
     this.NoiSinh.Size = new System.Drawing.Size(410, 20);
     this.NoiSinh.StyleController = this.layoutControl1;
     this.NoiSinh.TabIndex = 17;
     //
     // txt_HoTen
     //
     this.txt_HoTen.Location = new System.Drawing.Point(404, 109);
     this.txt_HoTen.Name = "txt_HoTen";
     this.txt_HoTen.Size = new System.Drawing.Size(410, 20);
     this.txt_HoTen.StyleController = this.layoutControl1;
     this.txt_HoTen.TabIndex = 15;
     //
     // dataNavigator1
     //
     this.dataNavigator1.Location = new System.Drawing.Point(371, 321);
     this.dataNavigator1.Name = "dataNavigator1";
     this.dataNavigator1.Size = new System.Drawing.Size(443, 19);
     this.dataNavigator1.StyleController = this.layoutControl1;
     this.dataNavigator1.TabIndex = 14;
     this.dataNavigator1.Text = "dataNavigator1";
     //
     // ThongTinThem
     //
     this.ThongTinThem.Location = new System.Drawing.Point(11, 291);
     this.ThongTinThem.Name = "ThongTinThem";
     this.ThongTinThem.Size = new System.Drawing.Size(800, 16);
     this.ThongTinThem.StyleController = this.layoutControl1;
     this.ThongTinThem.TabIndex = 12;
     //
     // pictureEditHinhAnh
     //
     this.pictureEditHinhAnh.Location = new System.Drawing.Point(8, 109);
     this.pictureEditHinhAnh.Name = "pictureEditHinhAnh";
     this.pictureEditHinhAnh.Properties.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Zoom;
     this.pictureEditHinhAnh.Size = new System.Drawing.Size(299, 144);
     this.pictureEditHinhAnh.StyleController = this.layoutControl1;
     this.pictureEditHinhAnh.TabIndex = 4;
     //
     // layoutControlGroup1
     //
     this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1";
     this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
     this.layoutControlItem1,
     this.splitterItem1,
     this.splitterItem2,
     this.emptySpaceItem1,
     this.layoutControlItem11,
     this.emptySpaceItem2,
     this.layoutControlItem7,
     this.layoutControlItem4,
     this.emptySpaceItem3,
     this.layoutControlItem8,
     this.emptySpaceItem4,
     this.layoutControlItem6,
     this.layoutControlGroup2,
     this.layoutControlItem5,
     this.layoutControlGroup3});
     this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0);
     this.layoutControlGroup1.Name = "layoutControlGroup1";
     this.layoutControlGroup1.Size = new System.Drawing.Size(821, 347);
     this.layoutControlGroup1.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
     this.layoutControlGroup1.Text = "layoutControlGroup1";
     this.layoutControlGroup1.TextVisible = false;
     //
     // layoutControlItem1
     //
     this.layoutControlItem1.Control = this.pictureEditHinhAnh;
     this.layoutControlItem1.CustomizationFormText = "layoutControlItem1";
     this.layoutControlItem1.Location = new System.Drawing.Point(0, 101);
     this.layoutControlItem1.Name = "layoutControlItem1";
     this.layoutControlItem1.Size = new System.Drawing.Size(310, 155);
     this.layoutControlItem1.Text = "layoutControlItem1";
     this.layoutControlItem1.TextLocation = DevExpress.Utils.Locations.Left;
     this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0);
     this.layoutControlItem1.TextToControlDistance = 0;
     this.layoutControlItem1.TextVisible = false;
     //
     // splitterItem1
     //
     this.splitterItem1.CustomizationFormText = "splitterItem1";
     this.splitterItem1.Location = new System.Drawing.Point(310, 101);
     this.splitterItem1.Name = "splitterItem1";
     this.splitterItem1.Size = new System.Drawing.Size(6, 155);
     //
     // splitterItem2
     //
     this.splitterItem2.CustomizationFormText = "splitterItem2";
     this.splitterItem2.Location = new System.Drawing.Point(0, 256);
     this.splitterItem2.Name = "splitterItem2";
     this.splitterItem2.Size = new System.Drawing.Size(817, 6);
     //
     // emptySpaceItem1
     //
     this.emptySpaceItem1.CustomizationFormText = "emptySpaceItem1";
     this.emptySpaceItem1.Location = new System.Drawing.Point(681, 225);
     this.emptySpaceItem1.Name = "emptySpaceItem1";
     this.emptySpaceItem1.Size = new System.Drawing.Size(136, 31);
     this.emptySpaceItem1.Text = "emptySpaceItem1";
     this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0);
     //
     // layoutControlItem11
     //
     this.layoutControlItem11.Control = this.dataNavigator1;
     this.layoutControlItem11.CustomizationFormText = "layoutControlItem11";
     this.layoutControlItem11.Location = new System.Drawing.Point(363, 313);
     this.layoutControlItem11.Name = "layoutControlItem11";
     this.layoutControlItem11.Size = new System.Drawing.Size(454, 30);
     this.layoutControlItem11.Text = "layoutControlItem11";
     this.layoutControlItem11.TextLocation = DevExpress.Utils.Locations.Left;
     this.layoutControlItem11.TextSize = new System.Drawing.Size(0, 0);
     this.layoutControlItem11.TextToControlDistance = 0;
     this.layoutControlItem11.TextVisible = false;
     //
     // emptySpaceItem2
     //
     this.emptySpaceItem2.CustomizationFormText = "emptySpaceItem2";
     this.emptySpaceItem2.Location = new System.Drawing.Point(0, 313);
     this.emptySpaceItem2.Name = "emptySpaceItem2";
     this.emptySpaceItem2.Size = new System.Drawing.Size(363, 30);
     this.emptySpaceItem2.Text = "emptySpaceItem2";
     this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0);
     //
     // layoutControlItem7
     //
     this.layoutControlItem7.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.layoutControlItem7.AppearanceItemCaption.Options.UseFont = true;
     this.layoutControlItem7.AppearanceItemCaption.Options.UseTextOptions = true;
     this.layoutControlItem7.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
     this.layoutControlItem7.Control = this.NgheNghiep;
     this.layoutControlItem7.CustomizationFormText = "Job :";
     this.layoutControlItem7.Location = new System.Drawing.Point(316, 225);
     this.layoutControlItem7.Name = "layoutControlItem7";
     this.layoutControlItem7.Size = new System.Drawing.Size(365, 31);
     this.layoutControlItem7.Text = "Nghề nghiệp :";
     this.layoutControlItem7.TextLocation = DevExpress.Utils.Locations.Left;
     this.layoutControlItem7.TextSize = new System.Drawing.Size(75, 20);
     //
     // layoutControlItem4
     //
     this.layoutControlItem4.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.layoutControlItem4.AppearanceItemCaption.Options.UseFont = true;
     this.layoutControlItem4.AppearanceItemCaption.Options.UseTextOptions = true;
     this.layoutControlItem4.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
     this.layoutControlItem4.Control = this.NoiSinh;
     this.layoutControlItem4.CustomizationFormText = "Place birthday :";
     this.layoutControlItem4.Location = new System.Drawing.Point(316, 163);
     this.layoutControlItem4.Name = "layoutControlItem4";
     this.layoutControlItem4.Size = new System.Drawing.Size(501, 31);
     this.layoutControlItem4.Text = "Nơi sinh :";
     this.layoutControlItem4.TextLocation = DevExpress.Utils.Locations.Left;
     this.layoutControlItem4.TextSize = new System.Drawing.Size(75, 20);
     //
     // emptySpaceItem3
     //
     this.emptySpaceItem3.CustomizationFormText = "emptySpaceItem3";
     this.emptySpaceItem3.Location = new System.Drawing.Point(681, 132);
     this.emptySpaceItem3.Name = "emptySpaceItem3";
     this.emptySpaceItem3.Size = new System.Drawing.Size(136, 31);
     this.emptySpaceItem3.Text = "emptySpaceItem3";
     this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0);
     //
     // layoutControlItem8
     //
     this.layoutControlItem8.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.layoutControlItem8.AppearanceItemCaption.Options.UseFont = true;
     this.layoutControlItem8.AppearanceItemCaption.Options.UseTextOptions = true;
     this.layoutControlItem8.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
     this.layoutControlItem8.Control = this.NgaySinh;
     this.layoutControlItem8.CustomizationFormText = "layoutControlItem8";
     this.layoutControlItem8.Location = new System.Drawing.Point(316, 132);
     this.layoutControlItem8.Name = "layoutControlItem8";
     this.layoutControlItem8.Size = new System.Drawing.Size(365, 31);
     this.layoutControlItem8.Text = "Ngày sinh :";
     this.layoutControlItem8.TextLocation = DevExpress.Utils.Locations.Left;
     this.layoutControlItem8.TextSize = new System.Drawing.Size(75, 20);
     //
     // emptySpaceItem4
     //
     this.emptySpaceItem4.CustomizationFormText = "emptySpaceItem4";
     this.emptySpaceItem4.Location = new System.Drawing.Point(681, 194);
     this.emptySpaceItem4.Name = "emptySpaceItem4";
     this.emptySpaceItem4.Size = new System.Drawing.Size(136, 31);
     this.emptySpaceItem4.Text = "emptySpaceItem4";
     this.emptySpaceItem4.TextSize = new System.Drawing.Size(0, 0);
     //
     // layoutControlItem6
     //
     this.layoutControlItem6.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.layoutControlItem6.AppearanceItemCaption.Options.UseFont = true;
     this.layoutControlItem6.AppearanceItemCaption.Options.UseTextOptions = true;
     this.layoutControlItem6.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
     this.layoutControlItem6.Control = this.TenNuoc;
     this.layoutControlItem6.CustomizationFormText = "Country :";
     this.layoutControlItem6.Location = new System.Drawing.Point(316, 194);
     this.layoutControlItem6.Name = "layoutControlItem6";
     this.layoutControlItem6.Size = new System.Drawing.Size(365, 31);
     this.layoutControlItem6.Text = "Tên nước :";
     this.layoutControlItem6.TextLocation = DevExpress.Utils.Locations.Left;
     this.layoutControlItem6.TextSize = new System.Drawing.Size(75, 20);
     //
     // layoutControlGroup2
     //
     this.layoutControlGroup2.AppearanceGroup.Font = new System.Drawing.Font("Tahoma", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.layoutControlGroup2.AppearanceGroup.Options.UseFont = true;
     this.layoutControlGroup2.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.layoutControlGroup2.AppearanceItemCaption.Options.UseFont = true;
     this.layoutControlGroup2.CustomizationFormText = "Thông tin thêm";
     this.layoutControlGroup2.ExpandButtonVisible = true;
     this.layoutControlGroup2.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
     this.layoutControlItem9});
     this.layoutControlGroup2.Location = new System.Drawing.Point(0, 262);
     this.layoutControlGroup2.Name = "layoutControlGroup2";
     this.layoutControlGroup2.Size = new System.Drawing.Size(817, 51);
     this.layoutControlGroup2.Text = "Thông tin thêm";
     //
     // layoutControlItem9
     //
     this.layoutControlItem9.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.layoutControlItem9.AppearanceItemCaption.Options.UseFont = true;
     this.layoutControlItem9.Control = this.ThongTinThem;
     this.layoutControlItem9.CustomizationFormText = "The Plot:";
     this.layoutControlItem9.Location = new System.Drawing.Point(0, 0);
     this.layoutControlItem9.Name = "layoutControlItem9";
     this.layoutControlItem9.Size = new System.Drawing.Size(811, 27);
     this.layoutControlItem9.Text = "The Plot:";
     this.layoutControlItem9.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize;
     this.layoutControlItem9.TextLocation = DevExpress.Utils.Locations.Top;
     this.layoutControlItem9.TextSize = new System.Drawing.Size(0, 0);
     this.layoutControlItem9.TextToControlDistance = 0;
     this.layoutControlItem9.TextVisible = false;
     //
     // layoutControlItem5
     //
     this.layoutControlItem5.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.layoutControlItem5.AppearanceItemCaption.Options.UseFont = true;
     this.layoutControlItem5.AppearanceItemCaption.Options.UseTextOptions = true;
     this.layoutControlItem5.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
     this.layoutControlItem5.Control = this.txt_HoTen;
     this.layoutControlItem5.CustomizationFormText = "Name :";
     this.layoutControlItem5.ImageAlignment = System.Drawing.ContentAlignment.MiddleRight;
     this.layoutControlItem5.Location = new System.Drawing.Point(316, 101);
     this.layoutControlItem5.Name = "layoutControlItem5";
     this.layoutControlItem5.Size = new System.Drawing.Size(501, 31);
     this.layoutControlItem5.Text = "Họ và tên :";
     this.layoutControlItem5.TextLocation = DevExpress.Utils.Locations.Left;
     this.layoutControlItem5.TextSize = new System.Drawing.Size(75, 20);
     //
     // layoutControlGroup3
     //
     this.layoutControlGroup3.CustomizationFormText = "Điều kiện lọc";
     this.layoutControlGroup3.ExpandButtonVisible = true;
     this.layoutControlGroup3.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
     this.layoutControlItem2});
     this.layoutControlGroup3.Location = new System.Drawing.Point(0, 0);
     this.layoutControlGroup3.Name = "layoutControlGroup3";
     this.layoutControlGroup3.Size = new System.Drawing.Size(817, 101);
     this.layoutControlGroup3.Text = "Điều kiện lọc";
     //
     // layoutControlItem2
     //
     this.layoutControlItem2.Control = this.userCtrl_DieuKienLoc1;
     this.layoutControlItem2.CustomizationFormText = "layoutControlItem2";
     this.layoutControlItem2.Location = new System.Drawing.Point(0, 0);
     this.layoutControlItem2.Name = "layoutControlItem2";
     this.layoutControlItem2.Size = new System.Drawing.Size(811, 77);
     this.layoutControlItem2.Text = "layoutControlItem2";
     this.layoutControlItem2.TextLocation = DevExpress.Utils.Locations.Left;
     this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0);
     this.layoutControlItem2.TextToControlDistance = 0;
     this.layoutControlItem2.TextVisible = false;
     //
     // xtraUserControlLayout1
     //
     this.xtraUserControlLayout1.Location = new System.Drawing.Point(14, 58);
     this.xtraUserControlLayout1.Name = "xtraUserControlLayout1";
     this.xtraUserControlLayout1.Size = new System.Drawing.Size(350, 93);
     this.xtraUserControlLayout1.TabIndex = 1;
     //
     // frmTrialXtraLayoutControl
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(827, 627);
     this.Controls.Add(this.xtraUserControlLayout1);
     this.Controls.Add(this.splitContainerControl1);
     this.Name = "frmTrialXtraLayoutControl";
     this.Text = "Demo Xtralayout";
     this.Load += new System.EventHandler(this.frmDemoXtralayout2_Load_1);
     ((System.ComponentModel.ISupportInitialize)(this.imageCollection1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).EndInit();
     this.splitContainerControl1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.checkEdit1.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.filename.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dsFile.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
     this.layoutControl1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.NgaySinh.Properties.VistaTimeProperties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.NgaySinh.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.NgheNghiep.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.TenNuoc.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.NoiSinh.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.txt_HoTen.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.ThongTinThem.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureEditHinhAnh.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.splitterItem1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.splitterItem2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem4)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup3)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
     this.ResumeLayout(false);
 }
コード例 #38
0
 /// <summary> 
 /// Required method for Designer support - do not modify 
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.layoutControl2 = new DevExpress.XtraLayout.LayoutControl();
     this.layoutControlGroup = new DevExpress.XtraLayout.LayoutControlGroup();
     this.textEdit1 = new DevExpress.XtraEditors.TextEdit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControl2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.textEdit1.Properties)).BeginInit();
     this.SuspendLayout();
     //
     // layoutControl2
     //
     this.layoutControl2.AllowDrop = true;
     this.layoutControl2.Dock = System.Windows.Forms.DockStyle.Fill;
     this.layoutControl2.Location = new System.Drawing.Point(0, 18);
     this.layoutControl2.Name = "layoutControl2";
     this.layoutControl2.OptionsFocus.AllowFocusGroups = false;
     this.layoutControl2.OptionsFocus.MoveFocusRightToLeft = true;
     this.layoutControl2.OptionsView.DrawItemBorders = true;
     this.layoutControl2.OptionsView.ShareLookAndFeelWithChildren = false;
     this.layoutControl2.Root = this.layoutControlGroup;
     this.layoutControl2.Size = new System.Drawing.Size(202, 196);
     this.layoutControl2.TabIndex = 5;
     this.layoutControl2.Text = "layoutControl2";
     this.layoutControl2.DragLeave += new System.EventHandler(this.layoutControl2_DragLeave);
     this.layoutControl2.DragOver += new System.Windows.Forms.DragEventHandler(this.layoutControl2_DragOver);
     this.layoutControl2.DragDrop += new System.Windows.Forms.DragEventHandler(this.layoutControl2_DragDrop);
     this.layoutControl2.MouseDown += new System.Windows.Forms.MouseEventHandler(this.layoutControl2_MouseDown);
     this.layoutControl2.DragEnter += new System.Windows.Forms.DragEventHandler(this.layoutControl2_DragEnter);
     this.layoutControl2.GiveFeedback += new System.Windows.Forms.GiveFeedbackEventHandler(this.layoutControl2_GiveFeedback);
     this.layoutControl2.MouseMove += new System.Windows.Forms.MouseEventHandler(this.layoutControl2_MouseMove);
     //
     // layoutControlGroup
     //
     this.layoutControlGroup.BackgroundImage = global::ProtocolVN.App.VideoLibrary.Properties.Resources.white;
     this.layoutControlGroup.BackgroundImageVisible = true;
     this.layoutControlGroup.ContentImageAlignment = System.Drawing.ContentAlignment.MiddleCenter;
     this.layoutControlGroup.CustomizationFormText = "layoutControlGroup2";
     this.layoutControlGroup.DefaultLayoutType = DevExpress.XtraLayout.Utils.LayoutType.Horizontal;
     this.layoutControlGroup.Location = new System.Drawing.Point(0, 0);
     this.layoutControlGroup.Name = "Root";
     this.layoutControlGroup.OptionsItemText.TextToControlDistance = 0;
     this.layoutControlGroup.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
     this.layoutControlGroup.Size = new System.Drawing.Size(202, 150);
     this.layoutControlGroup.Text = "Root";
     this.layoutControlGroup.TextVisible = false;
     //
     // textEdit1
     //
     this.textEdit1.Dock = System.Windows.Forms.DockStyle.Top;
     this.textEdit1.Location = new System.Drawing.Point(0, 0);
     this.textEdit1.Name = "textEdit1";
     this.textEdit1.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
     this.textEdit1.Properties.NullValuePrompt = "Gõ cột cần tìm vào đây";
     this.textEdit1.Properties.NullValuePromptShowForEmptyValue = true;
     this.textEdit1.Size = new System.Drawing.Size(202, 18);
     this.textEdit1.TabIndex = 6;
        // this.textEdit1.EditValueChanging += new DevExpress.XtraEditors.Controls.ChangingEventHandler(this.textEdit1_EditValueChanging);
     this.textEdit1.TextChanged += new System.EventHandler(this.textEdit1_TextChanged);
     //
     // ChoiceGridColumnsControl
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor = System.Drawing.Color.White;
     this.Controls.Add(this.layoutControl2);
     this.Controls.Add(this.textEdit1);
     this.Name = "ChoiceGridColumnsControl";
     this.Size = new System.Drawing.Size(202, 214);
     ((System.ComponentModel.ISupportInitialize)(this.layoutControl2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.textEdit1.Properties)).EndInit();
     this.ResumeLayout(false);
 }
コード例 #39
0
        public void AddResultItem(string text, UserControl details)
        {
            Form formMain = ClientEnvironment.MainForm;

            if(formMain.InvokeRequired)
            {
                formMain.BeginInvoke(new AddDetailedResultDelegate(AddResultItem), text, details);
                return;
            }

            if (text == null)
            {
                throw new ArgumentNullException("text");
            }

            if (details == null)
            {
                throw new ArgumentNullException("details");
            }

            layoutControlWarnings.BeginUpdate();

            LayoutControlItem item = new LayoutControlItem();
            item.Control = details;
            item.TextVisible = false;
            item.Size = details.Size;
            item.SizeConstraintsType = SizeConstraintsType.Custom;
            item.MaxSize = new Size(layoutControlWarnings.Width, details.Height);
            item.MinSize = new Size(layoutControlWarnings.Width - 32, details.Height);

            LayoutGroup group = new LayoutControlGroup();
            group.TextVisible = true;
            group.Text = text;
            group.AppearanceGroup.Options.UseTextOptions = true;
            group.AppearanceGroup.TextOptions.WordWrap = WordWrap.Wrap;
            group.ExpandButtonVisible = true;
            group.ExpandButtonLocation = GroupElementLocation.AfterText;
            group.Expanded = false;

            //			group.GroupBordersVisible = false;
            group.CaptionImageIndex = 0;

            layoutControlGroupRoot.AddItem(group);
            group.AddItem(item);

            layoutControlWarnings.EndUpdate();
        }
 private void LoadSelectedGRVDetailForFinalization(int ReceiptID)
 {
     //Display Correct Tab
     selectTab = grpTabFinalize;
     FocusOnSelectedTab();
     GRV.CalculateFinalCost();
     gridFinal.DataSource = GRV.GRVSoundDetail;
 }
コード例 #41
0
 public void SetLayoutControlGroupPadding(LayoutControlGroup layoutControlGroup, Padding layoutControlGroupPadding)
 {
     if (!list.ContainsKey(layoutControlGroup))
     {
         list.Add(layoutControlGroup, new LayoutCommonPara() { LayoutControlGroupPadding = layoutControlGroupPadding });
     }
     else
     {
         list[layoutControlGroup].LayoutControlGroupPadding = layoutControlGroupPadding;
     }
 }
        private void LoadSelectedGRVDetailForInvoiceEntry(int ReceiptID)
        {
            //Display Correct Tab
            selectTab = grpTabInvoiceValue;
            FocusOnSelectedTab();

            // Load The GRV First
            GRV = new CenterCostCalculator();
            GRV.LoadGRV(ReceiptID);
            // Display the GRV Detail for Data Entry(Price Per Pack)

            //Please Make-up ur mind solution
            if (BLL.Settings.IsDamageIncludedOnTotalFOB)
                gridInvoiceDetail.DataSource = GRV.GRVDetail;
            else
                gridInvoiceDetail.DataSource = GRV.GRVSoundDetail;
            gridDiscrenpancy.DataSource = GRV.GRVDiscrepancyDetail;

            BLL.Receipt receipt = new BLL.Receipt();
            receipt.LoadByPrimaryKey(ReceiptID);
        }
コード例 #43
0
        private void LoadSelectedGRVDetailForFinalization()
        {
            //Display Correct Tab
            if (!GRV.CalculateFinalCost())
            {
                    XtraMessageBox.Show("Some Items On the GRV are waiting to be Average,you cannot continue without average them","Averaging Error",MessageBoxButtons.OK,MessageBoxIcon.Warning);
                return;
            }
            selectTab = grpTabFinalize;
            FocusOnSelectedTab();

            gridFinal.DataSource = GRV.GRVSoundDetail;
        }
        private void LoadSelectedGRVDetailForUnitCostCalculation(int ReceiptID)
        {
            // if The Flow is correct Calculate the Cost Coeff and all information on the Previous Tab

            //Display Correct Tab
            selectTab = grpTabUnitCost;
            FocusOnSelectedTab();
            // Load the GRV First
            DataRow SelectGRV = gridGRVsView.GetFocusedDataRow();
            if (SelectGRV != null)
            {
                //GRV.LoadCostBuilUp(false, SelectGRV["RefNo"].ToString());
                gridJournal.DataSource = GRV.CostAnalysis(SelectGRV["RefNo"].ToString());
            }
            gridUnitCost.DataSource = GRV.GRVSoundDetail;
        }
コード例 #45
0
        private void LoadSelectedGRVDetailForInvoiceEntry(int ReceiptID)
        {
            //Display Correct Tab
            selectTab = grpTabInvoiceValue;
            FocusOnSelectedTab();

            // Load The GRV First
            GRV = new CostCalculator();
            GRV.LoadGRV(ReceiptID);
            // Display the GRV Detail for Data Entry(Price Per Pack)
            gridInvoiceDetail.DataSource = GRV.GRVDetail;

            //Load Summary
            txtSubTotal.EditValue = GRV.SubTotal;
            lblSubTotal.Text = GRV.SubTotal.ToString("C");
            txtInsurance.EditValue = GRV.Insurance;
            txtOtherExpense.EditValue = GRV.OtherExpense;
            txtGrandTotal.EditValue = GRV.GrandTotal;
            lblGrandTotal.Text = GRV.GrandTotal.ToString("C");
        }
        private void LoadSelectedGRVDetailForUnitCostCalculation(int ReceiptID)
        {
            // if The Flow is correct Calculate the Cost Coeff and all information on the Previous Tab

            gridCostBuild.DataSource = GRV.GetCostBuildUp();

            //Display Correct Tab
            selectTab = grpTabUnitCost;
            FocusOnSelectedTab();

            // Load the GRV First
            GRV = new CostCalculator();
            GRV.LoadGRV(ReceiptID);
            GRV.SuspendFromIssuing();
            gridUnitCost.DataSource = GRV.GRVDetail;
        }
コード例 #47
0
 private void LoadSelectedGRVDetailForMovingAverage(int ReceiptID)
 {
     //Display Correct Tab
     selectTab = grpTabMovingAverage;
     FocusOnSelectedTab();
     GRV.LoadGRVPreviousStock();
     gridMovingAverage.DataSource = GRV.GRVSoundDetail;
     gridPreviousBalance.DataSource = BLL.Receipt.GetPreviousStockforCostAnalysisPrintout(ReceiptID);
 }
        private void LoadSelectedGRVDetailForUnitCostCalculation(int ReceiptID)
        {
            DataRow dr = GRV.IsItemBeingPricedElsewhere();
            if (dr != null)
            {
                    MessageBox.Show(string.Format(
            @"The Item {0} - with Unit: {1} - and Manufacturer: {2} is {3}.
            Please finalize the receive process For {4} under the Activity {5} before continuing"
                                        , dr["FullItemName"], dr["ItemUnitName"], dr["ManufacturerName"], dr["Description"], dr["GRVNo"], dr["ActivityFullName"]
                                        )
                                   , string.Format(@"Pending Receipt()...{0}", dr["ReceiptID"].ToString()), MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }
            // if The Flow is correct Calculate the Cost Coeff and all information on the Previous Tab
            if(selectTab == grpTabCostBuildUp)
                GRV.SaveCostCoefficient(CurrentContext.UserId);

            //Display Correct Tab
            selectTab = grpTabUnitCost;
            FocusOnSelectedTab();
             // Load the GRV First
            GRV = new CenterCostCalculator();
            GRV.LoadGRV(ReceiptID);
            DataRow SelectGRV = gridGRVsView.GetFocusedDataRow();
            if (SelectGRV != null)
            {
                GRV.LoadCostBuilUp(false, SelectGRV["RefNo"].ToString());
                GRV.SuspendFromIssuing();
                gridJournal.DataSource = GRV.CostAnalysis(SelectGRV["RefNo"].ToString());
            }
            gridUnitCost.DataSource = GRV.GRVSoundDetail;
        }
コード例 #49
0
        private void LoadSelectedGRVDetailForUnitCostCalculation(int ReceiptID)
        {
            //This Might Be taking time to load
            DataRow dr = GRV.IsItemBeingPricedElsewhere();
            if (dr != null)
            {
                MessageBox.Show(string.Format(
            @"The Item {0} - with Unit: {1} - and Manufacturer: {2} is {3}.
            Please finalize the receive process For {4} under the Activity {5} before continuing"
                                    , dr["FullItemName"], dr["ItemUnitName"], dr["ManufacturerName"], dr["Description"], dr["GRVNo"], dr["ActivityFullName"]
                                    )
                               , string.Format(@"Pending Receipt()...{0}", dr["ReceiptID"].ToString()), MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }
            selectTab = grpTabUnitCost;
            FocusOnSelectedTab();

            GRV.CalculateCostCoefficient();
            gridCostBuild.DataSource = GRV.GetCostBuildUp();

            //Display Correct Tab

            GRV.SuspendFromIssuing();
            gridUnitCost.DataSource = GRV.GRVDetail;
        }
コード例 #50
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(AdminTool));
     this.tlControls = new CommonTreeList();
     this.tlcType = new CommonTreeListColumn();
     this.tlcText = new CommonTreeListColumn();
     this.lueForms = new DevExpress.XtraEditors.LookUpEdit();
     this.bsForms = new System.Windows.Forms.BindingSource(this.components);
     this.lcAdmin = new DevExpress.XtraLayout.LayoutControl();
     this.pgFilter = new FilterPropertyGrid();
     this.lueRoles = new DevExpress.XtraEditors.LookUpEdit();
     this.lcgAdmin = new DevExpress.XtraLayout.LayoutControlGroup();
     this.lciForm = new DevExpress.XtraLayout.LayoutControlItem();
     this.lciTree = new DevExpress.XtraLayout.LayoutControlItem();
     this.lciRole = new DevExpress.XtraLayout.LayoutControlItem();
     this.lciProperty = new DevExpress.XtraLayout.LayoutControlItem();
     this.splitterItem1 = new DevExpress.XtraLayout.SplitterItem();
     this.rcAdmin = new DevExpress.XtraBars.Ribbon.RibbonControl();
     this.bbiDefault = new DevExpress.XtraBars.BarButtonItem();
     this.bbiRestore = new DevExpress.XtraBars.BarButtonItem();
     this.bbiSave = new DevExpress.XtraBars.BarButtonItem();
     this.rpMain = new DevExpress.XtraBars.Ribbon.RibbonPage();
     this.rpgSettings = new DevExpress.XtraBars.Ribbon.RibbonPageGroup();
     this.toolTip = new DevExpress.Utils.ToolTipController(this.components);
     this.pmControls = new DevExpress.XtraBars.PopupMenu(this.components);
     this.bbiExpand = new DevExpress.XtraBars.BarButtonItem();
     ((System.ComponentModel.ISupportInitialize)(this.tlControls)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.lueForms.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.bsForms)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.lcAdmin)).BeginInit();
     this.lcAdmin.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.lueRoles.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.lcgAdmin)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.lciForm)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.lciTree)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.lciRole)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.lciProperty)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.splitterItem1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.rcAdmin)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pmControls)).BeginInit();
     this.SuspendLayout();
     //
     // tlControls
     //
     this.tlControls.Columns.AddRange(new DevExpress.XtraTreeList.Columns.TreeListColumn[] {
     this.tlcType,
     this.tlcText});
     this.tlControls.KeyFieldName = "Name";
     this.tlControls.Location = new System.Drawing.Point(7, 85);
     this.tlControls.Name = "tlControls";
     this.tlControls.OptionsBehavior.Editable = false;
     this.tlControls.OptionsView.ShowAutoFilterRow = true;
     this.tlControls.ParentFieldName = "Parent";
     this.tlControls.Size = new System.Drawing.Size(377, 397);
     this.tlControls.TabIndex = 2;
     this.tlControls.FocusedNodeChanged += new DevExpress.XtraTreeList.FocusedNodeChangedEventHandler(this.ControlsFocusedNodeChanged);
     this.tlControls.PopupMenuShowing += new DevExpress.XtraTreeList.PopupMenuShowingEventHandler(this.ControlsPopupMenuShowing);
     //
     // tlcType
     //
     this.tlcType.Caption = "Тип элемента";
     this.tlcType.FieldName = "Type";
     this.tlcType.Name = "tlcType";
     this.tlcType.OptionsColumn.AllowEdit = false;
     this.tlcType.OptionsFilter.AutoFilterCondition = DevExpress.XtraTreeList.Columns.AutoFilterCondition.Contains;
     this.tlcType.Visible = true;
     this.tlcType.VisibleIndex = 0;
     this.tlcType.Width = 190;
     //
     // tlcText
     //
     this.tlcText.Caption = "Текст элемента";
     this.tlcText.FieldName = "Caption";
     this.tlcText.Name = "tlcText";
     this.tlcText.OptionsColumn.AllowEdit = false;
     this.tlcText.OptionsFilter.AutoFilterCondition = DevExpress.XtraTreeList.Columns.AutoFilterCondition.Contains;
     this.tlcText.Visible = true;
     this.tlcText.VisibleIndex = 1;
     this.tlcText.Width = 113;
     //
     // lueForms
     //
     this.lueForms.Location = new System.Drawing.Point(94, 17);
     this.lueForms.MaximumSize = new System.Drawing.Size(0, 20);
     this.lueForms.Name = "lueForms";
     this.lueForms.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
     new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
     this.lueForms.Properties.Columns.AddRange(new DevExpress.XtraEditors.Controls.LookUpColumnInfo[] {
     new DevExpress.XtraEditors.Controls.LookUpColumnInfo("Value", "Заголовок формы", 20, DevExpress.Utils.FormatType.None, "", true, DevExpress.Utils.HorzAlignment.Default, DevExpress.Data.ColumnSortOrder.Ascending)});
     this.lueForms.Properties.DataSource = this.bsForms;
     this.lueForms.Properties.DisplayMember = "Value";
     this.lueForms.Properties.DropDownRows = 10;
     this.lueForms.Properties.NullText = "";
     this.lueForms.Properties.ValueMember = "Key";
     this.lueForms.Size = new System.Drawing.Size(290, 20);
     this.lueForms.StyleController = this.lcAdmin;
     this.lueForms.TabIndex = 4;
     this.lueForms.EditValueChanged += new System.EventHandler(this.FormsEditValueChanged);
     //
     // bsForms
     //
     this.bsForms.DataSource = typeof(System.Collections.Generic.KeyValuePair<string, string>);
     //
     // lcAdmin
     //
     this.lcAdmin.Controls.Add(this.pgFilter);
     this.lcAdmin.Controls.Add(this.tlControls);
     this.lcAdmin.Controls.Add(this.lueForms);
     this.lcAdmin.Controls.Add(this.lueRoles);
     this.lcAdmin.Dock = System.Windows.Forms.DockStyle.Fill;
     this.lcAdmin.Location = new System.Drawing.Point(0, 96);
     this.lcAdmin.Name = "lcAdmin";
     this.lcAdmin.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(655, 271, 250, 350);
     this.lcAdmin.Root = this.lcgAdmin;
     this.lcAdmin.Size = new System.Drawing.Size(391, 692);
     this.lcAdmin.TabIndex = 1;
     this.lcAdmin.Text = "lcAdmin";
     //
     // pgFilter
     //
     this.pgFilter.Location = new System.Drawing.Point(7, 491);
     this.pgFilter.Name = "pgFilter";
     this.pgFilter.PropertySort = System.Windows.Forms.PropertySort.Alphabetical;
     this.pgFilter.Size = new System.Drawing.Size(377, 194);
     this.pgFilter.TabIndex = 0;
     this.pgFilter.ToolbarVisible = false;
     this.pgFilter.PropertyValueChanged += new System.Windows.Forms.PropertyValueChangedEventHandler(this.FilterPropertyValueChanged);
     //
     // lueRoles
     //
     this.lueRoles.Location = new System.Drawing.Point(94, 51);
     this.lueRoles.MaximumSize = new System.Drawing.Size(0, 20);
     this.lueRoles.Name = "lueRoles";
     this.lueRoles.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
     new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
     this.lueRoles.Properties.Columns.AddRange(new DevExpress.XtraEditors.Controls.LookUpColumnInfo[] {
     new DevExpress.XtraEditors.Controls.LookUpColumnInfo("Name", "Name", 20, DevExpress.Utils.FormatType.None, "", true, DevExpress.Utils.HorzAlignment.Default, DevExpress.Data.ColumnSortOrder.Ascending)});
     this.lueRoles.Properties.DisplayMember = "Name";
     this.lueRoles.Properties.DropDownRows = 10;
     this.lueRoles.Properties.ImmediatePopup = true;
     this.lueRoles.Properties.NullText = "";
     this.lueRoles.Properties.NullValuePrompt = "Выберите роль для настройки";
     this.lueRoles.Properties.PopupSizeable = false;
     this.lueRoles.Properties.ShowHeader = false;
     this.lueRoles.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard;
     this.lueRoles.Properties.ValueMember = "Id";
     this.lueRoles.Size = new System.Drawing.Size(290, 20);
     this.lueRoles.StyleController = this.lcAdmin;
     this.lueRoles.TabIndex = 0;
     this.lueRoles.EditValueChanged += new System.EventHandler(this.RolesEditValueChanged);
     //
     // lcgAdmin
     //
     this.lcgAdmin.CustomizationFormText = "Root";
     this.lcgAdmin.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
     this.lcgAdmin.GroupBordersVisible = false;
     this.lcgAdmin.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
     this.lciForm,
     this.lciTree,
     this.lciRole,
     this.lciProperty,
     this.splitterItem1});
     this.lcgAdmin.Location = new System.Drawing.Point(0, 0);
     this.lcgAdmin.Name = "Root";
     this.lcgAdmin.Padding = new DevExpress.XtraLayout.Utils.Padding(5, 5, 5, 5);
     this.lcgAdmin.Size = new System.Drawing.Size(391, 692);
     this.lcgAdmin.Text = "Root";
     this.lcgAdmin.TextVisible = false;
     //
     // lciForm
     //
     this.lciForm.Control = this.lueForms;
     this.lciForm.CustomizationFormText = "Активная форма";
     this.lciForm.Location = new System.Drawing.Point(0, 0);
     this.lciForm.Name = "lciForm";
     this.lciForm.Size = new System.Drawing.Size(381, 34);
     this.lciForm.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 10, 0);
     this.lciForm.Text = "Активная форма";
     this.lciForm.TextSize = new System.Drawing.Size(84, 13);
     //
     // lciTree
     //
     this.lciTree.Control = this.tlControls;
     this.lciTree.CustomizationFormText = "lciTree";
     this.lciTree.Location = new System.Drawing.Point(0, 68);
     this.lciTree.Name = "lciTree";
     this.lciTree.Size = new System.Drawing.Size(381, 411);
     this.lciTree.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 10, 0);
     this.lciTree.Text = "lciTree";
     this.lciTree.TextSize = new System.Drawing.Size(0, 0);
     this.lciTree.TextToControlDistance = 0;
     this.lciTree.TextVisible = false;
     //
     // lciRole
     //
     this.lciRole.Control = this.lueRoles;
     this.lciRole.CustomizationFormText = "Активная роль";
     this.lciRole.Location = new System.Drawing.Point(0, 34);
     this.lciRole.Name = "lciRole";
     this.lciRole.Size = new System.Drawing.Size(381, 34);
     this.lciRole.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 10, 0);
     this.lciRole.Text = "Активная роль";
     this.lciRole.TextSize = new System.Drawing.Size(84, 13);
     //
     // lciProperty
     //
     this.lciProperty.Control = this.pgFilter;
     this.lciProperty.CustomizationFormText = "lciProperty";
     this.lciProperty.Location = new System.Drawing.Point(0, 484);
     this.lciProperty.Name = "lciProperty";
     this.lciProperty.Size = new System.Drawing.Size(381, 198);
     this.lciProperty.Text = "lciProperty";
     this.lciProperty.TextSize = new System.Drawing.Size(0, 0);
     this.lciProperty.TextToControlDistance = 0;
     this.lciProperty.TextVisible = false;
     //
     // splitterItem1
     //
     this.splitterItem1.AllowHotTrack = true;
     this.splitterItem1.CustomizationFormText = "splitterItem1";
     this.splitterItem1.Location = new System.Drawing.Point(0, 479);
     this.splitterItem1.Name = "splitterItem1";
     this.splitterItem1.Size = new System.Drawing.Size(381, 5);
     //
     // rcAdmin
     //
     this.rcAdmin.ExpandCollapseItem.Id = 0;
     this.rcAdmin.Items.AddRange(new DevExpress.XtraBars.BarItem[] {
     this.rcAdmin.ExpandCollapseItem,
     this.bbiDefault,
     this.bbiRestore,
     this.bbiSave,
     this.bbiExpand});
     this.rcAdmin.Location = new System.Drawing.Point(0, 0);
     this.rcAdmin.MaxItemId = 7;
     this.rcAdmin.Name = "rcAdmin";
     this.rcAdmin.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] {
     this.rpMain});
     this.rcAdmin.ShowApplicationButton = DevExpress.Utils.DefaultBoolean.False;
     this.rcAdmin.ShowCategoryInCaption = false;
     this.rcAdmin.ShowExpandCollapseButton = DevExpress.Utils.DefaultBoolean.False;
     this.rcAdmin.ShowFullScreenButton = DevExpress.Utils.DefaultBoolean.False;
     this.rcAdmin.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.Hide;
     this.rcAdmin.ShowToolbarCustomizeItem = false;
     this.rcAdmin.Size = new System.Drawing.Size(391, 96);
     this.rcAdmin.Toolbar.ShowCustomizeItem = false;
     this.rcAdmin.ToolbarLocation = DevExpress.XtraBars.Ribbon.RibbonQuickAccessToolbarLocation.Hidden;
     //
     // bbiDefault
     //
     this.bbiDefault.Caption = "По умолчанию";
     this.bbiDefault.CategoryGuid = new System.Guid("6ffddb2b-9015-4d97-a4c1-91613e0ef537");
     this.bbiDefault.Enabled = false;
     this.bbiDefault.Hint = "Вернуть настройки элементов интерфеса для выбранной формы к изначальным";
     this.bbiDefault.Id = 3;
     this.bbiDefault.LargeGlyph = ((System.Drawing.Image)(resources.GetObject("bbiDefault.LargeGlyph")));
     this.bbiDefault.Name = "bbiDefault";
     this.bbiDefault.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.DefaultItemClick);
     //
     // bbiRestore
     //
     this.bbiRestore.Caption = "Последние сохранённые";
     this.bbiRestore.CategoryGuid = new System.Guid("6ffddb2b-9015-4d97-a4c1-91613e0ef537");
     this.bbiRestore.Enabled = false;
     this.bbiRestore.Hint = "Вернуть настройки элементов интерфеса для выбранной формы к последним сохранённым" +
     "";
     this.bbiRestore.Id = 4;
     this.bbiRestore.LargeGlyph = ((System.Drawing.Image)(resources.GetObject("bbiRestore.LargeGlyph")));
     this.bbiRestore.Name = "bbiRestore";
     this.bbiRestore.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.RestoreItemClick);
     //
     // bbiSave
     //
     this.bbiSave.Caption = "Сохранить";
     this.bbiSave.CategoryGuid = new System.Guid("6ffddb2b-9015-4d97-a4c1-91613e0ef537");
     this.bbiSave.Enabled = false;
     this.bbiSave.Glyph = ((System.Drawing.Image)(resources.GetObject("bbiSave.Glyph")));
     this.bbiSave.Hint = "Сохранить текущие настройки для выбранной формы и роли ";
     this.bbiSave.Id = 5;
     this.bbiSave.LargeGlyph = ((System.Drawing.Image)(resources.GetObject("bbiSave.LargeGlyph")));
     this.bbiSave.Name = "bbiSave";
     this.bbiSave.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.SaveItemClick);
     //
     // rpMain
     //
     this.rpMain.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] {
     this.rpgSettings});
     this.rpMain.Name = "rpMain";
     this.rpMain.Text = "Администрирование";
     //
     // rpgSettings
     //
     this.rpgSettings.Glyph = ((System.Drawing.Image)(resources.GetObject("rpgSettings.Glyph")));
     this.rpgSettings.ItemLinks.Add(this.bbiDefault);
     this.rpgSettings.ItemLinks.Add(this.bbiRestore);
     this.rpgSettings.ItemLinks.Add(this.bbiSave);
     this.rpgSettings.Name = "rpgSettings";
     this.rpgSettings.Text = "Настройки";
     //
     // toolTip
     //
     this.toolTip.Rounded = true;
     this.toolTip.ShowBeak = true;
     this.toolTip.ToolTipLocation = DevExpress.Utils.ToolTipLocation.LeftCenter;
     //
     // pmControls
     //
     this.pmControls.ItemLinks.Add(this.bbiExpand);
     this.pmControls.Name = "pmControls";
     this.pmControls.Ribbon = this.rcAdmin;
     //
     // bbiExpand
     //
     this.bbiExpand.Caption = "Развернуть всё";
     this.bbiExpand.Glyph = ((System.Drawing.Image)(resources.GetObject("bbiExpand.Glyph")));
     this.bbiExpand.Id = 6;
     this.bbiExpand.Name = "bbiExpand";
     this.bbiExpand.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.ExpandButtonClick);
     //
     // AdminTool
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(391, 788);
     this.Controls.Add(this.lcAdmin);
     this.Controls.Add(this.rcAdmin);
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name = "AdminTool";
     this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
     this.Text = "Настройка интерфейса";
     this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.AdminToolFormClosed);
     this.Load += new System.EventHandler(this.AdminToolLoad);
     this.Shown += new System.EventHandler(this.AdminToolShown);
     ((System.ComponentModel.ISupportInitialize)(this.tlControls)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.lueForms.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.bsForms)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.lcAdmin)).EndInit();
     this.lcAdmin.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.lueRoles.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.lcgAdmin)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.lciForm)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.lciTree)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.lciRole)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.lciProperty)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.splitterItem1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.rcAdmin)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pmControls)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #51
0
ファイル: LanguageEngine.cs プロジェクト: penguinsoft/iPOS
 public static void ChangeCaptionLayoutControlGroup(string parent_name, string language, LayoutControlGroup layout_control_group)
 {
     layout_control_group.Text = CaptionEngine.GetControlCaption(parent_name, layout_control_group.Name, BaseConstant.CONTROL_TEXT, language);
 }