Beispiel #1
0
        void Add_ButtonBase(DevExpress.XtraNavBar.NavBarGroup navBarGroup, Fwk.UI.Controls.Menu.ButtonBase pButtonBase, bool isNew)
        {
            DevExpress.XtraNavBar.NavBarItem navBarItem = new NavBarItem();
            BarGroup wBarGroup = (BarGroup)navBarGroup.Tag;

            if (isNew)
            {
                wBarGroup.Buttons.Add(pButtonBase);
            }



            if (pButtonBase.Image != null)
            {
                navBarItem.SmallImage = Fwk.HelperFunctions.TypeFunctions.ConvertByteArrayToImage(pButtonBase.Image);
            }

            if (pButtonBase.LargeImage != null)
            {
                navBarItem.LargeImage = Fwk.HelperFunctions.TypeFunctions.ConvertByteArrayToImage(pButtonBase.LargeImage);
            }

            navBarItem.Caption      = pButtonBase.Caption;
            navBarItem.Tag          = pButtonBase;
            navBarItem.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(wNavBarItem_LinkClicked);
            navBarGroup.ItemLinks.Add(navBarItem);
        }
Beispiel #2
0
 public bool AddGroup(string groupName, ref string reStr)
 {
     try
     {
         bool isContain = false;
         DevExpress.XtraNavBar.NavBarGroup currGroup = null;
         isContain = IsContainGroup(this.nbc_MainMenu, groupName, ref currGroup);
         if (isContain == true)
         {
             reStr = "已存在此名称的group!";
             return(false);
         }
         DevExpress.XtraNavBar.NavBarGroup barGroup = new DevExpress.XtraNavBar.NavBarGroup();
         barGroup.Name    = groupName;
         barGroup.Caption = groupName;
         this.nbc_MainMenu.Groups.Add(barGroup);
         reStr = "添加成功!";
         return(true);
     }
     catch (System.Exception ex)
     {
         reStr = ex.Message;
         return(false);
     }
 }
Beispiel #3
0
 private void contextMenuStrip1_Opening(object sender, CancelEventArgs e)
 {
     toolStripMenuItem1.Enabled   = false;
     toolStripMenuItem1_1.Enabled = false;
     toolStripMenuItem1_2.Enabled = false;
     toolStripMenuItem1_3.Enabled = false;
     toolStripMenuItem2.Enabled   = false;
     toolStripMenuItem4.Enabled   = false;
     toolStripMenuItem5.Enabled   = false;
     m_MouseSelectControlObject   = m_MouseMovingControlObject;
     if (m_MouseMovingControlObject == null)
     {
         toolStripMenuItem1.Enabled   = true;
         toolStripMenuItem1_1.Enabled = true;
     }
     else if (m_MouseMovingControlObject.ObjectType.ToString().ToUpper() == "GROUP")
     {
         DevExpress.XtraNavBar.NavBarGroup group = m_MouseMovingControlObject.HintObject as DevExpress.XtraNavBar.NavBarGroup;
         if (group.Caption == "数据源")
         {
             toolStripMenuItem2.Enabled = true;
         }
         else if (group.Caption == "任务组")
         {
             toolStripMenuItem5.Enabled = true;
         }
         else
         {
             toolStripMenuItem4.Enabled   = true;
             toolStripMenuItem1.Enabled   = true;
             toolStripMenuItem1_2.Enabled = true;
             toolStripMenuItem1_3.Enabled = true;
         }
     }
 }
Beispiel #4
0
 private void InitializeComponent()
 {
     this.navBarControl1 = new DevExpress.XtraNavBar.NavBarControl();
     this.navBarGroup1   = new DevExpress.XtraNavBar.NavBarGroup();
     this.navBarPanel    = new PanelControl();
     ((System.ComponentModel.ISupportInitialize)(this.navBarControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
     this.SuspendLayout();
     //
     // navBarControl1
     //
     this.navBarControl1.ContentButtonHint = null;
     this.navBarControl1.Name = "navBarControl1";
     this.navBarControl1.OptionsNavPane.ExpandedWidth = 140;
     this.navBarControl1.Text = "navBarControl1";
     this.navBarControl1.Groups.Add(navBarGroup1);
     this.navBarControl1.AllowSelectedLink = true;
     this.navBarControl1.Dock = System.Windows.Forms.DockStyle.Fill;
     ((MyWizardViewInfo)ViewInfo).UpdateNavBarBounds();
     navBarPanel.Controls.Add(navBarControl1);
     //
     // navBarGroup1
     //
     this.navBarGroup1.Caption  = "Steps";
     this.navBarGroup1.Expanded = true;
     this.navBarGroup1.Name     = "navBarGroup1";
     this.Controls.Add(navBarPanel);
     ((System.ComponentModel.ISupportInitialize)(this.navBarControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
     this.ResumeLayout(false);
 }
Beispiel #5
0
        void Cretate_ButtonBases(DevExpress.XtraNavBar.NavBarGroup navBarGroup)
        {
            BarGroup wBarGroup = (BarGroup)navBarGroup.Tag;

            foreach (Fwk.UI.Controls.Menu.ButtonBase wButtonBase in wBarGroup.Buttons)
            {
                Add_ButtonBase(navBarGroup, wButtonBase, false);
            }
        }
Beispiel #6
0
        private void toolStripMenuItem4_Click(object sender, EventArgs e)
        {
            DevExpress.XtraNavBar.NavBarGroup group = m_MouseSelectControlObject.HintObject as DevExpress.XtraNavBar.NavBarGroup;
            string         id = group.Tag.ToString();
            FormAddSqlData f  = new FormAddSqlData(id);

            if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                LoadNav();
            }
        }
Beispiel #7
0
        void Update_UC_TreeNavBar(DevExpress.XtraNavBar.NavBarGroup navBarGroup, TreeNodeButton pMenuBarTreeNode)
        {
            BarGroup wBarGroup = (BarGroup)navBarGroup.Tag;

            wBarGroup.MenuBarTree.Add(pMenuBarTreeNode);
            UC_TreeNavBar treeList = (UC_TreeNavBar)((System.Windows.Forms.Control)(navBarGroup.ControlContainer)).Controls[0];

            //treeList = navBarGroup

            treeList.Populate(wBarGroup.MenuBarTree, this.IsOnDesignMode);
        }
Beispiel #8
0
 private void toolStripMenuItem1_3_Click(object sender, EventArgs e)
 {
     if (XtraMessageBox.Show("你确定要删除该分组", "信息提示", MessageBoxButtons.YesNo) == System.Windows.Forms.DialogResult.Yes)
     {
         DevExpress.XtraNavBar.NavBarGroup group = m_MouseSelectControlObject.HintObject as DevExpress.XtraNavBar.NavBarGroup;
         string id = group.Tag.ToString();
         if (Access.UnitType.UnitTypeDel(id))
         {
             LoadNav();
         }
     }
 }
Beispiel #9
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="pBarGroup"></param>
        /// <param name="isNew">Solo indica si pBarGroup es nuevo para _MenuBar </param>
        /// <returns></returns>
        public DevExpress.XtraNavBar.NavBarGroup Add_BarGroup(BarGroup pBarGroup, bool isNew)
        {
            DevExpress.XtraNavBar.NavBarGroup navBarGroup = new DevExpress.XtraNavBar.NavBarGroup();
            if (isNew)
            {
                _MenuBar.Add(pBarGroup);
            }

            if (isNew)
            {
                pBarGroup.Index = _MenuBar.Count - 1;
            }
            this.Groups.Add(navBarGroup);

            navBarGroup.Tag        = pBarGroup;
            navBarGroup.Caption    = pBarGroup.Caption;
            navBarGroup.GroupStyle = pBarGroup.GroupStyle;


            if (pBarGroup.Image == null)
            {
                navBarGroup.SmallImage = null;
            }
            else
            {
                navBarGroup.SmallImage = new Bitmap(new MemoryStream(pBarGroup.Image));
            }


            this.ActiveGroup = navBarGroup;

            if (pBarGroup.ContainTree)
            {
                if (pBarGroup.MenuBarTree != null)
                {
                    Cretate_UC_TreeNavBar(navBarGroup);
                }
            }
            else
            {
                if (pBarGroup.Buttons != null)
                {
                    Cretate_ButtonBases(navBarGroup);
                }
            }

            return(navBarGroup);
        }
Beispiel #10
0
 private bool IsContainGroup(NavBarControl barctrl, string groupName, ref DevExpress.XtraNavBar.NavBarGroup currGroup)
 {
     foreach (DevExpress.XtraNavBar.NavBarGroup group in this.nbc_MainMenu.Groups)
     {
         if (group == null)
         {
             continue;
         }
         if (group.Name == groupName)
         {
             currGroup = group;
             return(true);
         }
     }
     return(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.navBarControl1 = new DevExpress.XtraNavBar.NavBarControl();
     this.navBarGroup1   = new DevExpress.XtraNavBar.NavBarGroup();
     ((System.ComponentModel.ISupportInitialize)(this.navBarControl1)).BeginInit();
     this.SuspendLayout();
     //
     // navBarControl1
     //
     this.navBarControl1.ActiveGroup       = this.navBarGroup1;
     this.navBarControl1.ContentButtonHint = null;
     this.navBarControl1.Groups.AddRange(new DevExpress.XtraNavBar.NavBarGroup[] {
         this.navBarGroup1
     });
     this.navBarControl1.Location = new System.Drawing.Point(16, 16);
     this.navBarControl1.Name     = "navBarControl1";
     this.navBarControl1.OptionsNavPane.ExpandedWidth = 224;
     this.navBarControl1.PaintStyleKind = DevExpress.XtraNavBar.NavBarViewKind.NavigationPane;
     this.navBarControl1.Size           = new System.Drawing.Size(224, 296);
     this.navBarControl1.TabIndex       = 0;
     this.navBarControl1.Text           = "navBarControl1";
     this.navBarControl1.View           = new DevExpress.XtraNavBar.ViewInfo.SkinNavigationPaneViewInfoRegistrator();
     //
     // navBarGroup1
     //
     this.navBarGroup1.Caption  = "navBarGroup1";
     this.navBarGroup1.Expanded = true;
     this.navBarGroup1.Name     = "navBarGroup1";
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(460, 386);
     this.Controls.Add(this.navBarControl1);
     this.Name  = "Form1";
     this.Text  = "Form1";
     this.Load += new System.EventHandler(this.Form1_Load);
     ((System.ComponentModel.ISupportInitialize)(this.navBarControl1)).EndInit();
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.navBarControl1 = new DevExpress.XtraNavBar.NavBarControl();
     this.navBarGroup1   = new DevExpress.XtraNavBar.NavBarGroup();
     ((System.ComponentModel.ISupportInitialize)(this.navBarControl1)).BeginInit();
     this.SuspendLayout();
     //
     // navBarControl1
     //
     this.navBarControl1.ActiveGroup = this.navBarGroup1;
     this.navBarControl1.Dock        = System.Windows.Forms.DockStyle.Left;
     this.navBarControl1.Groups.AddRange(new DevExpress.XtraNavBar.NavBarGroup[] {
         this.navBarGroup1
     });
     this.navBarControl1.Location = new System.Drawing.Point(0, 0);
     this.navBarControl1.Name     = "navBarControl1";
     this.navBarControl1.OptionsNavPane.ExpandedWidth = 176;
     this.navBarControl1.Size     = new System.Drawing.Size(147, 333);
     this.navBarControl1.TabIndex = 0;
     this.navBarControl1.Text     = "navBarControl1";
     this.navBarControl1.View     = new DevExpress.XtraNavBar.ViewInfo.AdvExplorerBarViewInfoRegistrator();
     //
     // navBarGroup1
     //
     this.navBarGroup1.Caption  = "navBarGroup1";
     this.navBarGroup1.Expanded = true;
     this.navBarGroup1.Name     = "navBarGroup1";
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(344, 333);
     this.Controls.Add(this.navBarControl1);
     this.Name  = "Form1";
     this.Text  = "Form1";
     this.Load += new System.EventHandler(this.Form1_Load);
     ((System.ComponentModel.ISupportInitialize)(this.navBarControl1)).EndInit();
     this.ResumeLayout(false);
 }
Beispiel #13
0
        void Cretate_UC_TreeNavBar(DevExpress.XtraNavBar.NavBarGroup navBarGroup)
        {
            BarGroup wBarGroup = (BarGroup)navBarGroup.Tag;

            NavBarGroupControlContainer navBarGroupControlContainer = new NavBarGroupControlContainer();

            navBarGroupControlContainer.SuspendLayout();
            this.Controls.Add(navBarGroupControlContainer);

            UC_TreeNavBar treeList = new UC_TreeNavBar();


            this.SuspendLayout();

            navBarGroup.GroupStyle = NavBarGroupStyle.ControlContainer;
            navBarGroupControlContainer.Controls.Add(treeList);
            navBarGroupControlContainer.Name = "navBarGroupControlContainer" + treeCount;
            navBarGroupControlContainer.Size = new System.Drawing.Size(176, 243);
            //navBarGroupControlContainer.TabIndex = treeCount;
            navBarGroup.ControlContainer = navBarGroupControlContainer;

            treeList.Populate(wBarGroup.MenuBarTree, this.IsOnDesignMode);

            treeList.Dock             = System.Windows.Forms.DockStyle.Fill;
            treeList.Location         = new System.Drawing.Point(0, 0);
            treeList.Name             = string.Concat("treeList", treeCount);
            treeList.TabIndex         = treeCount;
            treeList.Tag              = wBarGroup.MenuBarTree;
            treeList.OnNodeClick     += new OnNodeClickHandler(treeList_OnNodeClick);
            treeList.OnTreeViewClick += new EventHandler(treeList_OnTreeViewClick);
            SetTreeDesignMode(treeList);

            treeCount++;


            navBarGroupControlContainer.ResumeLayout(false);

            this.ResumeLayout(false);
        }
Beispiel #14
0
        public bool AddGroupItemArea(string groupName, string itemName, EventHandler callBack, ref string reStr)
        {
            try
            {
                bool isContain = false;
                DevExpress.XtraNavBar.NavBarGroup currGroup = null;
                isContain = IsContainGroup(nbc_MainMenu, groupName, ref currGroup);
                if (isContain == false)
                {
                    reStr = groupName + "不存在!";
                    return(false);
                }

                DevExpress.XtraNavBar.NavBarItem baritem = new DevExpress.XtraNavBar.NavBarItem();
                baritem.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(callBack);
                DevExpress.XtraNavBar.NavBarItemLink itemLink = new DevExpress.XtraNavBar.NavBarItemLink(baritem);
                itemLink.Item.Caption = itemName;
                itemLink.Item.Name    = itemName;
                foreach (DevExpress.XtraNavBar.NavBarItemLink link in currGroup.ItemLinks)
                {
                    if (link.Item.Name == itemName)
                    {
                        reStr = "已存在此item!";
                        return(false);
                    }
                }
                currGroup.ItemLinks.Add(itemLink);
                this.nbc_MainMenu.Groups.Add(currGroup);
                reStr = "添加成功!";
                return(true);
            }
            catch (System.Exception ex)
            {
                reStr = ex.Message;
                return(false);
            }
        }
Beispiel #15
0
        private void initData(string ConfigXMLStr)
        {
            WinLaw.checkLaw(this);

            this.addButton.Image = FWImageDic.ADD_IMAGE20;
            this.editButton.Image = FWImageDic.EDIT_IMAGE20;
            this.removeButton.Image = FWImageDic.DELETE_IMAGE20;
            this.closeButton.Image = FWImageDic.CLOSE_IMAGE20;
            this.btnSave.Image = FWImageDic.SAVE_IMAGE20;
            this.btnNoSave.Image = FWImageDic.NO_SAVE_IMAGE20;

            String language = "vn";

            XPathNavigator nav = null;
            XPathDocument docNav = null;
            System.IO.StringReader sr = new System.IO.StringReader(ConfigXMLStr);
            docNav = new XPathDocument(sr);
            nav = docNav.CreateNavigator();

            XPathNodeIterator iterator = nav.Select("/basiccats/group");
            while (iterator.MoveNext())
            {
                XPathNavigator groupNode = iterator.Current;
                //Nav Group
                DevExpress.XtraNavBar.NavBarGroup group = new DevExpress.XtraNavBar.NavBarGroup();
                group.Expanded = true;
                XPathNodeIterator langCatNode = groupNode.SelectChildren("lang", groupNode.NamespaceURI);
                while (langCatNode.MoveNext())
                {
                    //<group id ='3' picindex='navChuXe.png'>
                    //    <lang id='vn'>Đối tác dịch vụ</lang>
                    //    <lang id='en'></lang>
                    //    <cat>...</cat>
                    //</group>
                    XPathNavigator tmp = langCatNode.Current;
                    if (tmp.GetAttribute("id", tmp.NamespaceURI).Equals(language))
                    {
                        group.Caption = langCatNode.Current.Value.Trim();
                        group.Name = langCatNode.Current.Value.Trim();
                        group.Tag = groupNode.GetAttribute("id", groupNode.NamespaceURI);
                    }
                }
                this.navBarControl1.Groups.Add(group);
                //Nav Item
                XPathNodeIterator catNode = groupNode.SelectChildren("cat", groupNode.NamespaceURI);
                while (catNode.MoveNext())
                {
                    //<cat table='" + ProtocolVN.DanhMuc.PL.FURL(N, "Init") + @"' type='action' picindex='navChuXe.png'>
                    //    <lang id='vn'>Đối tác</lang>
                    //    <lang id='en'></lang>
                    //</cat>

                    XPathNavigator tmp = catNode.Current;
                    DevExpress.XtraNavBar.NavBarItem navItem = new DevExpress.XtraNavBar.NavBarItem();
                    navItem.Name = tmp.GetAttribute("table", tmp.NamespaceURI);
                    navItem.Tag = tmp.GetAttribute("type", tmp.NamespaceURI);
                    //navItem.LargeImage = FWImageDic.getImage4848(tmp.GetAttribute("picindex", tmp.NamespaceURI));
                    navItem.SmallImage = HelpImage.getImage1616(tmp.GetAttribute("picindex", tmp.NamespaceURI));
                    //navItem.LargeImage = ResourceMan.getImage48(tmp.GetAttribute("picindex", tmp.NamespaceURI));
                    //navItem.SmallImage = ResourceMan.getImage32(tmp.GetAttribute("picindex", tmp.NamespaceURI));

                    XPathNodeIterator tmpSub = tmp.SelectChildren("lang", tmp.NamespaceURI);
                    while (tmpSub.MoveNext())
                    {
                        XPathNavigator tmp2 = tmpSub.Current;
                        if (tmp2.GetAttribute("id", tmp2.NamespaceURI).Equals(language))
                        {
                            navItem.Caption = tmpSub.Current.Value.Trim();
                        }
                    }
                    try
                    {
                        string param = "";
                        string formName = navItem.Name;

                        if (formName.Contains("?") && formName.Contains("="))
                        {
                            param = formName.Substring(formName.IndexOf('=') + 1).Trim();
                            formName = formName.Substring(0, formName.IndexOf('?')).Trim();
                        }
                        previousItem = currentItem;

                        XtraUserControl control = (XtraUserControl)GenerateClass.initMethod(formName, param, false);

                        if (control != null)
                        {
                            if (HelpPermission.CheckCtrl(control) == false)
                            {
                                navItem.Enabled = false;
                            }
                        }
                    }
                    catch { }
                    navItem.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarItem_LinkClicked);
                    DevExpress.XtraNavBar.NavBarItemLink navItemLink = new DevExpress.XtraNavBar.NavBarItemLink(navItem);
                    group.ItemLinks.Add(navItemLink);
                    this.navBarControl1.Items.Add(navItem);
                }
                //Gắn hình vào group

                string image = groupNode.GetAttribute("picindex", groupNode.NamespaceURI);
                if (image == String.Empty)
                {
                    if (group.ItemLinks.Count > 0)
                        group.SmallImage = group.ItemLinks[0].Item.SmallImage;
                }
                else
                {
                    group.SmallImage = HelpImage.getImage1616(image);
                }
            }

            if (navBarControl1.ActiveGroup.ItemLinks.Count > 0)
            {
                lblCat.Text = navBarControl1.ActiveGroup.ItemLinks[0].Item.Caption;
            }
            else
            {
                lblCat.Text = "Chưa xác định danh mục";
            }

            if (viewID == 2)//View Old
            {
                toView2();
            }
            else if (viewID == 1)// View Old
            {
                //NOOP
            }
        }
 public void CreateNewWAItem(int i_wa, navBarItemWAClass _navBarItemWA, NavBarControl _navBarControl2, DevExpress.XtraNavBar.NavBarGroup _navBarGroupWheelAlignment)
 {
     #region Creating a new navBarItem and adding it the Wheel Alignment Group
     navBarItemWAClass temp_navBarItemWA = _navBarItemWA;
     navBarItemWA.Insert(i_wa, temp_navBarItemWA);
     _navBarControl2.Items.Add(navBarItemWA[i_wa]);
     navBarItemWA[i_wa].Name    = "WA " + Convert.ToString(WheelAlignment.WheelAlignmentCounter + 1);
     navBarItemWA[i_wa].Caption = "WA " + Convert.ToString(WheelAlignment.WheelAlignmentCounter + 1);
     _navBarGroupWheelAlignment.ItemLinks.Add(navBarItemWA[i_wa]);
     #endregion
 }
Beispiel #17
0
        /// <summary>
        /// ���ģ��˵�
        /// </summary>
        /// <param name="menuFile"></param>
        public void FillNavBarMenu(string menuFile)
        {
            TemplateGroupDictionary = new List<DictionaryEntry>();
            TemplateItemDictionary = new Dictionary<string, IList<DrawObject>>();
            GroupTypeList = new List<DictionaryEntry>();
            XmlNodeList xmlNodeList = XmlHelper.GetXmlNodeListByXpath(menuFile, "Menu/Group");
            for (int i = 0; i < xmlNodeList.Count; i++)
            {
                XmlNode xn = xmlNodeList[i];
                if (xn.Attributes["visible"].Value == "false")
                    continue;
                DevExpress.XtraNavBar.NavBarGroup nbgTemp = new DevExpress.XtraNavBar.NavBarGroup();
                nbgTemp.Name = xn.Attributes["name"].Value;
                nbgTemp.Caption = xn.Attributes["caption"].Value;
                nbgTemp.DragDropFlags = DevExpress.XtraNavBar.NavBarDragDrop.AllowDrop;
                nbgTemp.ItemChanged += new EventHandler(delegate
                {
                    foreach (DevExpress.XtraNavBar.NavBarGroup group in navMenu.Groups)
                    {
                        if (group.Name != nbgTemp.Name)
                        {
                            foreach (DevExpress.XtraNavBar.NavBarItemLink item in group.ItemLinks)
                            {
                                item.Item.Appearance.ForeColor = Color.FromArgb(235, 235, 235);
                            }
                        }
                    }
                    //navMenu.Refresh();
                });
                //GroupTypeList.Add(new Entity() { string1 = nbgTemp.Name, string2 = nbgTemp.Caption });
                //List<DrawObject> d=new List<DrawObject> ();
                GroupTypeList.Add(new DictionaryEntry(nbgTemp.Name, nbgTemp.Caption));
                for (int j = 0; j < xn.ChildNodes.Count; j++)
                {
                    if (xn.ChildNodes[j].Attributes["visible"].Value == "false")
                        continue;
                    DevExpress.XtraNavBar.NavBarItem nviTemp = new DevExpress.XtraNavBar.NavBarItem();
                    nviTemp.Name = xn.ChildNodes[j].Attributes["name"].Value;
                    nviTemp.Caption = xn.ChildNodes[j].Attributes["caption"].Value;
                    nviTemp.SmallImage = Image.FromFile(menuImagesDirectory + xn.ChildNodes[j].Attributes["name"].Value + ".png");
                    nviTemp.Appearance.ForeColor = Color.FromArgb(235, 235, 235);
                    ArrayList al = ((GraphicsList)docManager.OpenDocumentTemplate(menuFilesDirectory + nviTemp.Name + ".dtl")).graphicsList;
                    IList<DrawObject> temp = new List<DrawObject>();
                    for (int k = 0; k < al.Count; k++)
                    {
                        temp.Add(al[k] as DrawObject);
                    }
                    if (temp.Count > 0)
                    {
                        TemplateItemDictionary.Add(nviTemp.Name, temp);
                    }
                    else
                    {
                        throw new Exception("ģ�������ļ����س���");
                    }
                    nviTemp.LinkClicked +=
                        new DevExpress.XtraNavBar.NavBarLinkEventHandler(
                            delegate
                            {
                                foreach (DevExpress.XtraNavBar.NavBarItemLink item in nbgTemp.ItemLinks)
                                {
                                    item.Item.Appearance.ForeColor = Color.FromArgb(235, 235, 235);
                                }
                                nviTemp.Appearance.ForeColor = Color.LightSkyBlue;
                                navMenu.Refresh();
                                CommandTemplate(temp);
                            }
                            );
                    nbgTemp.ItemLinks.Add(nviTemp);
                    TemplateGroupDictionary.Add(new DictionaryEntry(nbgTemp.Name, nviTemp.Name));

                }
                navMenu.Groups.Add(nbgTemp);
            }
            navMenu.Groups[0].Expanded = true;
        }
 public void CreateNewNavBarItem(int i_spring, navBarItemSpringClass _navBarItemSpring, NavBarControl _navBarControl2, DevExpress.XtraNavBar.NavBarGroup _navBarGroupSprings)
 {
     #region Creating a new NavBarItem and adding it the Spring Group
     navBarItemSpringClass temp_navBarItemSpring = _navBarItemSpring;
     navBarItemSpring.Insert(i_spring, temp_navBarItemSpring);
     _navBarControl2.Items.Add(navBarItemSpring[i_spring]);
     navBarItemSpring[i_spring].Name    = "Spring " + Convert.ToString(Spring.SpringCounter + 1);
     navBarItemSpring[i_spring].Caption = "Spring " + Convert.ToString(Spring.SpringCounter + 1);
     _navBarGroupSprings.ItemLinks.Add(navBarItemSpring[i_spring]);
     #endregion
 }
 public void CreateNewNavBarItem(int i_vehicle, navBarItemVehicleClass _navBarItemVehicle, NavBarControl _navBarControl2, DevExpress.XtraNavBar.NavBarGroup _navBarGroupVehicle)
 {
     #region Creating a new NavBarItem and adding it to the Tire Group
     navBarItemVehicleClass temp_navBarItemVehicle = _navBarItemVehicle;
     navBarItemVehicle.Insert(i_vehicle, temp_navBarItemVehicle);
     _navBarControl2.Items.Add(navBarItemVehicle[i_vehicle]);
     navBarItemVehicle[i_vehicle].Name    = "Vehicle " + Convert.ToString(Vehicle.VehicleCounter + 1);
     navBarItemVehicle[i_vehicle].Caption = "Vehicle " + Convert.ToString(Vehicle.VehicleCounter + 1);
     _navBarGroupVehicle.ItemLinks.Add(navBarItemVehicle[i_vehicle]);
     #endregion
 }
 public void CreateNewNavBarItem(int i_arb, navBarItemARBClass _navBarItemARB, NavBarControl _navBarControl2, DevExpress.XtraNavBar.NavBarGroup _navBarGroupAntiRollBar)
 {
     #region Creating a new NavBarItem and adding it the ARB Group
     navBarItemARBClass temp_navBarItemARB = _navBarItemARB;
     navBarItemARB.Insert(i_arb, temp_navBarItemARB);
     _navBarControl2.Items.Add(navBarItemARB[i_arb]);
     navBarItemARB[i_arb].Name    = "Anti-Roll Bar " + Convert.ToString(AntiRollBar.AntiRollBarCounter + 1);
     navBarItemARB[i_arb].Caption = "Anti-Roll Bar " + Convert.ToString(AntiRollBar.AntiRollBarCounter + 1);
     _navBarGroupAntiRollBar.ItemLinks.Add(navBarItemARB[i_arb]);
     #endregion
 }
 public void CreateNewNavBarItem(int i_scrl, navBarItemSCRLClass _navBarItemSCRL, NavBarControl _navBarControl2, DevExpress.XtraNavBar.NavBarGroup _navBarGroupSuspensionRL)
 {
     #region Creating a new NavBarItem and adding it to the Suspension RL group
     navBarItemSCRLClass temp_navBarItemSCRL = _navBarItemSCRL;
     navBarItemSCRL.Insert(i_scrl, temp_navBarItemSCRL);
     _navBarControl2.Items.Add(navBarItemSCRL[i_scrl]);
     navBarItemSCRL[i_scrl].Name    = "Rear Left Coordinates " + Convert.ToString(SuspensionCoordinatesRear.SCRLCounter + 1);
     navBarItemSCRL[i_scrl].Caption = "Rear Left Coordinates " + Convert.ToString(SuspensionCoordinatesRear.SCRLCounter + 1);
     _navBarGroupSuspensionRL.ItemLinks.Add(navBarItemSCRL[i_scrl]);
     #endregion
 }
Beispiel #22
0
 public void CreateNewNavBarItem(int i_chassis, navBarItemChassisClass _navBarItemChassis, NavBarControl _navBarControl2, DevExpress.XtraNavBar.NavBarGroup _navBarGroupChassis)
 {
     #region Creating a new navBarItem and adding it the Chassis Group
     navBarItemChassisClass temp_navBarItemChassis = _navBarItemChassis;
     navBarItemChassis.Insert(i_chassis, temp_navBarItemChassis);
     _navBarControl2.Items.Add(navBarItemChassis[i_chassis]);
     navBarItemChassis[i_chassis].Name    = "Chassis " + Convert.ToString(Chassis.ChassisCounter + 1);
     navBarItemChassis[i_chassis].Caption = "Chassis " + Convert.ToString(Chassis.ChassisCounter + 1);
     _navBarGroupChassis.ItemLinks.Add(navBarItemChassis[i_chassis]);
     #endregion
 }
Beispiel #23
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(FormPOS2));
     this.imageList1 = new System.Windows.Forms.ImageList(this.components);
     this.pnlTop = new DevExpress.XtraEditors.PanelControl();
     this.panelControl2 = new DevExpress.XtraEditors.PanelControl();
     this.lblLocation = new System.Windows.Forms.Label();
     this.label9 = new System.Windows.Forms.Label();
     this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton();
     this.sBtnAdd = new DevExpress.XtraEditors.SimpleButton();
     this.sBtnSubtract = new DevExpress.XtraEditors.SimpleButton();
     this.GroupControl1 = new DevExpress.XtraEditors.GroupControl();
     this.label13 = new System.Windows.Forms.Label();
     this.lblUpgradeFrom = new System.Windows.Forms.Label();
     this.label14 = new System.Windows.Forms.Label();
     this.lblTherapistName = new System.Windows.Forms.Label();
     this.label10 = new System.Windows.Forms.Label();
     this.lblTherapistID = new System.Windows.Forms.Label();
     this.label8 = new System.Windows.Forms.Label();
     this.lblSalesPersonName = new System.Windows.Forms.Label();
     this.label5 = new System.Windows.Forms.Label();
     this.lblBillReward = new System.Windows.Forms.Label();
     this.label4 = new System.Windows.Forms.Label();
     this.label3 = new System.Windows.Forms.Label();
     this.label2 = new System.Windows.Forms.Label();
     this.lblBillFB = new System.Windows.Forms.Label();
     this.lblBillDiscCode = new System.Windows.Forms.Label();
     this.lblDateTime = new System.Windows.Forms.Label();
     this.lblSalesperson = new System.Windows.Forms.Label();
     this.GroupControl2 = new DevExpress.XtraEditors.GroupControl();
     this.groupControl6 = new DevExpress.XtraEditors.GroupControl();
     this.lblUsageBal = new System.Windows.Forms.Label();
     this.groupControl5 = new DevExpress.XtraEditors.GroupControl();
     this.lblNettAmt = new System.Windows.Forms.Label();
     this.groupControl4 = new DevExpress.XtraEditors.GroupControl();
     this.lblGST = new System.Windows.Forms.Label();
     this.groupControl3 = new DevExpress.XtraEditors.GroupControl();
     this.lblDiscountAmt = new System.Windows.Forms.Label();
     this.lblTotalAmt = new System.Windows.Forms.Label();
     this.lblAmountPayable = new System.Windows.Forms.Label();
     this.label1 = new System.Windows.Forms.Label();
     this.label7 = new System.Windows.Forms.Label();
     this.lblMemberName = new System.Windows.Forms.Label();
     this.label6 = new System.Windows.Forms.Label();
     this.lblMembershipID = new System.Windows.Forms.Label();
     this.pnlCtrlBarScanner = new DevExpress.XtraEditors.PanelControl();
     this.calcEditQty = new DevExpress.XtraEditors.CalcEdit();
     this.Label12 = new System.Windows.Forms.Label();
     this.txtScannedCode = new DevExpress.XtraEditors.TextEdit();
     this.Label11 = new System.Windows.Forms.Label();
     this.btnEnter = new DevExpress.XtraEditors.SimpleButton();
     this.panelControl1 = new DevExpress.XtraEditors.PanelControl();
     this.btnF9 = new DevExpress.XtraEditors.SimpleButton();
     this.btnF8 = new DevExpress.XtraEditors.SimpleButton();
     this.btnF7 = new DevExpress.XtraEditors.SimpleButton();
     this.btnF6 = new DevExpress.XtraEditors.SimpleButton();
     this.btnF5 = new DevExpress.XtraEditors.SimpleButton();
     this.btnF4 = new DevExpress.XtraEditors.SimpleButton();
     this.btnF3 = new DevExpress.XtraEditors.SimpleButton();
     this.btnF2 = new DevExpress.XtraEditors.SimpleButton();
     this.btnF1 = new DevExpress.XtraEditors.SimpleButton();
     this.splitterControl1 = new DevExpress.XtraEditors.SplitterControl();
     this.pnlLeft = new DevExpress.XtraEditors.PanelControl();
     this.NavBarControl1 = new DevExpress.XtraNavBar.NavBarControl();
     this.nbgPackage = new DevExpress.XtraNavBar.NavBarGroup();
     this.nbiPackage001 = new DevExpress.XtraNavBar.NavBarItem();
     this.nbiPackage002 = new DevExpress.XtraNavBar.NavBarItem();
     this.nbiPackage003 = new DevExpress.XtraNavBar.NavBarItem();
     this.nbiPackage004 = new DevExpress.XtraNavBar.NavBarItem();
     this.nbiPackage005 = new DevExpress.XtraNavBar.NavBarItem();
     this.nbiPackage006 = new DevExpress.XtraNavBar.NavBarItem();
     this.nbiPackage007 = new DevExpress.XtraNavBar.NavBarItem();
     this.nbiPackage008 = new DevExpress.XtraNavBar.NavBarItem();
     this.nbiPackage009 = new DevExpress.XtraNavBar.NavBarItem();
     this.nbiPackage010 = new DevExpress.XtraNavBar.NavBarItem();
     this.nbiPackage011 = new DevExpress.XtraNavBar.NavBarItem();
     this.nbiPackage012 = new DevExpress.XtraNavBar.NavBarItem();
     this.nbiPackage036 = new DevExpress.XtraNavBar.NavBarItem();
     this.nbiPackage037 = new DevExpress.XtraNavBar.NavBarItem();
     this.navGiro = new DevExpress.XtraNavBar.NavBarItem();
     this.navSpaGiro = new DevExpress.XtraNavBar.NavBarItem();
     this.navConvertSpa = new DevExpress.XtraNavBar.NavBarItem();
     this.nbgProduct = new DevExpress.XtraNavBar.NavBarGroup();
     this.nbiProduct001 = new DevExpress.XtraNavBar.NavBarItem();
     this.nbiProduct002 = new DevExpress.XtraNavBar.NavBarItem();
     this.nbgMiscellaneous = new DevExpress.XtraNavBar.NavBarGroup();
     this.nbiMiscellaneous001 = new DevExpress.XtraNavBar.NavBarItem();
     this.nbiMiscellaneous002 = new DevExpress.XtraNavBar.NavBarItem();
     this.nbiMiscellaneous004 = new DevExpress.XtraNavBar.NavBarItem();
     this.nbiMiscellaneous005 = new DevExpress.XtraNavBar.NavBarItem();
     this.nbiMiscellaneous006 = new DevExpress.XtraNavBar.NavBarItem();
     this.nbiMiscellaneous007 = new DevExpress.XtraNavBar.NavBarItem();
     this.nbiMiscellaneous008 = new DevExpress.XtraNavBar.NavBarItem();
     this.nbiMiscellaneous009 = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarItem1 = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarMaintainSpaGiro = new DevExpress.XtraNavBar.NavBarItem();
     this.navDeposit = new DevExpress.XtraNavBar.NavBarItem();
     this.pnlGrid = new DevExpress.XtraEditors.PanelControl();
     this.gridItem = new DevExpress.XtraGrid.GridControl();
     this.GridView1 = new DevExpress.XtraGrid.Views.Grid.GridView();
     this.gridColumnStrCode = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumnDesc = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumnListPrice = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn8 = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumnQty = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumnDiscountCode = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumnDiscountAmt = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumnFreebieCode = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumnSubTotal = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumnExchange = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumnBillDiscount = new DevExpress.XtraGrid.Columns.GridColumn();
     ((System.ComponentModel.ISupportInitialize)(this.pnlTop)).BeginInit();
     this.pnlTop.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).BeginInit();
     this.panelControl2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.GroupControl1)).BeginInit();
     this.GroupControl1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.GroupControl2)).BeginInit();
     this.GroupControl2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.groupControl6)).BeginInit();
     this.groupControl6.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.groupControl5)).BeginInit();
     this.groupControl5.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.groupControl4)).BeginInit();
     this.groupControl4.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.groupControl3)).BeginInit();
     this.groupControl3.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pnlCtrlBarScanner)).BeginInit();
     this.pnlCtrlBarScanner.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.calcEditQty.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.txtScannedCode.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit();
     this.panelControl1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pnlLeft)).BeginInit();
     this.pnlLeft.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.NavBarControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pnlGrid)).BeginInit();
     this.pnlGrid.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.gridItem)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.GridView1)).BeginInit();
     this.SuspendLayout();
     //
     // imageList1
     //
     this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Magenta;
     this.imageList1.Images.SetKeyName(0, "");
     this.imageList1.Images.SetKeyName(1, "");
     this.imageList1.Images.SetKeyName(2, "");
     this.imageList1.Images.SetKeyName(3, "");
     this.imageList1.Images.SetKeyName(4, "");
     this.imageList1.Images.SetKeyName(5, "");
     this.imageList1.Images.SetKeyName(6, "");
     //
     // pnlTop
     //
     this.pnlTop.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
     this.pnlTop.Controls.Add(this.panelControl2);
     this.pnlTop.Controls.Add(this.panelControl1);
     this.pnlTop.Controls.Add(this.splitterControl1);
     this.pnlTop.Controls.Add(this.pnlLeft);
     this.pnlTop.Dock = System.Windows.Forms.DockStyle.Top;
     this.pnlTop.Location = new System.Drawing.Point(0, 0);
     this.pnlTop.Name = "pnlTop";
     this.pnlTop.Size = new System.Drawing.Size(1030, 387);
     this.pnlTop.TabIndex = 0;
     //
     // panelControl2
     //
     this.panelControl2.Appearance.BackColor = System.Drawing.Color.Transparent;
     this.panelControl2.Appearance.Options.UseBackColor = true;
     this.panelControl2.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
     this.panelControl2.Controls.Add(this.lblLocation);
     this.panelControl2.Controls.Add(this.label9);
     this.panelControl2.Controls.Add(this.simpleButton1);
     this.panelControl2.Controls.Add(this.sBtnAdd);
     this.panelControl2.Controls.Add(this.sBtnSubtract);
     this.panelControl2.Controls.Add(this.GroupControl1);
     this.panelControl2.Controls.Add(this.GroupControl2);
     this.panelControl2.Controls.Add(this.label7);
     this.panelControl2.Controls.Add(this.lblMemberName);
     this.panelControl2.Controls.Add(this.label6);
     this.panelControl2.Controls.Add(this.lblMembershipID);
     this.panelControl2.Controls.Add(this.pnlCtrlBarScanner);
     this.panelControl2.Dock = System.Windows.Forms.DockStyle.Fill;
     this.panelControl2.Location = new System.Drawing.Point(182, 113);
     this.panelControl2.Name = "panelControl2";
     this.panelControl2.Size = new System.Drawing.Size(848, 274);
     this.panelControl2.TabIndex = 48;
     //
     // lblLocation
     //
     this.lblLocation.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.lblLocation.Location = new System.Drawing.Point(662, 5);
     this.lblLocation.Name = "lblLocation";
     this.lblLocation.Size = new System.Drawing.Size(138, 16);
     this.lblLocation.TabIndex = 57;
     this.lblLocation.Text = "--";
     //
     // label9
     //
     this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.label9.Location = new System.Drawing.Point(605, 5);
     this.label9.Name = "label9";
     this.label9.Size = new System.Drawing.Size(90, 14);
     this.label9.TabIndex = 56;
     this.label9.Text = "Location:";
     //
     // simpleButton1
     //
     this.simpleButton1.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.simpleButton1.Appearance.Options.UseFont = true;
     this.simpleButton1.Location = new System.Drawing.Point(748, 245);
     this.simpleButton1.Name = "simpleButton1";
     this.simpleButton1.Size = new System.Drawing.Size(52, 30);
     this.simpleButton1.TabIndex = 54;
     this.simpleButton1.Text = "Delete";
     this.simpleButton1.Click += new System.EventHandler(this.simpleButton1_Click);
     //
     // sBtnAdd
     //
     this.sBtnAdd.Appearance.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.sBtnAdd.Appearance.Options.UseFont = true;
     this.sBtnAdd.Appearance.Options.UseTextOptions = true;
     this.sBtnAdd.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.sBtnAdd.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Top;
     this.sBtnAdd.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
     this.sBtnAdd.ImageIndex = 0;
     this.sBtnAdd.ImageList = this.imageList1;
     this.sBtnAdd.Location = new System.Drawing.Point(718, 245);
     this.sBtnAdd.Name = "sBtnAdd";
     this.sBtnAdd.Size = new System.Drawing.Size(30, 30);
     this.sBtnAdd.TabIndex = 53;
     this.sBtnAdd.Click += new System.EventHandler(this.sBtnAdd_Click);
     //
     // sBtnSubtract
     //
     this.sBtnSubtract.Appearance.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.sBtnSubtract.Appearance.Options.UseFont = true;
     this.sBtnSubtract.Appearance.Options.UseTextOptions = true;
     this.sBtnSubtract.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.sBtnSubtract.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Top;
     this.sBtnSubtract.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
     this.sBtnSubtract.ImageIndex = 1;
     this.sBtnSubtract.ImageList = this.imageList1;
     this.sBtnSubtract.Location = new System.Drawing.Point(688, 245);
     this.sBtnSubtract.Name = "sBtnSubtract";
     this.sBtnSubtract.Size = new System.Drawing.Size(30, 30);
     this.sBtnSubtract.TabIndex = 52;
     this.sBtnSubtract.Click += new System.EventHandler(this.sBtnSubtract_Click);
     //
     // GroupControl1
     //
     this.GroupControl1.Appearance.BackColor = System.Drawing.Color.Transparent;
     this.GroupControl1.Appearance.BorderColor = System.Drawing.Color.Black;
     this.GroupControl1.Appearance.ForeColor = System.Drawing.SystemColors.ControlText;
     this.GroupControl1.Appearance.Options.UseBackColor = true;
     this.GroupControl1.Appearance.Options.UseBorderColor = true;
     this.GroupControl1.Appearance.Options.UseForeColor = true;
     this.GroupControl1.Controls.Add(this.label13);
     this.GroupControl1.Controls.Add(this.lblUpgradeFrom);
     this.GroupControl1.Controls.Add(this.label14);
     this.GroupControl1.Controls.Add(this.lblTherapistName);
     this.GroupControl1.Controls.Add(this.label10);
     this.GroupControl1.Controls.Add(this.lblTherapistID);
     this.GroupControl1.Controls.Add(this.label8);
     this.GroupControl1.Controls.Add(this.lblSalesPersonName);
     this.GroupControl1.Controls.Add(this.label5);
     this.GroupControl1.Controls.Add(this.lblBillReward);
     this.GroupControl1.Controls.Add(this.label4);
     this.GroupControl1.Controls.Add(this.label3);
     this.GroupControl1.Controls.Add(this.label2);
     this.GroupControl1.Controls.Add(this.lblBillFB);
     this.GroupControl1.Controls.Add(this.lblBillDiscCode);
     this.GroupControl1.Controls.Add(this.lblDateTime);
     this.GroupControl1.Controls.Add(this.lblSalesperson);
     this.GroupControl1.Location = new System.Drawing.Point(7, 22);
     this.GroupControl1.Name = "GroupControl1";
     this.GroupControl1.Size = new System.Drawing.Size(379, 217);
     this.GroupControl1.TabIndex = 45;
     //
     // label13
     //
     this.label13.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.label13.Location = new System.Drawing.Point(5, 165);
     this.label13.Name = "label13";
     this.label13.Size = new System.Drawing.Size(98, 16);
     this.label13.TabIndex = 45;
     this.label13.Text = "Upgrade From:";
     //
     // lblUpgradeFrom
     //
     this.lblUpgradeFrom.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblUpgradeFrom.Location = new System.Drawing.Point(103, 165);
     this.lblUpgradeFrom.Name = "lblUpgradeFrom";
     this.lblUpgradeFrom.Size = new System.Drawing.Size(269, 50);
     this.lblUpgradeFrom.TabIndex = 44;
     //
     // label14
     //
     this.label14.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.label14.Location = new System.Drawing.Point(5, 105);
     this.label14.Name = "label14";
     this.label14.Size = new System.Drawing.Size(98, 14);
     this.label14.TabIndex = 43;
     this.label14.Text = "Name:";
     //
     // lblTherapistName
     //
     this.lblTherapistName.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblTherapistName.Location = new System.Drawing.Point(103, 105);
     this.lblTherapistName.Name = "lblTherapistName";
     this.lblTherapistName.Size = new System.Drawing.Size(254, 18);
     this.lblTherapistName.TabIndex = 42;
     this.lblTherapistName.Text = "--";
     //
     // label10
     //
     this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.label10.Location = new System.Drawing.Point(5, 85);
     this.label10.Name = "label10";
     this.label10.Size = new System.Drawing.Size(98, 14);
     this.label10.TabIndex = 41;
     this.label10.Text = "Therapist ID:";
     //
     // lblTherapistID
     //
     this.lblTherapistID.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblTherapistID.Location = new System.Drawing.Point(103, 85);
     this.lblTherapistID.Name = "lblTherapistID";
     this.lblTherapistID.Size = new System.Drawing.Size(110, 18);
     this.lblTherapistID.TabIndex = 40;
     this.lblTherapistID.Text = "--";
     //
     // label8
     //
     this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.label8.Location = new System.Drawing.Point(5, 65);
     this.label8.Name = "label8";
     this.label8.Size = new System.Drawing.Size(98, 14);
     this.label8.TabIndex = 39;
     this.label8.Text = "Name:";
     //
     // lblSalesPersonName
     //
     this.lblSalesPersonName.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblSalesPersonName.Location = new System.Drawing.Point(103, 65);
     this.lblSalesPersonName.Name = "lblSalesPersonName";
     this.lblSalesPersonName.Size = new System.Drawing.Size(252, 18);
     this.lblSalesPersonName.TabIndex = 38;
     this.lblSalesPersonName.Text = "--";
     //
     // label5
     //
     this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.label5.Location = new System.Drawing.Point(212, 145);
     this.label5.Name = "label5";
     this.label5.Size = new System.Drawing.Size(92, 16);
     this.label5.TabIndex = 37;
     this.label5.Text = "Reward Code :";
     //
     // lblBillReward
     //
     this.lblBillReward.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblBillReward.Location = new System.Drawing.Point(295, 145);
     this.lblBillReward.Name = "lblBillReward";
     this.lblBillReward.Size = new System.Drawing.Size(81, 18);
     this.lblBillReward.TabIndex = 36;
     this.lblBillReward.Text = "--";
     //
     // label4
     //
     this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.label4.Location = new System.Drawing.Point(5, 145);
     this.label4.Name = "label4";
     this.label4.Size = new System.Drawing.Size(98, 16);
     this.label4.TabIndex = 35;
     this.label4.Text = "Freebie Code :";
     //
     // label3
     //
     this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.label3.Location = new System.Drawing.Point(5, 125);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(98, 15);
     this.label3.TabIndex = 34;
     this.label3.Text = "Discount Code:";
     //
     // label2
     //
     this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.label2.Location = new System.Drawing.Point(5, 45);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(114, 18);
     this.label2.TabIndex = 33;
     this.label2.Text = "Sales Person ID:";
     //
     // lblBillFB
     //
     this.lblBillFB.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblBillFB.Location = new System.Drawing.Point(103, 145);
     this.lblBillFB.Name = "lblBillFB";
     this.lblBillFB.Size = new System.Drawing.Size(96, 18);
     this.lblBillFB.TabIndex = 27;
     this.lblBillFB.Text = "--";
     //
     // lblBillDiscCode
     //
     this.lblBillDiscCode.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblBillDiscCode.Location = new System.Drawing.Point(103, 125);
     this.lblBillDiscCode.Name = "lblBillDiscCode";
     this.lblBillDiscCode.Size = new System.Drawing.Size(96, 18);
     this.lblBillDiscCode.TabIndex = 26;
     this.lblBillDiscCode.Text = "--";
     //
     // lblDateTime
     //
     this.lblDateTime.AutoSize = true;
     this.lblDateTime.BackColor = System.Drawing.SystemColors.Control;
     this.lblDateTime.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblDateTime.Location = new System.Drawing.Point(5, 22);
     this.lblDateTime.Name = "lblDateTime";
     this.lblDateTime.Size = new System.Drawing.Size(163, 17);
     this.lblDateTime.TabIndex = 24;
     this.lblDateTime.Text = "31/08/2005 11:30 AM";
     //
     // lblSalesperson
     //
     this.lblSalesperson.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblSalesperson.Location = new System.Drawing.Point(117, 45);
     this.lblSalesperson.Name = "lblSalesperson";
     this.lblSalesperson.Size = new System.Drawing.Size(110, 18);
     this.lblSalesperson.TabIndex = 32;
     this.lblSalesperson.Text = "--";
     //
     // GroupControl2
     //
     this.GroupControl2.Appearance.BackColor = System.Drawing.Color.Transparent;
     this.GroupControl2.Appearance.BorderColor = System.Drawing.Color.Black;
     this.GroupControl2.Appearance.ForeColor = System.Drawing.SystemColors.ControlText;
     this.GroupControl2.Appearance.Options.UseBackColor = true;
     this.GroupControl2.Appearance.Options.UseBorderColor = true;
     this.GroupControl2.Appearance.Options.UseForeColor = true;
     this.GroupControl2.Controls.Add(this.groupControl6);
     this.GroupControl2.Controls.Add(this.groupControl5);
     this.GroupControl2.Controls.Add(this.groupControl4);
     this.GroupControl2.Controls.Add(this.groupControl3);
     this.GroupControl2.Controls.Add(this.lblTotalAmt);
     this.GroupControl2.Controls.Add(this.lblAmountPayable);
     this.GroupControl2.Controls.Add(this.label1);
     this.GroupControl2.Location = new System.Drawing.Point(389, 22);
     this.GroupControl2.Name = "GroupControl2";
     this.GroupControl2.Size = new System.Drawing.Size(411, 217);
     this.GroupControl2.TabIndex = 46;
     //
     // groupControl6
     //
     this.groupControl6.Controls.Add(this.lblUsageBal);
     this.groupControl6.Location = new System.Drawing.Point(112, 140);
     this.groupControl6.Name = "groupControl6";
     this.groupControl6.Size = new System.Drawing.Size(93, 62);
     this.groupControl6.TabIndex = 37;
     this.groupControl6.Text = "Usage Bal:";
     this.groupControl6.Visible = false;
     //
     // lblUsageBal
     //
     this.lblUsageBal.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblUsageBal.Location = new System.Drawing.Point(13, 30);
     this.lblUsageBal.Name = "lblUsageBal";
     this.lblUsageBal.Size = new System.Drawing.Size(82, 23);
     this.lblUsageBal.TabIndex = 33;
     this.lblUsageBal.Text = "0";
     this.lblUsageBal.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // groupControl5
     //
     this.groupControl5.Controls.Add(this.lblNettAmt);
     this.groupControl5.Location = new System.Drawing.Point(102, 140);
     this.groupControl5.Name = "groupControl5";
     this.groupControl5.Size = new System.Drawing.Size(104, 62);
     this.groupControl5.TabIndex = 36;
     this.groupControl5.Text = "Nett Amt:";
     //
     // lblNettAmt
     //
     this.lblNettAmt.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblNettAmt.Location = new System.Drawing.Point(13, 30);
     this.lblNettAmt.Name = "lblNettAmt";
     this.lblNettAmt.Size = new System.Drawing.Size(82, 23);
     this.lblNettAmt.TabIndex = 33;
     this.lblNettAmt.Text = "0";
     this.lblNettAmt.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // groupControl4
     //
     this.groupControl4.Controls.Add(this.lblGST);
     this.groupControl4.Location = new System.Drawing.Point(302, 140);
     this.groupControl4.Name = "groupControl4";
     this.groupControl4.Size = new System.Drawing.Size(100, 62);
     this.groupControl4.TabIndex = 35;
     this.groupControl4.Text = "GST:";
     //
     // lblGST
     //
     this.lblGST.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblGST.Location = new System.Drawing.Point(22, 28);
     this.lblGST.Name = "lblGST";
     this.lblGST.Size = new System.Drawing.Size(70, 23);
     this.lblGST.TabIndex = 32;
     this.lblGST.Text = "0";
     this.lblGST.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // groupControl3
     //
     this.groupControl3.Controls.Add(this.lblDiscountAmt);
     this.groupControl3.Location = new System.Drawing.Point(204, 140);
     this.groupControl3.Name = "groupControl3";
     this.groupControl3.Size = new System.Drawing.Size(100, 62);
     this.groupControl3.TabIndex = 34;
     this.groupControl3.Text = "Total Discount:";
     //
     // lblDiscountAmt
     //
     this.lblDiscountAmt.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblDiscountAmt.Location = new System.Drawing.Point(23, 30);
     this.lblDiscountAmt.Name = "lblDiscountAmt";
     this.lblDiscountAmt.Size = new System.Drawing.Size(72, 23);
     this.lblDiscountAmt.TabIndex = 31;
     this.lblDiscountAmt.Text = "0";
     this.lblDiscountAmt.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // lblTotalAmt
     //
     this.lblTotalAmt.AutoSize = true;
     this.lblTotalAmt.Font = new System.Drawing.Font("Microsoft Sans Serif", 38F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblTotalAmt.Location = new System.Drawing.Point(141, 66);
     this.lblTotalAmt.Name = "lblTotalAmt";
     this.lblTotalAmt.RightToLeft = System.Windows.Forms.RightToLeft.No;
     this.lblTotalAmt.Size = new System.Drawing.Size(54, 59);
     this.lblTotalAmt.TabIndex = 27;
     this.lblTotalAmt.Text = "0";
     this.lblTotalAmt.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // lblAmountPayable
     //
     this.lblAmountPayable.AutoSize = true;
     this.lblAmountPayable.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.lblAmountPayable.Location = new System.Drawing.Point(8, 20);
     this.lblAmountPayable.Name = "lblAmountPayable";
     this.lblAmountPayable.Size = new System.Drawing.Size(170, 31);
     this.lblAmountPayable.TabIndex = 26;
     this.lblAmountPayable.Text = "Sales Total:";
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location = new System.Drawing.Point(8, 128);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(0, 18);
     this.label1.TabIndex = 25;
     //
     // label7
     //
     this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.label7.Location = new System.Drawing.Point(289, 4);
     this.label7.Name = "label7";
     this.label7.Size = new System.Drawing.Size(90, 14);
     this.label7.TabIndex = 43;
     this.label7.Text = "Member Name:";
     //
     // lblMemberName
     //
     this.lblMemberName.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.lblMemberName.Location = new System.Drawing.Point(378, 5);
     this.lblMemberName.Name = "lblMemberName";
     this.lblMemberName.Size = new System.Drawing.Size(224, 16);
     this.lblMemberName.TabIndex = 42;
     this.lblMemberName.Text = "--";
     //
     // label6
     //
     this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.label6.Location = new System.Drawing.Point(9, 5);
     this.label6.Name = "label6";
     this.label6.Size = new System.Drawing.Size(96, 16);
     this.label6.TabIndex = 41;
     this.label6.Text = "Membership ID:";
     //
     // lblMembershipID
     //
     this.lblMembershipID.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.lblMembershipID.Location = new System.Drawing.Point(113, 5);
     this.lblMembershipID.Name = "lblMembershipID";
     this.lblMembershipID.Size = new System.Drawing.Size(178, 16);
     this.lblMembershipID.TabIndex = 40;
     this.lblMembershipID.Text = "--";
     //
     // pnlCtrlBarScanner
     //
     this.pnlCtrlBarScanner.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
     this.pnlCtrlBarScanner.Controls.Add(this.calcEditQty);
     this.pnlCtrlBarScanner.Controls.Add(this.Label12);
     this.pnlCtrlBarScanner.Controls.Add(this.txtScannedCode);
     this.pnlCtrlBarScanner.Controls.Add(this.Label11);
     this.pnlCtrlBarScanner.Controls.Add(this.btnEnter);
     this.pnlCtrlBarScanner.Location = new System.Drawing.Point(7, 241);
     this.pnlCtrlBarScanner.Name = "pnlCtrlBarScanner";
     this.pnlCtrlBarScanner.Size = new System.Drawing.Size(508, 36);
     this.pnlCtrlBarScanner.TabIndex = 55;
     this.pnlCtrlBarScanner.Visible = false;
     //
     // calcEditQty
     //
     this.calcEditQty.Location = new System.Drawing.Point(382, 4);
     this.calcEditQty.Name = "calcEditQty";
     this.calcEditQty.Properties.AutoHeight = false;
     this.calcEditQty.Properties.Precision = 0;
     this.calcEditQty.Size = new System.Drawing.Size(64, 28);
     this.calcEditQty.TabIndex = 52;
     this.calcEditQty.KeyDown += new System.Windows.Forms.KeyEventHandler(this.calcEditQty_KeyDown);
     //
     // Label12
     //
     this.Label12.AutoSize = true;
     this.Label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.Label12.Location = new System.Drawing.Point(350, 12);
     this.Label12.Name = "Label12";
     this.Label12.Size = new System.Drawing.Size(32, 13);
     this.Label12.TabIndex = 49;
     this.Label12.Text = "QTY";
     //
     // txtScannedCode
     //
     this.txtScannedCode.EditValue = "";
     this.txtScannedCode.Location = new System.Drawing.Point(114, 4);
     this.txtScannedCode.Name = "txtScannedCode";
     this.txtScannedCode.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtScannedCode.Properties.Appearance.Options.UseFont = true;
     this.txtScannedCode.Size = new System.Drawing.Size(226, 29);
     this.txtScannedCode.TabIndex = 48;
     this.txtScannedCode.EditValueChanged += new System.EventHandler(this.txtScannedCode_EditValueChanged);
     this.txtScannedCode.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtScannedCode_KeyDown);
     //
     // Label11
     //
     this.Label11.AutoSize = true;
     this.Label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.Label11.Location = new System.Drawing.Point(4, 12);
     this.Label11.Name = "Label11";
     this.Label11.Size = new System.Drawing.Size(112, 13);
     this.Label11.TabIndex = 47;
     this.Label11.Text = "SCAN ITEM CODE";
     //
     // btnEnter
     //
     this.btnEnter.Appearance.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btnEnter.Appearance.Options.UseFont = true;
     this.btnEnter.Appearance.Options.UseTextOptions = true;
     this.btnEnter.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.btnEnter.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Top;
     this.btnEnter.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
     this.btnEnter.ImageIndex = 6;
     this.btnEnter.ImageList = this.imageList1;
     this.btnEnter.Location = new System.Drawing.Point(454, 4);
     this.btnEnter.Name = "btnEnter";
     this.btnEnter.Size = new System.Drawing.Size(30, 30);
     this.btnEnter.TabIndex = 51;
     this.btnEnter.Click += new System.EventHandler(this.btnEnter_Click);
     //
     // panelControl1
     //
     this.panelControl1.Appearance.BackColor = System.Drawing.Color.Transparent;
     this.panelControl1.Appearance.Options.UseBackColor = true;
     this.panelControl1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
     this.panelControl1.Controls.Add(this.btnF9);
     this.panelControl1.Controls.Add(this.btnF8);
     this.panelControl1.Controls.Add(this.btnF7);
     this.panelControl1.Controls.Add(this.btnF6);
     this.panelControl1.Controls.Add(this.btnF5);
     this.panelControl1.Controls.Add(this.btnF4);
     this.panelControl1.Controls.Add(this.btnF3);
     this.panelControl1.Controls.Add(this.btnF2);
     this.panelControl1.Controls.Add(this.btnF1);
     this.panelControl1.Dock = System.Windows.Forms.DockStyle.Top;
     this.panelControl1.Location = new System.Drawing.Point(182, 0);
     this.panelControl1.Name = "panelControl1";
     this.panelControl1.Size = new System.Drawing.Size(848, 113);
     this.panelControl1.TabIndex = 47;
     //
     // btnF9
     //
     this.btnF9.Appearance.Font = new System.Drawing.Font("Tahoma", 14.35F, System.Drawing.FontStyle.Bold);
     this.btnF9.Appearance.Options.UseFont = true;
     this.btnF9.Location = new System.Drawing.Point(5, 76);
     this.btnF9.Name = "btnF9";
     this.btnF9.Size = new System.Drawing.Size(190, 32);
     this.btnF9.TabIndex = 48;
     this.btnF9.Text = "F9-Convert";
     this.btnF9.Click += new System.EventHandler(this.btnF9_Click);
     //
     // btnF8
     //
     this.btnF8.Appearance.Font = new System.Drawing.Font("Tahoma", 14.35F, System.Drawing.FontStyle.Bold);
     this.btnF8.Appearance.Options.UseFont = true;
     this.btnF8.Location = new System.Drawing.Point(608, 40);
     this.btnF8.Name = "btnF8";
     this.btnF8.Size = new System.Drawing.Size(190, 32);
     this.btnF8.TabIndex = 47;
     this.btnF8.Text = "F8-Cancel";
     this.btnF8.Click += new System.EventHandler(this.btnF8_Click);
     //
     // btnF7
     //
     this.btnF7.Appearance.Font = new System.Drawing.Font("Tahoma", 14.35F, System.Drawing.FontStyle.Bold);
     this.btnF7.Appearance.Options.UseFont = true;
     this.btnF7.Location = new System.Drawing.Point(406, 40);
     this.btnF7.Name = "btnF7";
     this.btnF7.Size = new System.Drawing.Size(190, 32);
     this.btnF7.TabIndex = 46;
     this.btnF7.Text = "F7-Tender";
     this.btnF7.Click += new System.EventHandler(this.btnF7_Click);
     //
     // btnF6
     //
     this.btnF6.Appearance.Font = new System.Drawing.Font("Tahoma", 14.35F, System.Drawing.FontStyle.Bold);
     this.btnF6.Appearance.Options.UseFont = true;
     this.btnF6.Location = new System.Drawing.Point(206, 40);
     this.btnF6.Name = "btnF6";
     this.btnF6.Size = new System.Drawing.Size(190, 32);
     this.btnF6.TabIndex = 45;
     this.btnF6.Text = "F6-IPP";
     this.btnF6.Click += new System.EventHandler(this.btnF6_Click);
     //
     // btnF5
     //
     this.btnF5.Appearance.Font = new System.Drawing.Font("Tahoma", 14.35F, System.Drawing.FontStyle.Bold);
     this.btnF5.Appearance.Options.UseFont = true;
     this.btnF5.Location = new System.Drawing.Point(5, 40);
     this.btnF5.Name = "btnF5";
     this.btnF5.Size = new System.Drawing.Size(190, 32);
     this.btnF5.TabIndex = 44;
     this.btnF5.Text = "F5-Rewards";
     this.btnF5.Click += new System.EventHandler(this.btnF5_Click);
     //
     // btnF4
     //
     this.btnF4.Appearance.Font = new System.Drawing.Font("Tahoma", 14.35F, System.Drawing.FontStyle.Bold);
     this.btnF4.Appearance.Options.UseFont = true;
     this.btnF4.Location = new System.Drawing.Point(608, 4);
     this.btnF4.Name = "btnF4";
     this.btnF4.Size = new System.Drawing.Size(190, 32);
     this.btnF4.TabIndex = 43;
     this.btnF4.Text = "F4-Bill Freebie";
     this.btnF4.Click += new System.EventHandler(this.btnF4_Click);
     //
     // btnF3
     //
     this.btnF3.Appearance.Font = new System.Drawing.Font("Tahoma", 14.35F, System.Drawing.FontStyle.Bold);
     this.btnF3.Appearance.Options.UseFont = true;
     this.btnF3.Location = new System.Drawing.Point(406, 4);
     this.btnF3.Name = "btnF3";
     this.btnF3.Size = new System.Drawing.Size(190, 32);
     this.btnF3.TabIndex = 42;
     this.btnF3.Text = "F3-Bill Discount";
     this.btnF3.Click += new System.EventHandler(this.btnF3_Click);
     //
     // btnF2
     //
     this.btnF2.Appearance.Font = new System.Drawing.Font("Tahoma", 14.35F, System.Drawing.FontStyle.Bold);
     this.btnF2.Appearance.Options.UseFont = true;
     this.btnF2.Location = new System.Drawing.Point(206, 4);
     this.btnF2.Name = "btnF2";
     this.btnF2.Size = new System.Drawing.Size(190, 32);
     this.btnF2.TabIndex = 41;
     this.btnF2.Text = "F2-Sales ID";
     this.btnF2.Click += new System.EventHandler(this.btnF2_Click);
     //
     // btnF1
     //
     this.btnF1.Appearance.Font = new System.Drawing.Font("Tahoma", 14.35F, System.Drawing.FontStyle.Bold);
     this.btnF1.Appearance.Options.UseFont = true;
     this.btnF1.Location = new System.Drawing.Point(5, 4);
     this.btnF1.Name = "btnF1";
     this.btnF1.Size = new System.Drawing.Size(190, 32);
     this.btnF1.TabIndex = 40;
     this.btnF1.Text = "F1-Item Discount";
     this.btnF1.Click += new System.EventHandler(this.btnF1_Click);
     //
     // splitterControl1
     //
     this.splitterControl1.Location = new System.Drawing.Point(176, 0);
     this.splitterControl1.Name = "splitterControl1";
     this.splitterControl1.Size = new System.Drawing.Size(6, 387);
     this.splitterControl1.TabIndex = 46;
     this.splitterControl1.TabStop = false;
     //
     // pnlLeft
     //
     this.pnlLeft.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
     this.pnlLeft.Controls.Add(this.NavBarControl1);
     this.pnlLeft.Dock = System.Windows.Forms.DockStyle.Left;
     this.pnlLeft.Location = new System.Drawing.Point(0, 0);
     this.pnlLeft.Name = "pnlLeft";
     this.pnlLeft.Size = new System.Drawing.Size(176, 387);
     this.pnlLeft.TabIndex = 45;
     //
     // NavBarControl1
     //
     this.NavBarControl1.ActiveGroup = this.nbgPackage;
     this.NavBarControl1.Appearance.Background.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.NavBarControl1.Appearance.Background.Options.UseFont = true;
     this.NavBarControl1.Appearance.Background.Options.UseTextOptions = true;
     this.NavBarControl1.Appearance.Background.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
     this.NavBarControl1.Appearance.Background.TextOptions.Trimming = DevExpress.Utils.Trimming.Word;
     this.NavBarControl1.Appearance.Background.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
     this.NavBarControl1.Appearance.Background.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
     this.NavBarControl1.Appearance.Item.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.NavBarControl1.Appearance.Item.Options.UseFont = true;
     this.NavBarControl1.Appearance.ItemActive.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.NavBarControl1.Appearance.ItemActive.Options.UseFont = true;
     this.NavBarControl1.ContentButtonHint = null;
     this.NavBarControl1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.NavBarControl1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.NavBarControl1.Groups.AddRange(new DevExpress.XtraNavBar.NavBarGroup[] {
     this.nbgPackage,
     this.nbgProduct,
     this.nbgMiscellaneous});
     this.NavBarControl1.Items.AddRange(new DevExpress.XtraNavBar.NavBarItem[] {
     this.nbiPackage001,
     this.nbiPackage002,
     this.nbiPackage003,
     this.nbiPackage004,
     this.nbiPackage005,
     this.nbiPackage006,
     this.nbiPackage007,
     this.nbiPackage008,
     this.nbiPackage009,
     this.nbiPackage010,
     this.nbiPackage011,
     this.nbiPackage012,
     this.nbiProduct001,
     this.nbiProduct002,
     this.nbiMiscellaneous001,
     this.nbiMiscellaneous002,
     this.nbiMiscellaneous004,
     this.nbiMiscellaneous005,
     this.nbiMiscellaneous006,
     this.nbiMiscellaneous007,
     this.nbiMiscellaneous008,
     this.nbiMiscellaneous009,
     this.navGiro,
     this.navBarItem1,
     this.navDeposit,
     this.navSpaGiro,
     this.navBarMaintainSpaGiro,
     this.navConvertSpa,
     this.nbiPackage036,
     this.nbiPackage037});
     this.NavBarControl1.Location = new System.Drawing.Point(0, 0);
     this.NavBarControl1.LookAndFeel.UseDefaultLookAndFeel = false;
     this.NavBarControl1.Name = "NavBarControl1";
     this.NavBarControl1.OptionsNavPane.ExpandedWidth = 176;
     this.NavBarControl1.Size = new System.Drawing.Size(176, 387);
     this.NavBarControl1.StoreDefaultPaintStyleName = true;
     this.NavBarControl1.TabIndex = 44;
     this.NavBarControl1.Text = "MANTAIN GIROPKG  ";
     this.NavBarControl1.Click += new System.EventHandler(this.NavBarControl1_Click);
     //
     // nbgPackage
     //
     this.nbgPackage.Appearance.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.nbgPackage.Appearance.Options.UseFont = true;
     this.nbgPackage.Caption = "PACKAGE";
     this.nbgPackage.Expanded = true;
     this.nbgPackage.ItemLinks.AddRange(new DevExpress.XtraNavBar.NavBarItemLink[] {
     new DevExpress.XtraNavBar.NavBarItemLink(this.nbiPackage001),
     new DevExpress.XtraNavBar.NavBarItemLink(this.nbiPackage002),
     new DevExpress.XtraNavBar.NavBarItemLink(this.nbiPackage003),
     new DevExpress.XtraNavBar.NavBarItemLink(this.nbiPackage004),
     new DevExpress.XtraNavBar.NavBarItemLink(this.nbiPackage005),
     new DevExpress.XtraNavBar.NavBarItemLink(this.nbiPackage006),
     new DevExpress.XtraNavBar.NavBarItemLink(this.nbiPackage007),
     new DevExpress.XtraNavBar.NavBarItemLink(this.nbiPackage008),
     new DevExpress.XtraNavBar.NavBarItemLink(this.nbiPackage009),
     new DevExpress.XtraNavBar.NavBarItemLink(this.nbiPackage010),
     new DevExpress.XtraNavBar.NavBarItemLink(this.nbiPackage011),
     new DevExpress.XtraNavBar.NavBarItemLink(this.nbiPackage012),
     new DevExpress.XtraNavBar.NavBarItemLink(this.nbiPackage036),
     new DevExpress.XtraNavBar.NavBarItemLink(this.nbiPackage037),
     new DevExpress.XtraNavBar.NavBarItemLink(this.navGiro),
     new DevExpress.XtraNavBar.NavBarItemLink(this.navSpaGiro),
     new DevExpress.XtraNavBar.NavBarItemLink(this.navConvertSpa)});
     this.nbgPackage.Name = "nbgPackage";
     this.nbgPackage.TopVisibleLinkIndex = 6;
     //
     // nbiPackage001
     //
     this.nbiPackage001.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.nbiPackage001.Appearance.Options.UseFont = true;
     this.nbiPackage001.Caption = "FITNESS PKG";
     this.nbiPackage001.Name = "nbiPackage001";
     this.nbiPackage001.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nbiPackage001_LinkClicked_1);
     //
     // nbiPackage002
     //
     this.nbiPackage002.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.nbiPackage002.Appearance.Options.UseFont = true;
     this.nbiPackage002.Caption = "FITNESS GIRO";
     this.nbiPackage002.Name = "nbiPackage002";
     this.nbiPackage002.Visible = false;
     this.nbiPackage002.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nbiPackage002_LinkClicked);
     //
     // nbiPackage003
     //
     this.nbiPackage003.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.nbiPackage003.Appearance.Options.UseFont = true;
     this.nbiPackage003.Caption = "PT PKG";
     this.nbiPackage003.Name = "nbiPackage003";
     this.nbiPackage003.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nbiPackage003_LinkClicked);
     //
     // nbiPackage004
     //
     this.nbiPackage004.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.nbiPackage004.Appearance.Options.UseFont = true;
     this.nbiPackage004.Caption = "SPA SINGLE TX";
     this.nbiPackage004.Name = "nbiPackage004";
     this.nbiPackage004.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nbiPackage004_LinkClicked);
     //
     // nbiPackage005
     //
     this.nbiPackage005.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.nbiPackage005.Appearance.Options.UseFont = true;
     this.nbiPackage005.Caption = "SPA PKG";
     this.nbiPackage005.Name = "nbiPackage005";
     this.nbiPackage005.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nbiPackage005_LinkClicked);
     //
     // nbiPackage006
     //
     this.nbiPackage006.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.nbiPackage006.Appearance.Options.UseFont = true;
     this.nbiPackage006.Caption = "IPL PKG";
     this.nbiPackage006.Name = "nbiPackage006";
     this.nbiPackage006.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nbiPackage006_LinkClicked);
     //
     // nbiPackage007
     //
     this.nbiPackage007.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.nbiPackage007.Appearance.Options.UseFont = true;
     this.nbiPackage007.Caption = "SPA CREDIT";
     this.nbiPackage007.Name = "nbiPackage007";
     this.nbiPackage007.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nbiPackage007_LinkClicked);
     //
     // nbiPackage008
     //
     this.nbiPackage008.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.nbiPackage008.Appearance.Options.UseFont = true;
     this.nbiPackage008.Appearance.Options.UseTextOptions = true;
     this.nbiPackage008.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
     this.nbiPackage008.Caption = "FITNESS COMBO PKG";
     this.nbiPackage008.Name = "nbiPackage008";
     this.nbiPackage008.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nbiPackage008_LinkClicked);
     //
     // nbiPackage009
     //
     this.nbiPackage009.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.nbiPackage009.Appearance.Options.UseFont = true;
     this.nbiPackage009.Appearance.Options.UseTextOptions = true;
     this.nbiPackage009.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
     this.nbiPackage009.Caption = "SPA COMBO PKG";
     this.nbiPackage009.Name = "nbiPackage009";
     this.nbiPackage009.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nbiPackage009_LinkClicked);
     //
     // nbiPackage010
     //
     this.nbiPackage010.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.nbiPackage010.Appearance.Options.UseFont = true;
     this.nbiPackage010.Caption = "UPGRADE PKG";
     this.nbiPackage010.Name = "nbiPackage010";
     this.nbiPackage010.Visible = false;
     this.nbiPackage010.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nbiPackage010_LinkClicked);
     //
     // nbiPackage011
     //
     this.nbiPackage011.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.nbiPackage011.Appearance.Options.UseFont = true;
     this.nbiPackage011.Caption = "TOP-UP SINGLE TREATMENT";
     this.nbiPackage011.Name = "nbiPackage011";
     this.nbiPackage011.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nbiPackage011_LinkClicked);
     //
     // nbiPackage012
     //
     this.nbiPackage012.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.nbiPackage012.Appearance.Options.UseFont = true;
     this.nbiPackage012.Caption = "TOP-UP SPA CREDIT";
     this.nbiPackage012.Name = "nbiPackage012";
     this.nbiPackage012.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nbiPackage012_LinkClicked);
     //
     // nbiPackage036
     //
     this.nbiPackage036.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.nbiPackage036.Appearance.Options.UseFont = true;
     this.nbiPackage036.Caption = "HOLISTIC FITNESS CREDIT";
     this.nbiPackage036.Name = "nbiPackage036";
     this.nbiPackage036.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nbiPackage036_LinkClicked);
     //
     // nbiPackage037
     //
     this.nbiPackage037.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.nbiPackage037.Appearance.Options.UseFont = true;
     this.nbiPackage037.Caption = "HOLISTIC SPA CREDIT";
     this.nbiPackage037.Name = "nbiPackage037";
     this.nbiPackage037.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nbiPackage037_LinkClicked);
     //
     // navGiro
     //
     this.navGiro.Caption = "GIRO PKG";
     this.navGiro.Name = "navGiro";
     this.navGiro.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navGiro_LinkClicked);
     //
     // navSpaGiro
     //
     this.navSpaGiro.Caption = "SPA GIRO";
     this.navSpaGiro.Name = "navSpaGiro";
     this.navSpaGiro.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navSpaGiro_LinkClicked);
     //
     // navConvertSpa
     //
     this.navConvertSpa.Caption = "CONVERT SPA PKG";
     this.navConvertSpa.Name = "navConvertSpa";
     this.navConvertSpa.Visible = false;
     this.navConvertSpa.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navConvertSpa_LinkClicked);
     //
     // nbgProduct
     //
     this.nbgProduct.Appearance.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.nbgProduct.Appearance.Options.UseFont = true;
     this.nbgProduct.AppearanceBackground.Font = new System.Drawing.Font("Tahoma", 14.25F);
     this.nbgProduct.AppearanceBackground.Options.UseFont = true;
     this.nbgProduct.Caption = "PRODUCT";
     this.nbgProduct.Expanded = true;
     this.nbgProduct.ItemLinks.AddRange(new DevExpress.XtraNavBar.NavBarItemLink[] {
     new DevExpress.XtraNavBar.NavBarItemLink(this.nbiProduct001),
     new DevExpress.XtraNavBar.NavBarItemLink(this.nbiProduct002)});
     this.nbgProduct.Name = "nbgProduct";
     //
     // nbiProduct001
     //
     this.nbiProduct001.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.nbiProduct001.Appearance.Options.UseFont = true;
     this.nbiProduct001.Caption = "FITNESS PRODUCT";
     this.nbiProduct001.Name = "nbiProduct001";
     this.nbiProduct001.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nbiProduct001_LinkClicked);
     //
     // nbiProduct002
     //
     this.nbiProduct002.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.nbiProduct002.Appearance.Options.UseFont = true;
     this.nbiProduct002.Caption = "SPA PRODUCT";
     this.nbiProduct002.Name = "nbiProduct002";
     this.nbiProduct002.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nbiProduct002_LinkClicked);
     //
     // nbgMiscellaneous
     //
     this.nbgMiscellaneous.Appearance.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.nbgMiscellaneous.Appearance.Options.UseFont = true;
     this.nbgMiscellaneous.Caption = "MISCELLANEOUS";
     this.nbgMiscellaneous.Expanded = true;
     this.nbgMiscellaneous.ItemLinks.AddRange(new DevExpress.XtraNavBar.NavBarItemLink[] {
     new DevExpress.XtraNavBar.NavBarItemLink(this.nbiMiscellaneous009),
     new DevExpress.XtraNavBar.NavBarItemLink(this.nbiMiscellaneous001),
     new DevExpress.XtraNavBar.NavBarItemLink(this.nbiMiscellaneous002),
     new DevExpress.XtraNavBar.NavBarItemLink(this.nbiMiscellaneous004),
     new DevExpress.XtraNavBar.NavBarItemLink(this.nbiMiscellaneous005),
     new DevExpress.XtraNavBar.NavBarItemLink(this.nbiMiscellaneous006),
     new DevExpress.XtraNavBar.NavBarItemLink(this.nbiMiscellaneous007),
     new DevExpress.XtraNavBar.NavBarItemLink(this.nbiMiscellaneous008),
     new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem1),
     new DevExpress.XtraNavBar.NavBarItemLink(this.navBarMaintainSpaGiro),
     new DevExpress.XtraNavBar.NavBarItemLink(this.navDeposit)});
     this.nbgMiscellaneous.Name = "nbgMiscellaneous";
     //
     // nbiMiscellaneous001
     //
     this.nbiMiscellaneous001.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.nbiMiscellaneous001.Appearance.Options.UseFont = true;
     this.nbiMiscellaneous001.Appearance.Options.UseTextOptions = true;
     this.nbiMiscellaneous001.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
     this.nbiMiscellaneous001.Caption = "COURSES & EVENTS";
     this.nbiMiscellaneous001.Name = "nbiMiscellaneous001";
     this.nbiMiscellaneous001.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nbiMiscellaneous001_LinkClicked);
     //
     // nbiMiscellaneous002
     //
     this.nbiMiscellaneous002.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.nbiMiscellaneous002.Appearance.Options.UseFont = true;
     this.nbiMiscellaneous002.Appearance.Options.UseTextOptions = true;
     this.nbiMiscellaneous002.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
     this.nbiMiscellaneous002.Caption = "LOCKER RENTAL";
     this.nbiMiscellaneous002.Name = "nbiMiscellaneous002";
     this.nbiMiscellaneous002.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nbiMiscellaneous002_LinkClicked);
     //
     // nbiMiscellaneous004
     //
     this.nbiMiscellaneous004.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.nbiMiscellaneous004.Appearance.Options.UseFont = true;
     this.nbiMiscellaneous004.Appearance.Options.UseTextOptions = true;
     this.nbiMiscellaneous004.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
     this.nbiMiscellaneous004.Caption = "FORGET CARD";
     this.nbiMiscellaneous004.Name = "nbiMiscellaneous004";
     this.nbiMiscellaneous004.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nbiMiscellaneous004_LinkClicked);
     //
     // nbiMiscellaneous005
     //
     this.nbiMiscellaneous005.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.nbiMiscellaneous005.Appearance.Options.UseFont = true;
     this.nbiMiscellaneous005.Appearance.Options.UseTextOptions = true;
     this.nbiMiscellaneous005.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
     this.nbiMiscellaneous005.Caption = "LOST CARD";
     this.nbiMiscellaneous005.Name = "nbiMiscellaneous005";
     this.nbiMiscellaneous005.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nbiMiscellaneous005_LinkClicked);
     //
     // nbiMiscellaneous006
     //
     this.nbiMiscellaneous006.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.nbiMiscellaneous006.Appearance.Options.UseFont = true;
     this.nbiMiscellaneous006.Appearance.Options.UseTextOptions = true;
     this.nbiMiscellaneous006.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
     this.nbiMiscellaneous006.Caption = "MINERAL WATER";
     this.nbiMiscellaneous006.Name = "nbiMiscellaneous006";
     this.nbiMiscellaneous006.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nbiMiscellaneous006_LinkClicked);
     //
     // nbiMiscellaneous007
     //
     this.nbiMiscellaneous007.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.nbiMiscellaneous007.Appearance.Options.UseFont = true;
     this.nbiMiscellaneous007.Appearance.Options.UseTextOptions = true;
     this.nbiMiscellaneous007.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
     this.nbiMiscellaneous007.Caption = "OTHERS";
     this.nbiMiscellaneous007.Name = "nbiMiscellaneous007";
     this.nbiMiscellaneous007.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nbiMiscellaneous007_LinkClicked);
     //
     // nbiMiscellaneous008
     //
     this.nbiMiscellaneous008.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.nbiMiscellaneous008.Appearance.Options.UseFont = true;
     this.nbiMiscellaneous008.Appearance.Options.UseTextOptions = true;
     this.nbiMiscellaneous008.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
     this.nbiMiscellaneous008.Caption = "PAY OUTSTANDING";
     this.nbiMiscellaneous008.Name = "nbiMiscellaneous008";
     this.nbiMiscellaneous008.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nbiMiscellaneous008_LinkClicked);
     //
     // nbiMiscellaneous009
     //
     this.nbiMiscellaneous009.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.nbiMiscellaneous009.Appearance.Options.UseFont = true;
     this.nbiMiscellaneous009.Appearance.Options.UseTextOptions = true;
     this.nbiMiscellaneous009.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
     this.nbiMiscellaneous009.Caption = "CASH VOUCHER";
     this.nbiMiscellaneous009.Name = "nbiMiscellaneous009";
     this.nbiMiscellaneous009.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nbiMiscellaneous009_LinkClicked);
     //
     // navBarItem1
     //
     this.navBarItem1.Caption = "MAINTAIN GIRO PKG";
     this.navBarItem1.Name = "navBarItem1";
     this.navBarItem1.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarItem1_LinkClicked);
     //
     // navBarMaintainSpaGiro
     //
     this.navBarMaintainSpaGiro.Caption = "MAINTAIN SPA GIRO";
     this.navBarMaintainSpaGiro.Name = "navBarMaintainSpaGiro";
     this.navBarMaintainSpaGiro.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarMaintainSpaGiro_LinkClicked);
     //
     // navDeposit
     //
     this.navDeposit.Caption = "DEPOSIT";
     this.navDeposit.Name = "navDeposit";
     this.navDeposit.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navDeposit_LinkClicked);
     //
     // pnlGrid
     //
     this.pnlGrid.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
     this.pnlGrid.Controls.Add(this.gridItem);
     this.pnlGrid.Dock = System.Windows.Forms.DockStyle.Fill;
     this.pnlGrid.Location = new System.Drawing.Point(0, 387);
     this.pnlGrid.Name = "pnlGrid";
     this.pnlGrid.Size = new System.Drawing.Size(1030, 355);
     this.pnlGrid.TabIndex = 1;
     //
     // gridItem
     //
     this.gridItem.EmbeddedNavigator.Buttons.Append.Visible = false;
     this.gridItem.EmbeddedNavigator.Buttons.CancelEdit.Visible = false;
     this.gridItem.EmbeddedNavigator.Buttons.Edit.Visible = false;
     this.gridItem.EmbeddedNavigator.Buttons.EndEdit.Visible = false;
     this.gridItem.EmbeddedNavigator.Buttons.Remove.Visible = false;
     this.gridItem.Location = new System.Drawing.Point(0, 0);
     this.gridItem.MainView = this.GridView1;
     this.gridItem.Name = "gridItem";
     this.gridItem.Size = new System.Drawing.Size(990, 269);
     this.gridItem.TabIndex = 40;
     this.gridItem.UseEmbeddedNavigator = true;
     this.gridItem.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
     this.GridView1});
     //
     // GridView1
     //
     this.GridView1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Simple;
     this.GridView1.ColumnPanelRowHeight = 25;
     this.GridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
     this.gridColumnStrCode,
     this.gridColumnDesc,
     this.gridColumnListPrice,
     this.gridColumn8,
     this.gridColumnQty,
     this.gridColumnDiscountCode,
     this.gridColumnDiscountAmt,
     this.gridColumnFreebieCode,
     this.gridColumnSubTotal,
     this.gridColumnExchange,
     this.gridColumnBillDiscount});
     this.GridView1.CustomizationFormBounds = new System.Drawing.Rectangle(322, 464, 208, 156);
     this.GridView1.GridControl = this.gridItem;
     this.GridView1.Name = "GridView1";
     this.GridView1.RowHeight = 25;
     //
     // gridColumnStrCode
     //
     this.gridColumnStrCode.Caption = "Code";
     this.gridColumnStrCode.FieldName = "strCode";
     this.gridColumnStrCode.Name = "gridColumnStrCode";
     this.gridColumnStrCode.OptionsColumn.AllowEdit = false;
     this.gridColumnStrCode.OptionsFilter.AllowFilter = false;
     this.gridColumnStrCode.Visible = true;
     this.gridColumnStrCode.VisibleIndex = 0;
     this.gridColumnStrCode.Width = 104;
     //
     // gridColumnDesc
     //
     this.gridColumnDesc.Caption = "Description";
     this.gridColumnDesc.FieldName = "strDescription";
     this.gridColumnDesc.Name = "gridColumnDesc";
     this.gridColumnDesc.OptionsColumn.AllowEdit = false;
     this.gridColumnDesc.OptionsFilter.AllowFilter = false;
     this.gridColumnDesc.Visible = true;
     this.gridColumnDesc.VisibleIndex = 1;
     this.gridColumnDesc.Width = 166;
     //
     // gridColumnListPrice
     //
     this.gridColumnListPrice.Caption = "List Price";
     this.gridColumnListPrice.DisplayFormat.FormatString = "n2";
     this.gridColumnListPrice.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
     this.gridColumnListPrice.FieldName = "mUnitPrice";
     this.gridColumnListPrice.Name = "gridColumnListPrice";
     this.gridColumnListPrice.OptionsColumn.AllowEdit = false;
     this.gridColumnListPrice.OptionsFilter.AllowFilter = false;
     this.gridColumnListPrice.Visible = true;
     this.gridColumnListPrice.VisibleIndex = 2;
     this.gridColumnListPrice.Width = 98;
     //
     // gridColumn8
     //
     this.gridColumn8.Caption = "Old Package Price";
     this.gridColumn8.FieldName = "OldPackagePrice";
     this.gridColumn8.Name = "gridColumn8";
     this.gridColumn8.Width = 101;
     //
     // gridColumnQty
     //
     this.gridColumnQty.Caption = "Quantity";
     this.gridColumnQty.FieldName = "nQuantity";
     this.gridColumnQty.Name = "gridColumnQty";
     this.gridColumnQty.OptionsFilter.AllowFilter = false;
     this.gridColumnQty.Visible = true;
     this.gridColumnQty.VisibleIndex = 3;
     this.gridColumnQty.Width = 58;
     //
     // gridColumnDiscountCode
     //
     this.gridColumnDiscountCode.Caption = "Discount Code";
     this.gridColumnDiscountCode.FieldName = "strDiscountCode";
     this.gridColumnDiscountCode.Name = "gridColumnDiscountCode";
     this.gridColumnDiscountCode.OptionsColumn.AllowEdit = false;
     this.gridColumnDiscountCode.OptionsFilter.AllowFilter = false;
     this.gridColumnDiscountCode.Visible = true;
     this.gridColumnDiscountCode.VisibleIndex = 4;
     this.gridColumnDiscountCode.Width = 82;
     //
     // gridColumnDiscountAmt
     //
     this.gridColumnDiscountAmt.Caption = "Discount Amt";
     this.gridColumnDiscountAmt.DisplayFormat.FormatString = "n2";
     this.gridColumnDiscountAmt.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
     this.gridColumnDiscountAmt.FieldName = "DiscountAmt";
     this.gridColumnDiscountAmt.Name = "gridColumnDiscountAmt";
     this.gridColumnDiscountAmt.OptionsColumn.AllowEdit = false;
     this.gridColumnDiscountAmt.OptionsFilter.AllowFilter = false;
     this.gridColumnDiscountAmt.Visible = true;
     this.gridColumnDiscountAmt.VisibleIndex = 5;
     this.gridColumnDiscountAmt.Width = 84;
     //
     // gridColumnFreebieCode
     //
     this.gridColumnFreebieCode.Caption = "Freebie Code";
     this.gridColumnFreebieCode.FieldName = "strFreebieCode";
     this.gridColumnFreebieCode.Name = "gridColumnFreebieCode";
     this.gridColumnFreebieCode.OptionsColumn.AllowEdit = false;
     this.gridColumnFreebieCode.OptionsFilter.AllowFilter = false;
     this.gridColumnFreebieCode.Visible = true;
     this.gridColumnFreebieCode.VisibleIndex = 6;
     this.gridColumnFreebieCode.Width = 108;
     //
     // gridColumnSubTotal
     //
     this.gridColumnSubTotal.Caption = "SubTotal";
     this.gridColumnSubTotal.DisplayFormat.FormatString = "n2";
     this.gridColumnSubTotal.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
     this.gridColumnSubTotal.FieldName = "mSubTotal";
     this.gridColumnSubTotal.Name = "gridColumnSubTotal";
     this.gridColumnSubTotal.OptionsColumn.AllowEdit = false;
     this.gridColumnSubTotal.OptionsFilter.AllowFilter = false;
     this.gridColumnSubTotal.Visible = true;
     this.gridColumnSubTotal.VisibleIndex = 7;
     this.gridColumnSubTotal.Width = 95;
     //
     // gridColumnExchange
     //
     this.gridColumnExchange.Caption = "Item Ref";
     this.gridColumnExchange.FieldName = "strReferenceNo";
     this.gridColumnExchange.Name = "gridColumnExchange";
     this.gridColumnExchange.OptionsFilter.AllowFilter = false;
     this.gridColumnExchange.Visible = true;
     this.gridColumnExchange.VisibleIndex = 8;
     this.gridColumnExchange.Width = 86;
     //
     // gridColumnBillDiscount
     //
     this.gridColumnBillDiscount.Caption = "Bill Ref";
     this.gridColumnBillDiscount.FieldName = "strBillReferenceNo";
     this.gridColumnBillDiscount.Name = "gridColumnBillDiscount";
     this.gridColumnBillDiscount.OptionsFilter.AllowFilter = false;
     this.gridColumnBillDiscount.Visible = true;
     this.gridColumnBillDiscount.VisibleIndex = 9;
     this.gridColumnBillDiscount.Width = 88;
     //
     // FormPOS2
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.AutoScroll = true;
     this.ClientSize = new System.Drawing.Size(1030, 742);
     this.Controls.Add(this.pnlGrid);
     this.Controls.Add(this.pnlTop);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.KeyPreview = true;
     this.MinimizeBox = false;
     this.Name = "FormPOS2";
     this.ShowInTaskbar = false;
     this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "ACMS POS";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FormPOS2_KeyDown);
     ((System.ComponentModel.ISupportInitialize)(this.pnlTop)).EndInit();
     this.pnlTop.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).EndInit();
     this.panelControl2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.GroupControl1)).EndInit();
     this.GroupControl1.ResumeLayout(false);
     this.GroupControl1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.GroupControl2)).EndInit();
     this.GroupControl2.ResumeLayout(false);
     this.GroupControl2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.groupControl6)).EndInit();
     this.groupControl6.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.groupControl5)).EndInit();
     this.groupControl5.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.groupControl4)).EndInit();
     this.groupControl4.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.groupControl3)).EndInit();
     this.groupControl3.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.pnlCtrlBarScanner)).EndInit();
     this.pnlCtrlBarScanner.ResumeLayout(false);
     this.pnlCtrlBarScanner.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.calcEditQty.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.txtScannedCode.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit();
     this.panelControl1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.pnlLeft)).EndInit();
     this.pnlLeft.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.NavBarControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pnlGrid)).EndInit();
     this.pnlGrid.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.gridItem)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.GridView1)).EndInit();
     this.ResumeLayout(false);
 }
 /// <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();
     this.navBarControl1 = new WindowsApplication1.MyNavBarControl();
     this.navBarGroup1   = new DevExpress.XtraNavBar.NavBarGroup();
     this.navBarItem4    = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarItem1    = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarItem2    = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarGroup2   = new DevExpress.XtraNavBar.NavBarGroup();
     this.navBarItem6    = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarItem5    = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarGroup3   = new DevExpress.XtraNavBar.NavBarGroup();
     this.navBarGroup4   = new DevExpress.XtraNavBar.NavBarGroup();
     this.navBarItem9    = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarItem7    = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarGroup5   = new DevExpress.XtraNavBar.NavBarGroup();
     this.navBarItem11   = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarItem8    = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarGroup6   = new DevExpress.XtraNavBar.NavBarGroup();
     this.navBarItem14   = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarItem12   = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarItem13   = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarItem15   = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarItem17   = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarItem16   = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarItem10   = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarGroup7   = new DevExpress.XtraNavBar.NavBarGroup();
     this.navBarGroup8   = new DevExpress.XtraNavBar.NavBarGroup();
     this.navBarGroup9   = new DevExpress.XtraNavBar.NavBarGroup();
     this.navBarItem19   = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarItem18   = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarItem3    = new DevExpress.XtraNavBar.NavBarItem();
     this.timer1         = new System.Windows.Forms.Timer(this.components);
     ((System.ComponentModel.ISupportInitialize)(this.navBarControl1)).BeginInit();
     this.SuspendLayout();
     //
     // navBarControl1
     //
     this.navBarControl1.ActiveGroup       = this.navBarGroup1;
     this.navBarControl1.AllowSelectedLink = true;
     this.navBarControl1.ContentButtonHint = null;
     this.navBarControl1.Groups.AddRange(new DevExpress.XtraNavBar.NavBarGroup[] {
         this.navBarGroup1,
         this.navBarGroup2,
         this.navBarGroup3,
         this.navBarGroup4,
         this.navBarGroup5,
         this.navBarGroup6,
         this.navBarGroup7,
         this.navBarGroup8,
         this.navBarGroup9
     });
     this.navBarControl1.Items.AddRange(new DevExpress.XtraNavBar.NavBarItem[] {
         this.navBarItem1,
         this.navBarItem2,
         this.navBarItem3,
         this.navBarItem4,
         this.navBarItem5,
         this.navBarItem6,
         this.navBarItem7,
         this.navBarItem8,
         this.navBarItem9,
         this.navBarItem10,
         this.navBarItem11,
         this.navBarItem12,
         this.navBarItem13,
         this.navBarItem14,
         this.navBarItem15,
         this.navBarItem16,
         this.navBarItem17,
         this.navBarItem18,
         this.navBarItem19
     });
     this.navBarControl1.Location = new System.Drawing.Point(64, 56);
     this.navBarControl1.Name     = "navBarControl1";
     this.navBarControl1.OptionsNavPane.ExpandedWidth = 200;
     this.navBarControl1.Size            = new System.Drawing.Size(200, 384);
     this.navBarControl1.TabIndex        = 6;
     this.navBarControl1.Text            = "navBarControl1";
     this.navBarControl1.CustomDrawLink += new DevExpress.XtraNavBar.ViewInfo.CustomDrawNavBarElementEventHandler(this.navBarControl1_CustomDrawLink);
     //
     // navBarGroup1
     //
     this.navBarGroup1.Caption  = "navBarGroup1";
     this.navBarGroup1.Expanded = true;
     this.navBarGroup1.ItemLinks.AddRange(new DevExpress.XtraNavBar.NavBarItemLink[] {
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem4),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem1),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem2)
     });
     this.navBarGroup1.Name = "navBarGroup1";
     //
     // navBarItem4
     //
     this.navBarItem4.Caption = "navBarItem4";
     this.navBarItem4.Name    = "navBarItem4";
     //
     // navBarItem1
     //
     this.navBarItem1.Caption = "navBarItem1";
     this.navBarItem1.Name    = "navBarItem1";
     //
     // navBarItem2
     //
     this.navBarItem2.Caption = "navBarItem2";
     this.navBarItem2.Name    = "navBarItem2";
     //
     // navBarGroup2
     //
     this.navBarGroup2.Caption  = "navBarGroup2";
     this.navBarGroup2.Expanded = true;
     this.navBarGroup2.ItemLinks.AddRange(new DevExpress.XtraNavBar.NavBarItemLink[] {
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem6),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem5)
     });
     this.navBarGroup2.Name = "navBarGroup2";
     //
     // navBarItem6
     //
     this.navBarItem6.Caption = "navBarItem6";
     this.navBarItem6.Name    = "navBarItem6";
     //
     // navBarItem5
     //
     this.navBarItem5.Caption = "navBarItem5";
     this.navBarItem5.Name    = "navBarItem5";
     //
     // navBarGroup3
     //
     this.navBarGroup3.Caption  = "navBarGroup3";
     this.navBarGroup3.Expanded = true;
     this.navBarGroup3.ItemLinks.AddRange(new DevExpress.XtraNavBar.NavBarItemLink[] {
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem6),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem6)
     });
     this.navBarGroup3.Name = "navBarGroup3";
     //
     // navBarGroup4
     //
     this.navBarGroup4.Caption  = "navBarGroup4";
     this.navBarGroup4.Expanded = true;
     this.navBarGroup4.ItemLinks.AddRange(new DevExpress.XtraNavBar.NavBarItemLink[] {
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem9),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem7)
     });
     this.navBarGroup4.Name = "navBarGroup4";
     //
     // navBarItem9
     //
     this.navBarItem9.Caption = "navBarItem9";
     this.navBarItem9.Name    = "navBarItem9";
     //
     // navBarItem7
     //
     this.navBarItem7.Caption = "navBarItem7";
     this.navBarItem7.Name    = "navBarItem7";
     //
     // navBarGroup5
     //
     this.navBarGroup5.Caption  = "navBarGroup5";
     this.navBarGroup5.Expanded = true;
     this.navBarGroup5.ItemLinks.AddRange(new DevExpress.XtraNavBar.NavBarItemLink[] {
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem11),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem8)
     });
     this.navBarGroup5.Name = "navBarGroup5";
     //
     // navBarItem11
     //
     this.navBarItem11.Caption = "navBarItem11";
     this.navBarItem11.Name    = "navBarItem11";
     //
     // navBarItem8
     //
     this.navBarItem8.Caption = "navBarItem8";
     this.navBarItem8.Name    = "navBarItem8";
     //
     // navBarGroup6
     //
     this.navBarGroup6.Caption  = "navBarGroup6";
     this.navBarGroup6.Expanded = true;
     this.navBarGroup6.ItemLinks.AddRange(new DevExpress.XtraNavBar.NavBarItemLink[] {
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem14),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem12),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem13),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem15),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem15),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem17),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem15),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem16),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem16),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem17),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem15),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem13),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem10)
     });
     this.navBarGroup6.Name = "navBarGroup6";
     this.navBarGroup6.SelectedLinkIndex = 0;
     //
     // navBarItem14
     //
     this.navBarItem14.Caption = "navBarItem14";
     this.navBarItem14.Name    = "navBarItem14";
     //
     // navBarItem12
     //
     this.navBarItem12.Caption = "navBarItem12";
     this.navBarItem12.Name    = "navBarItem12";
     //
     // navBarItem13
     //
     this.navBarItem13.Caption = "navBarItem13";
     this.navBarItem13.Name    = "navBarItem13";
     //
     // navBarItem15
     //
     this.navBarItem15.Caption = "navBarItem15";
     this.navBarItem15.Name    = "navBarItem15";
     //
     // navBarItem17
     //
     this.navBarItem17.Caption = "navBarItem17";
     this.navBarItem17.Name    = "navBarItem17";
     //
     // navBarItem16
     //
     this.navBarItem16.Caption = "navBarItem16";
     this.navBarItem16.Name    = "navBarItem16";
     //
     // navBarItem10
     //
     this.navBarItem10.Caption = "navBarItem10";
     this.navBarItem10.Name    = "navBarItem10";
     //
     // navBarGroup7
     //
     this.navBarGroup7.Caption  = "navBarGroup7";
     this.navBarGroup7.Expanded = true;
     this.navBarGroup7.ItemLinks.AddRange(new DevExpress.XtraNavBar.NavBarItemLink[] {
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem16),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem13)
     });
     this.navBarGroup7.Name = "navBarGroup7";
     //
     // navBarGroup8
     //
     this.navBarGroup8.Caption  = "navBarGroup8";
     this.navBarGroup8.Expanded = true;
     this.navBarGroup8.ItemLinks.AddRange(new DevExpress.XtraNavBar.NavBarItemLink[] {
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem17),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem16)
     });
     this.navBarGroup8.Name = "navBarGroup8";
     //
     // navBarGroup9
     //
     this.navBarGroup9.Caption  = "navBarGroup9";
     this.navBarGroup9.Expanded = true;
     this.navBarGroup9.ItemLinks.AddRange(new DevExpress.XtraNavBar.NavBarItemLink[] {
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem19),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem18),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem17)
     });
     this.navBarGroup9.Name = "navBarGroup9";
     //
     // navBarItem19
     //
     this.navBarItem19.Caption = "navBarItem19";
     this.navBarItem19.Name    = "navBarItem19";
     //
     // navBarItem18
     //
     this.navBarItem18.Caption = "navBarItem18";
     this.navBarItem18.Name    = "navBarItem18";
     //
     // navBarItem3
     //
     this.navBarItem3.Caption = "navBarItem3";
     this.navBarItem3.Name    = "navBarItem3";
     //
     // timer1
     //
     this.timer1.Enabled = true;
     this.timer1.Tick   += new System.EventHandler(this.timer1_Tick);
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(832, 510);
     this.Controls.Add(this.navBarControl1);
     this.Name = "Form1";
     this.Text = "Form1";
     ((System.ComponentModel.ISupportInitialize)(this.navBarControl1)).EndInit();
     this.ResumeLayout(false);
 }
 public void CreateNewNavBarItem(int i_damper, navbarItemDamperClass _navBarItemDamper, NavBarControl _navBarControl2, DevExpress.XtraNavBar.NavBarGroup _navBarGroupDamper)
 {
     #region Creating a new navBarItem and adding to the Damper Group
     navbarItemDamperClass temp_navBarItemDamper = _navBarItemDamper;
     navBarItemDamper.Insert(i_damper, temp_navBarItemDamper);
     _navBarControl2.Items.Add(navBarItemDamper[i_damper]);
     navBarItemDamper[i_damper].Name    = "Damper " + Convert.ToString(Damper.DamperCounter + 1);
     navBarItemDamper[i_damper].Caption = "Damper " + Convert.ToString(Damper.DamperCounter + 1);
     _navBarGroupDamper.ItemLinks.Add(navBarItemDamper[i_damper]);
     #endregion
 }
 public void CreateNewNavBarItem(int i__tire, navBarItemTireClass _navBarItemTire, NavBarControl _navBarControl2, DevExpress.XtraNavBar.NavBarGroup _navBarGroupTireStiffness)
 {
     #region Creating a new NavBarItem and adding it the Tire Group
     navBarItemTireClass temp_navBarItemTire = _navBarItemTire;
     navBarItemTire.Insert(i__tire, temp_navBarItemTire);
     _navBarControl2.Items.Add(navBarItemTire[i__tire]);
     navBarItemTire[i__tire].Name    = "Tire " + Convert.ToString(Tire.TireCounter + 1);
     navBarItemTire[i__tire].Caption = "Tire " + Convert.ToString(Tire.TireCounter + 1);
     _navBarGroupTireStiffness.ItemLinks.Add(navBarItemTire[i__tire]);
     #endregion
 }
Beispiel #27
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="pBarGroup"></param>
        /// <param name="isNew">Solo indica si pBarGroup es nuevo para _MenuBar </param>
        /// <returns></returns>
        public DevExpress.XtraNavBar.NavBarGroup Add_BarGroup(BarGroup pBarGroup, bool isNew)
        {
            DevExpress.XtraNavBar.NavBarGroup navBarGroup = new DevExpress.XtraNavBar.NavBarGroup();
            if (isNew)
                _MenuBar.Add(pBarGroup);

            if (isNew)
                pBarGroup.Index = _MenuBar.Count-1;
            this.Groups.Add(navBarGroup);

            navBarGroup.Tag = pBarGroup;
            navBarGroup.Caption = pBarGroup.Caption;
            navBarGroup.GroupStyle = pBarGroup.GroupStyle;
          

            if (pBarGroup.Image == null)
                navBarGroup.SmallImage = null;
            else
                navBarGroup.SmallImage = new Bitmap(new MemoryStream(pBarGroup.Image));


            this.ActiveGroup = navBarGroup;
           
            if (pBarGroup.ContainTree)
            {
                if (pBarGroup.MenuBarTree != null)
                    Cretate_UC_TreeNavBar(navBarGroup);
            }
            else
            {
                if (pBarGroup.Buttons != null)
                    Cretate_ButtonBases(navBarGroup);
            }

            return navBarGroup;
        }
Beispiel #28
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();
     this.navBarControl1 = new DevExpress.XtraNavBar.NavBarControl();
     this.navBarGroup1   = new DevExpress.XtraNavBar.NavBarGroup();
     this.navBarItem10   = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarGroupControlContainer1 = new DevExpress.XtraNavBar.NavBarGroupControlContainer();
     this.panel1               = new System.Windows.Forms.Panel();
     this.navBarGroup2         = new DevExpress.XtraNavBar.NavBarGroup();
     this.navBarItem5          = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarItem6          = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarItem7          = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarItem8          = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarItem9          = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarItem11         = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarGroup3         = new DevExpress.XtraNavBar.NavBarGroup();
     this.navBarItem1          = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarItem2          = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarItem3          = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarItem4          = new DevExpress.XtraNavBar.NavBarItem();
     this.barManager1          = new DevExpress.XtraBars.BarManager(this.components);
     this.barDockControlTop    = new DevExpress.XtraBars.BarDockControl();
     this.barDockControlBottom = new DevExpress.XtraBars.BarDockControl();
     this.barDockControlLeft   = new DevExpress.XtraBars.BarDockControl();
     this.barDockControlRight  = new DevExpress.XtraBars.BarDockControl();
     this.bar1                = new DevExpress.XtraBars.Bar();
     this.bar2                = new DevExpress.XtraBars.Bar();
     this.bar3                = new DevExpress.XtraBars.Bar();
     this.skinBarSubItem1     = new DevExpress.XtraBars.SkinBarSubItem();
     this.defaultLookAndFeel1 = new DevExpress.LookAndFeel.DefaultLookAndFeel(this.components);
     ((System.ComponentModel.ISupportInitialize)(this.navBarControl1)).BeginInit();
     this.navBarControl1.SuspendLayout();
     this.navBarGroupControlContainer1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.barManager1)).BeginInit();
     this.SuspendLayout();
     //
     // navBarControl1
     //
     this.navBarControl1.ActiveGroup       = this.navBarGroup1;
     this.navBarControl1.ContentButtonHint = null;
     this.navBarControl1.Controls.Add(this.navBarGroupControlContainer1);
     this.navBarControl1.Dock = System.Windows.Forms.DockStyle.Right;
     this.navBarControl1.Groups.AddRange(new DevExpress.XtraNavBar.NavBarGroup[] {
         this.navBarGroup1,
         this.navBarGroup2,
         this.navBarGroup3
     });
     this.navBarControl1.Items.AddRange(new DevExpress.XtraNavBar.NavBarItem[] {
         this.navBarItem1,
         this.navBarItem2,
         this.navBarItem3,
         this.navBarItem4,
         this.navBarItem5,
         this.navBarItem6,
         this.navBarItem7,
         this.navBarItem8,
         this.navBarItem9,
         this.navBarItem10,
         this.navBarItem11
     });
     this.navBarControl1.Location             = new System.Drawing.Point(344, 49);
     this.navBarControl1.LookAndFeel.SkinName = "Liquid Sky";
     this.navBarControl1.Name = "navBarControl1";
     this.navBarControl1.OptionsNavPane.ExpandedWidth = 280;
     this.navBarControl1.Size     = new System.Drawing.Size(280, 302);
     this.navBarControl1.TabIndex = 0;
     this.navBarControl1.Text     = "navBarControl1";
     //
     // navBarGroup1
     //
     this.navBarGroup1.Caption  = "navBarGroup1";
     this.navBarGroup1.Expanded = true;
     this.navBarGroup1.ItemLinks.AddRange(new DevExpress.XtraNavBar.NavBarItemLink[] {
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem10)
     });
     this.navBarGroup1.Name = "navBarGroup1";
     //
     // navBarItem10
     //
     this.navBarItem10.Caption = "navBarItem10";
     this.navBarItem10.Name    = "navBarItem10";
     //
     // navBarGroupControlContainer1
     //
     // this.navBarGroupControlContainer1.Appearance.ForeColor = System.Drawing.Color.Transparent;
     // this.navBarGroupControlContainer1.Appearance.Options.UseForeColor = true;
     this.navBarGroupControlContainer1.Controls.Add(this.panel1);
     this.navBarGroupControlContainer1.Name     = "navBarGroupControlContainer1";
     this.navBarGroupControlContainer1.Size     = new System.Drawing.Size(272, 76);
     this.navBarGroupControlContainer1.TabIndex = 2;
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.Color.Red;
     this.panel1.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.panel1.ForeColor = System.Drawing.Color.Transparent;
     this.panel1.Location  = new System.Drawing.Point(0, 0);
     this.panel1.Name      = "panel1";
     this.panel1.Size      = new System.Drawing.Size(272, 76);
     this.panel1.TabIndex  = 0;
     //
     // navBarGroup2
     //
     this.navBarGroup2.Caption  = "navBarGroup2";
     this.navBarGroup2.Expanded = true;
     this.navBarGroup2.ItemLinks.AddRange(new DevExpress.XtraNavBar.NavBarItemLink[] {
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem5),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem6),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem7),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem8),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem9),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem11)
     });
     this.navBarGroup2.Name = "navBarGroup2";
     //
     // navBarItem5
     //
     this.navBarItem5.Caption = "navBarItem5";
     this.navBarItem5.Name    = "navBarItem5";
     //
     // navBarItem6
     //
     this.navBarItem6.Caption = "navBarItem6";
     this.navBarItem6.Name    = "navBarItem6";
     //
     // navBarItem7
     //
     this.navBarItem7.Caption = "navBarItem7";
     this.navBarItem7.Name    = "navBarItem7";
     //
     // navBarItem8
     //
     this.navBarItem8.Caption = "navBarItem8";
     this.navBarItem8.Name    = "navBarItem8";
     //
     // navBarItem9
     //
     this.navBarItem9.Caption = "navBarItem9";
     this.navBarItem9.Name    = "navBarItem9";
     //
     // navBarItem11
     //
     this.navBarItem11.Caption = "navBarItem11";
     this.navBarItem11.Name    = "navBarItem11";
     //
     // navBarGroup3
     //
     this.navBarGroup3.Caption           = "navBarGroup3";
     this.navBarGroup3.ControlContainer  = this.navBarGroupControlContainer1;
     this.navBarGroup3.Expanded          = true;
     this.navBarGroup3.GroupClientHeight = 80;
     this.navBarGroup3.GroupStyle        = DevExpress.XtraNavBar.NavBarGroupStyle.ControlContainer;
     this.navBarGroup3.ItemLinks.AddRange(new DevExpress.XtraNavBar.NavBarItemLink[] {
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem1),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem2),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem3),
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem4)
     });
     this.navBarGroup3.Name = "navBarGroup3";
     this.navBarGroup3.CalcGroupClientHeight += new DevExpress.XtraNavBar.NavBarCalcGroupClientHeightEventHandler(this.navBarGroup3_CalcGroupClientHeight);
     //
     // navBarItem1
     //
     this.navBarItem1.Caption = "navBarItem1";
     this.navBarItem1.Name    = "navBarItem1";
     //
     // navBarItem2
     //
     this.navBarItem2.Caption = "navBarItem2";
     this.navBarItem2.Name    = "navBarItem2";
     //
     // navBarItem3
     //
     this.navBarItem3.Caption = "navBarItem3";
     this.navBarItem3.Name    = "navBarItem3";
     //
     // navBarItem4
     //
     this.navBarItem4.Caption = "navBarItem4";
     this.navBarItem4.Name    = "navBarItem4";
     //
     // barManager1
     //
     this.barManager1.Bars.AddRange(new DevExpress.XtraBars.Bar[] {
         this.bar1,
         this.bar2,
         this.bar3
     });
     this.barManager1.DockControls.Add(this.barDockControlTop);
     this.barManager1.DockControls.Add(this.barDockControlBottom);
     this.barManager1.DockControls.Add(this.barDockControlLeft);
     this.barManager1.DockControls.Add(this.barDockControlRight);
     this.barManager1.Form = this;
     this.barManager1.Items.AddRange(new DevExpress.XtraBars.BarItem[] {
         this.skinBarSubItem1
     });
     this.barManager1.MainMenu  = this.bar2;
     this.barManager1.MaxItemId = 1;
     this.barManager1.StatusBar = this.bar3;
     //
     // barDockControlTop
     //
     this.barDockControlTop.CausesValidation = false;
     this.barDockControlTop.Dock             = System.Windows.Forms.DockStyle.Top;
     this.barDockControlTop.Location         = new System.Drawing.Point(0, 0);
     this.barDockControlTop.Size             = new System.Drawing.Size(624, 49);
     //
     // barDockControlBottom
     //
     this.barDockControlBottom.CausesValidation = false;
     this.barDockControlBottom.Dock             = System.Windows.Forms.DockStyle.Bottom;
     this.barDockControlBottom.Location         = new System.Drawing.Point(0, 351);
     this.barDockControlBottom.Size             = new System.Drawing.Size(624, 23);
     //
     // barDockControlLeft
     //
     this.barDockControlLeft.CausesValidation = false;
     this.barDockControlLeft.Dock             = System.Windows.Forms.DockStyle.Left;
     this.barDockControlLeft.Location         = new System.Drawing.Point(0, 49);
     this.barDockControlLeft.Size             = new System.Drawing.Size(0, 302);
     //
     // barDockControlRight
     //
     this.barDockControlRight.CausesValidation = false;
     this.barDockControlRight.Dock             = System.Windows.Forms.DockStyle.Right;
     this.barDockControlRight.Location         = new System.Drawing.Point(624, 49);
     this.barDockControlRight.Size             = new System.Drawing.Size(0, 302);
     //
     // bar1
     //
     this.bar1.BarName   = "Tools";
     this.bar1.DockCol   = 0;
     this.bar1.DockStyle = DevExpress.XtraBars.BarDockStyle.Top;
     this.bar1.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] {
         new DevExpress.XtraBars.LinkPersistInfo(this.skinBarSubItem1)
     });
     this.bar1.Text = "Tools";
     //
     // bar2
     //
     this.bar2.BarName                = "Main menu";
     this.bar2.DockCol                = 0;
     this.bar2.DockStyle              = DevExpress.XtraBars.BarDockStyle.Top;
     this.bar2.OptionsBar.MultiLine   = true;
     this.bar2.OptionsBar.UseWholeRow = true;
     this.bar2.Text = "Main menu";
     //
     // bar3
     //
     this.bar3.BarName      = "Status bar";
     this.bar3.CanDockStyle = DevExpress.XtraBars.BarCanDockStyle.Bottom;
     this.bar3.DockCol      = 0;
     this.bar3.DockStyle    = DevExpress.XtraBars.BarDockStyle.Bottom;
     this.bar3.OptionsBar.AllowQuickCustomization = false;
     this.bar3.OptionsBar.DrawDragBorder          = false;
     this.bar3.OptionsBar.UseWholeRow             = true;
     this.bar3.Text = "Status bar";
     //
     // skinBarSubItem1
     //
     this.skinBarSubItem1.Caption = "skinBarSubItem1";
     this.skinBarSubItem1.Id      = 0;
     this.skinBarSubItem1.Name    = "skinBarSubItem1";
     //
     // defaultLookAndFeel1
     //
     this.defaultLookAndFeel1.EnableBonusSkins = true;
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(624, 374);
     this.Controls.Add(this.navBarControl1);
     this.Controls.Add(this.barDockControlLeft);
     this.Controls.Add(this.barDockControlRight);
     this.Controls.Add(this.barDockControlBottom);
     this.Controls.Add(this.barDockControlTop);
     this.Name  = "Form1";
     this.Text  = "Form1";
     this.Load += new System.EventHandler(this.Form1_Load);
     ((System.ComponentModel.ISupportInitialize)(this.navBarControl1)).EndInit();
     this.navBarControl1.ResumeLayout(false);
     this.navBarGroupControlContainer1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.barManager1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Beispiel #29
0
        private void CreateMenu() {
            nbctSystem.Groups.Clear();
            nbctSystem.Items.Clear();

           

            string sqlwhere = string.Format("where (visiableflag='true' or parentid='0') and Description='{0}'  order by Sequence", xtdm);
            if (!string.IsNullOrEmpty(MainHelper.LoginName)) {

                sqlwhere = "where (visiableflag='true' or parentid='0') and Description='" + xtdm + "'" + "and Modu_ID in (select distinct modu_id from vusermodule where userid='" + MainHelper.User.UserID + "')" + "  order by Sequence ";

            }
            if(MainHelper.User.LoginID=="rabbit")
                sqlwhere = string.Format("where   Description='{0}'  order by Sequence", xtdm);
            IList<mModule> mlist = Ebada.Client.ClientHelper.PlatformSqlMap.GetList<mModule>(sqlwhere);

            DataTable table = progtable = Ebada.Core.ConvertHelper.ToDataTable((IList)mlist);

            DataRow[] Rows = table.Select(string.Format("ParentID='{0}'", "0"));

            foreach (DataRow row in Rows) {
                DevExpress.XtraNavBar.NavBarGroup nbg = new DevExpress.XtraNavBar.NavBarGroup();
                nbg.Name = row["ModuName"].ToString();
                nbg.Tag = Ebada.Core.ConvertHelper.RowToObject<mModule>(row);
                nbg.Caption = row["ModuName"].ToString();
                nbg.LargeImage = ((ImageList)nbctSystem.LargeImages).Images[row["IconName"].ToString()];

                DataRow[] Rows2 = table.Select(string.Format(" ParentID='{0}'", row["Modu_ID"].ToString()));
                foreach (DataRow row2 in Rows2) {
                    DevExpress.XtraNavBar.NavBarItem nbi = new DevExpress.XtraNavBar.NavBarItem();
                    nbi.Name = row2["ModuName"].ToString();
                    nbi.Tag = Ebada.Core.ConvertHelper.RowToObject<mModule>(row2);
                    nbi.Caption = row2["ModuName"].ToString();
                    nbi.SmallImage = ((ImageList)nbctSystem.SmallImages).Images[row2["IconName"].ToString()];
                    nbi.Hint = row["Sequence"].ToString();
                    nbctSystem.Items.Add(nbi);
                    nbg.ItemLinks.Add(nbi);
                }
                nbctSystem.Groups.Add(nbg);
                nbctSystem.Refresh();

            }
            if (nbctSystem.Groups.Count > 0 && nbctSystem.Groups[0].ItemLinks.Count > 0) {
                nbctSystem.Groups[0].ItemLinks[0].PerformClick();
                nbctSystem.Groups[0].SelectedLinkIndex = 0;
            }
        }
Beispiel #30
0
 public void CreateNewNarBarItem(int i_scfr, navBarItemSCFRClass _navBarItemSCFR, NavBarControl _navBarControl2, DevExpress.XtraNavBar.NavBarGroup _navBarGroupSuspensionFR)
 {
     #region Creating a new NavBarItem and adding it to the Suspension FR group
     navBarItemSCFRClass temp_navBarItemSCFR = _navBarItemSCFR;
     navBarItemSCFR.Insert(i_scfr, temp_navBarItemSCFR);
     _navBarControl2.Items.Add(navBarItemSCFR[i_scfr]);
     navBarItemSCFR[i_scfr].Name    = "Front Right Coordinates " + Convert.ToString(SuspensionCoordinatesFrontRight.SCFRCounter + 1);
     navBarItemSCFR[i_scfr].Caption = "Front Right Coordinates " + Convert.ToString(SuspensionCoordinatesFrontRight.SCFRCounter + 1);
     _navBarGroupSuspensionFR.ItemLinks.Add(navBarItemSCFR[i_scfr]);
     #endregion
 }
Beispiel #31
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.navBarControl1 = new DevExpress.XtraNavBar.NavBarControl();
     this.navBarGroup1   = new DevExpress.XtraNavBar.NavBarGroup();
     this.navBarItem1    = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarGroup2   = new DevExpress.XtraNavBar.NavBarGroup();
     this.navBarItem2    = new DevExpress.XtraNavBar.NavBarItem();
     ((System.ComponentModel.ISupportInitialize)(this.navBarControl1)).BeginInit();
     this.SuspendLayout();
     //
     // navBarControl1
     //
     this.navBarControl1.ActiveGroup = this.navBarGroup1;
     this.navBarControl1.Groups.AddRange(new DevExpress.XtraNavBar.NavBarGroup[] {
         this.navBarGroup1,
         this.navBarGroup2
     });
     this.navBarControl1.Items.AddRange(new DevExpress.XtraNavBar.NavBarItem[] {
         this.navBarItem1,
         this.navBarItem2
     });
     this.navBarControl1.Location = new System.Drawing.Point(16, 8);
     this.navBarControl1.Name     = "navBarControl1";
     this.navBarControl1.OptionsNavPane.ExpandedWidth = 168;
     this.navBarControl1.Size     = new System.Drawing.Size(168, 300);
     this.navBarControl1.TabIndex = 0;
     this.navBarControl1.Text     = "navBarControl1";
     this.navBarControl1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.navBarControl1_MouseUp);
     //
     // navBarGroup1
     //
     this.navBarGroup1.Caption = "navBarGroup1";
     this.navBarGroup1.ItemLinks.AddRange(new DevExpress.XtraNavBar.NavBarItemLink[] {
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem1)
     });
     this.navBarGroup1.Name = "navBarGroup1";
     //
     // navBarItem1
     //
     this.navBarItem1.Caption = "navBarItem1";
     this.navBarItem1.Name    = "navBarItem1";
     //
     // navBarGroup2
     //
     this.navBarGroup2.Caption = "navBarGroup2";
     this.navBarGroup2.ItemLinks.AddRange(new DevExpress.XtraNavBar.NavBarItemLink[] {
         new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem2)
     });
     this.navBarGroup2.Name = "navBarGroup2";
     //
     // navBarItem2
     //
     this.navBarItem2.Caption = "navBarItem2";
     this.navBarItem2.Name    = "navBarItem2";
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(312, 322);
     this.Controls.Add(this.navBarControl1);
     this.Name = "Form1";
     this.Text = "Which event to use when collapsing/expanding the groups in the NavBar\'s Explorer " +
                 "views?";
     ((System.ComponentModel.ISupportInitialize)(this.navBarControl1)).EndInit();
     this.ResumeLayout(false);
 }