Inheritance: ListBoxItem
        /// <summary>
        /// 构建插件单元
        /// </summary>
        /// <param name="caller">调用者</param>
        /// <param name="context">上下文,用于存放在构建时需要的组件</param>
        /// <param name="element">插件单元</param>
        /// <param name="subItems">被构建的子对象列表</param>
        /// <returns>构建好的插件单元</returns>
        public object BuildItem(object caller, WorkItem context, AddInElement element, ArrayList subItems)
        {
            if (element.Configuration.Attributes["label"] == null)
                throw new AddInException(String.Format("没有为类型为 \"{0}\" 的插件单元{1}提供label属性。",
                    element.ClassName, element.Id));

            string label = element.Configuration.Attributes["label"];
            NavBarItem item = new NavBarItem(BuilderUtility.GetStringRES(context, label));
            item.Name = element.Name;
            if (element.Configuration.Attributes["tooltip"] != null)
                item.Hint = element.Configuration.Attributes["tooltip"];

            if (element.Configuration.Attributes["largeimage"] != null) {
                string largeImage = element.Configuration.Attributes["largeimage"];
                item.LargeImage = BuilderUtility.GetBitmap(context, largeImage, 32, 32);
            }
            if (element.Configuration.Attributes["imagefile"] != null) {
                string image = element.Configuration.Attributes["imagefile"];
                item.SmallImage = BuilderUtility.GetBitmap(context, image, 16, 16);
            }

            if (!String.IsNullOrEmpty(element.Path) && context.UIExtensionSites.Contains(element.Path))
                context.UIExtensionSites[element.Path].Add(item);
            Command cmd = BuilderUtility.GetCommand(context, element.Command);
            if (cmd != null)
                cmd.AddInvoker(item, "LinkClicked");
            return item;
        }
 protected override void ONCREATE()
 {
     LBUS.getdata().ForEach(i =>
     {
         NavBarItem item = new NavBarItem(i.malop);
         item.LinkClicked += (o, e) => { lbmalop.Text = e.Link.Caption; };
         malop.ItemLinks.Add(item);
     });
     NGBUS.getdata().ForEach(i =>
     {
         NavBarItem item = new NavBarItem(i.manganh);
         item.LinkClicked += (o, e) => { lbmanganh.Text = e.Link.Caption; };
         manganh.ItemLinks.Add(item);
     });
     GBUS.getdata().ForEach(i =>
     {
         NavBarItem item = new NavBarItem(i.magv);
         item.LinkClicked += (o, e) => { lbmagv.Text = e.Link.Caption; };
         magiangvien.ItemLinks.Add(item);
     });
     CaBUS.getdata().ForEach(i =>
     {
         NavBarItem item = new NavBarItem(i.maca);
         item.LinkClicked += (o, e) => { lbmaca.Text = e.Link.Caption; };
         magiangvien.ItemLinks.Add(item);
     });
     (new HocphanBUS()).getdata().ForEach(i =>
     {
         NavBarItem item = new NavBarItem(i.mahp);
         item.LinkClicked += (o, e) => { lbmahp.Text = e.Link.Caption; };
         mahocphan.ItemLinks.Add(item);
     });
 }
Example #3
0
 protected override void OnClosing(CancelEventArgs e)
 {
     base.OnClosing(e);
     if(DialogResult == DialogResult.OK) {
         if(role == DialogRole.New) {
             navBar.BeginUpdate();
             NavBarGroup group = NavBarHelper.GetGroupByName(cbeGroup.Text, navBar);
             NavBarItem item = new NavBarItem(teCaption.Text);
             NavBarItemLink link = group.ItemLinks.Add(item);
             group.Expanded = true;
             item.Tag = ObjectHelper.GetCorrectUrl(heLink.Text);
             navBar.SelectedLink = link;
             navBar.EndUpdate();
         } else {
             CurrentItem.Caption = teCaption.Text;
             CurrentItem.Tag = ObjectHelper.GetCorrectUrl(heLink.Text);
             if(CurrentGroup.Caption != cbeGroup.Text) {
                 navBar.BeginUpdate();
                 NavBarGroup group = NavBarHelper.GetGroupByName(cbeGroup.Text, navBar);
                 group.Expanded = true;
                 NavBarItemLink link = group.ItemLinks.Add(CurrentItem);
                 CurrentGroup.ItemLinks.Remove(navBar.SelectedLink);
                 navBar.SelectedLink = link;
                 NavBarHelper.DeleteEmptyGroup(navBar);
                 navBar.EndUpdate();
             }
         }
     }
 }
Example #4
0
        /// <summary>
        /// 导航栏事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>j
        private void navBar_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            WaitDialogForm waitFrm = new WaitDialogForm(Constants.WAIT_LOAD_DATA);
            NavBarItem     nbItem  = (NavBarItem)sender;

            gcUserList.DataSource = null;
            seletedNavBar         = nbItem.Name;
            if (seletedNavBar == "nBAllUser")
            {
                groupControl2.Text = "所有员工信息列表";
                userList           = Alading.Business.UserService.GetAllUser();
            }
            else if (seletedNavBar == "nBNormalUser")
            {
                groupControl2.Text = "在职员工信息列表";
                int    s      = (int)Alading.Core.Enum.UserStatus.Normal;
                string status = s.ToString();
                userList = Alading.Business.UserService.GetUser(c => c.status == status);
            }
            else if (seletedNavBar == "nBFireUser")
            {
                groupControl2.Text = "离职员工信息列表";
                int    s      = (int)Alading.Core.Enum.UserStatus.Fire;
                string status = s.ToString();
                userList = Alading.Business.UserService.GetUser(c => c.status == status);
            }
            else if (seletedNavBar == "nBInactive")
            {
                groupControl2.Text = "未激活员工信息列表";
                int    s      = (int)Alading.Core.Enum.UserStatus.Inactive;
                string status = s.ToString();
                userList = Alading.Business.UserService.GetUser(c => c.status == status);
            }
            else if (seletedNavBar == "nBReeze")
            {
                groupControl2.Text = "冻结的员工信息列表";
                int    s      = (int)Alading.Core.Enum.UserStatus.Reeze;
                string status = s.ToString();
                userList = Alading.Business.UserService.GetUser(c => c.status == status);
            }

            gcUserList.DataSource = userList;

            if (userList.Count > 0)
            {
                selectedUser = userList[0];
                FillUserInfo(selectedUser);
                FillRoleTree();
            }
            else
            {
                selectedUser = null;
                ClearInfoField();
                ClearRoleTree();
            }

            waitFrm.Close();
        }
Example #5
0
        private void NaviBar_SelectedItem(NavBarItem item)
        {
            foreach (UserControl control in pagesToView)
            {
                control.Hide();
            }

            pagesToView[item.ID].Show();
        }
Example #6
0
        protected void Z80_Navigation1_SelectedItem(NavBarItem item)
        {
            foreach (UserControl control in pagesToView)
            {
                control.Hide();
            }

            pagesToView[item.ID].Show();
        }
 public frmThemNhom(NavBarItem CurrentBarItem,DataRow[] RowField,List<NavBarItem> ListItem,bool IsSuaNhom)
 {
     InitializeComponent();
     error = new DXErrorProvider();
     _CurrentBarItem = CurrentBarItem;
     _ListItem = ListItem;
     this._RowFiledNames = RowField;
     if (IsSuaNhom) this.Text = "Sửa thông tin nhóm";
 }
        static void pe_LoadCompleted(object sender, EventArgs e)
        {
            RepositoryItemPictureEdit pe = sender as RepositoryItemPictureEdit;
            NavBarItem item = pe.OwnerEdit.Tag as NavBarItem;

            item.SmallImage = ImageHelper.GetScaleImage(((PictureEdit)pe.OwnerEdit).Image, new Size(16, 16));
            pe.OwnerEdit.Dispose();
            pe.Dispose();
        }
        public ActionResult AdvancedCreate(string Tab)
        {
            NavBarItem navBarItem = GStoreDb.NavBarItems.Create();

            navBarItem.SetDefaultsForNew(CurrentStoreFrontOrThrow);
            NavBarItemEditAdminViewModel viewModel = new NavBarItemEditAdminViewModel(navBarItem, CurrentUserProfileOrThrow, Tab, isCreatePage: true);

            return(View("AdvancedCreate", viewModel));
        }
Example #10
0
 public void AddItem(NavBarItem item)
 {
     if (item.Controller == "")
     {
         sidebarID++;
         item.Controller = "idx-" + sidebarID.ToString();
     }
     Items.Add(item);
 }
        private void timerSwitch_Tick(object sender, EventArgs e)
        {
            if (sender is System.Windows.Forms.Timer)
            {
                System.Windows.Forms.Timer sendertimer = sender as System.Windows.Forms.Timer;
                sendertimer.Stop();
                ////if (!stopswitchtimer)
                {
                    switchDelay += sendertimer.Interval;
                    int inrerset = 10;

                    if (switchDelay >= inrerset * 1000)
                    {
                        if (navBarItemIndex <= 0)
                        {
                            navBarItemIndex = 0;
                        }
                        if (navBarItemIndex >= navBarControlMain.Items.Count)
                        {
                            navBarItemIndex = 0;
                        }
                        if (navBarControlMain.Items[navBarItemIndex] is NavBarItem)
                        {
                            try
                            {
                                //new Thread(new ParameterizedThreadStart(delegate (object threadObject)
                                //{
                                //    Thread.CurrentThread.IsBackground = true;
                                if (!this.Disposing && !this.IsDisposed)
                                {
                                    this.BeginInvoke(new MethodInvoker(delegate
                                    {
                                        if (navBarControlMain.Items.Count > navBarItemIndex)
                                        {
                                            NavBarItem navBarItem         = navBarControlMain.Items[navBarItemIndex];
                                            navBarControlMain.ActiveGroup = navBarItem.Links[0].Group;
                                            navBarControlMain.ActiveGroup.SelectedLink = navBarItem.Links[0]; //定位navBarItem
                                            navBarItem.Links[0].PerformClick();                               //触发navBarItem_LinkClicked
                                        }
                                    }));
                                }
                                //})).Start();
                            }
                            catch (Exception catchException)
                            {
                                throw (catchException);
                            }
                        }
                        navBarItemIndex++;
                        switchDelay = 0;
                    }
                    {
                        sendertimer.Start();
                    }
                }
            }
        }
Example #12
0
        /// <summary>
        /// Returns true if store front and client (parent record) are both active
        /// </summary>
        /// <param name="storeFront"></param>
        /// <returns></returns>
        public static bool IsActiveBubble(this NavBarItem navBarItem)
        {
            if (navBarItem == null)
            {
                throw new ArgumentNullException("navBarItem");
            }

            return(navBarItem.IsActiveDirect() && navBarItem.Client.IsActiveDirect());
        }
Example #13
0
        private void delete_freqNavBar_Click(object sender, RoutedEventArgs e)
        {
            FreqNavBar    objNavBar   = (FreqNavBar)this;
            NavBarItem    objNavItem  = (NavBarItem)objNavBar.Parent;
            NavBarGroup   objNavGroup = (NavBarGroup)objNavItem.Parent;
            NavBarControl nbc         = (NavBarControl)objNavGroup.Parent;

            nbc.Groups.Remove(objNavGroup);
        }
Example #14
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack && !CallBack.IsCallback)
            {
                NavBarItem parentItem = null;

                if (PrjPub.CurrentLoginUser == null)
                {
                    CallBack.RefreshInterval = 0;
                    return;
                }

                hfEmployeeID.Value = PrjPub.CurrentLoginUser.EmployeeID.ToString();

                foreach (FunctionRight functionRight in PrjPub.CurrentLoginUser.FunctionRights)
                {
                    if (PrjPub.IsWuhan())
                    {
                        if (functionRight.Function.FunctionID == "0406")
                        {
                            continue;
                        }
                    }
                    if (functionRight.Right == 0)
                    {
                        continue;
                    }

                    NavBarItem item = new NavBarItem();

                    item.Text     = functionRight.Function.MenuName;
                    item.Expanded = functionRight.Function.IsDefault;

                    if (functionRight.Function.FunctionID.Length == 2)
                    {
                        item.SelectedLookId       = "TopItemLook";
                        item.SubGroupCssClass     = "Level2Group";
                        item.DefaultSubItemLookId = "Level2ItemLook";

                        SystemMenu.Items.Add(item);
                        parentItem = item;
                    }
                    else
                    {
                        if (parentItem != null)
                        {
                            item.ClientSideCommand = "goToUrl('" + functionRight.Function.PageUrl + "');";
                            //item.NavigateUrl = functionRight.Function.PageUrl;
                            //item.Target = "ContentFrame";

                            parentItem.Items.Add(item);
                        }
                    }
                }
            }
        }
Example #15
0
        private NavBarItem CreateNavBarItem(MenuCommand command)
        {
            NavBarItem navBarItem = new NavBarItem();

            navBarItem.Caption = command.Text;

            //navBarItem.LinkClicked +=new NavBarLinkEventHandler(OnClickEvent(command));
            navBarItem.LinkClicked += (e, a) => OnClickEvent(command);
            return(navBarItem);
        }
Example #16
0
        private void navBarControl1_LinkClicked(object sender, NavBarLinkEventArgs e)
        {
            NavBarItem _item = e.Link.Item;

            this.label1.Text            = string.Format("[{0}] 数据审核", _item.Caption);
            this.navBarControl1.Enabled = false;
            this.sinoUC_CheckDataSearch1.InitModel(_item.Caption, _item.Tag.ToString());
            _oldItem = _item;
            RaiseMenuChanged();
        }
Example #17
0
        void AddNavBarItem(string name, string groupName, string link, NavBarControl navBar)
        {
            NavBarGroup group = NavBarHelper.GetGroupByName(groupName, navBar);
            NavBarItem  item  = new NavBarItem(name);

            NavBarHelper.SetNavBarItemImage(item, link);
            group.ItemLinks.Add(item);
            group.Expanded = true;
            item.Tag       = link;
        }
Example #18
0
 // 打开子窗体方法NavBarItem
 private void AddPageMdiNavBarItem(Form childForm, NavBarItem barItem)
 {
     childForm.MdiParent = this;
     // 子窗体的 Text  就是 Tab页中的标题 ,我这里是直接取 navItem中的标题作为 tab页的标题
     childForm.Text = barItem.Caption;
     //显示图标
     xtraTabbedMdiManager1.Pages[childForm].Image = barItem.ImageOptions.LargeImage;
     // 显示
     childForm.Show();
 }
Example #19
0
 /// <summary>
 /// 跟据菜单项创建NavBarItem
 /// </summary>
 /// <param name="navBar">NavBarControl</param>
 /// <param name="group">NavBarGroup</param>
 /// <param name="menuItem">ToolStripItem,当前菜单项</param>
 /// <param name="imageIndex">图片ID</param>
 /// <param name="isSubItem">是否子按钮(标记)</param>
 private void CreateLinkByMenu(NavBarControl navBar, NavBarGroup group,
                               ToolStripItem menuItem, int imageIndex, bool isSubItem)
 {
     if (menuItem.Enabled)
     {
         NavBarItem item = CreateNavBarItem(navBar, menuItem, isSubItem);
         item.SmallImageIndex = imageIndex;//Sub Function
         group.ItemLinks.Add(item);
     }
 }
Example #20
0
        private void BtnSet_Click(object sender, EventArgs e)
        {
            navBarControl1.Dock           = DockStyle.Right;
            navBarControl1.PaintStyleName = "SkinExplorerBarView";
            navBarControl1.SmallImages    = imageList1;
            NavBarItem separator = navBarControl1.Items.Add(true);

            //-----------------------------------------------------------------------------------
            NavBarGroup groupLocal = new NavBarGroup("Local");
            NavBarItem  itemInbox  = new NavBarItem("Inbox");

            itemInbox.SmallImageIndex = 0;
            NavBarItem itemOutbox = new NavBarItem("Outbox");

            itemOutbox.SmallImageIndex = 0;
            NavBarItem itemSentItems = new NavBarItem("Sent Items");

            itemSentItems.SmallImageIndex = 0;
            itemSentItems.Enabled         = false;
            //-----------------------------------------------------------------------------------
            NavBarGroup groupLocal2 = new NavBarGroup("Local2");
            NavBarItem  itemInbox2  = new NavBarItem("Inbox2");

            itemInbox2.SmallImageIndex = 0;
            NavBarItem itemOutbox2 = new NavBarItem("Outbox2");

            itemOutbox2.SmallImageIndex = 0;
            NavBarItem itemSentItems2 = new NavBarItem("Sent Items2");

            itemSentItems2.SmallImageIndex = 0;
            itemSentItems2.Enabled         = false;
            //-----------------------------------------------------------------------------------

            navBarControl1.BeginUpdate();
            navBarControl1.Groups.Add(groupLocal);
            groupLocal.ItemLinks.Add(itemInbox);
            groupLocal.ItemLinks.Add(separator);
            groupLocal.ItemLinks.Add(itemOutbox);
            groupLocal.ItemLinks.Add(separator);
            groupLocal.ItemLinks.Add(itemSentItems);
            groupLocal.Expanded = true;

            navBarControl1.Groups.Add(groupLocal2);
            groupLocal2.ItemLinks.Add(itemInbox2);
            groupLocal2.ItemLinks.Add(separator);
            groupLocal2.ItemLinks.Add(itemOutbox2);
            groupLocal2.ItemLinks.Add(separator);
            groupLocal2.ItemLinks.Add(itemSentItems2);
            groupLocal2.Expanded = true;

            navBarControl1.EndUpdate();
            // Specify the event handler which will be invoked when any link is clicked.
            navBarControl1.LinkClicked += new NavBarLinkEventHandler(navBar_LinkClicked);
        }
Example #21
0
        void item_LinkClicked(object sender, NavBarLinkEventArgs e)
        {
            NavBarItem Item = sender as NavBarItem;
            Selection  sele = Item.Tag as Selection;

            if (sele == null)
            {
                return;
            }
            ExecuteOpen(sele);
        }
Example #22
0
    protected void SetCustomSourceCodePanelWidth()
    {
        BasePage   owner        = (BasePage)Page;
        NavBarItem selectedItem = nbMenu.SelectedItem;
        Unit       customWidth  = owner.GetCustomSourceCodeWidth(selectedItem);

        if (!customWidth.IsEmpty)
        {
            pcSourceCode.Width = customWidth;
        }
    }
Example #23
0
        public void PopulateReportMenu()
        {
            DataTable ReportTable = new DataTable();

            DataColumn[] keys = new DataColumn[1];
            DataColumn   column;
            NavBarGroup  group;
            NavBarItem   item;

            try
            {
                //8/31/2015 NS added for VSPLUS-2111
                ReportsMenu.Groups.Clear();
                if (Request.QueryString["M"] != null)
                {
                    if (Request.QueryString["M"].ToString() == "C")
                    {
                        ReportTable = VSWebBL.DashboardBL.ReportBL.Ins.GetAllData(true, Request.QueryString["M"].ToString());
                    }
                    else
                    {
                        ReportTable = VSWebBL.DashboardBL.ReportBL.Ins.GetAllData(false, Request.QueryString["M"].ToString());
                    }
                    column  = ReportTable.Columns["ID"];
                    keys[0] = column;
                    ReportTable.PrimaryKey     = keys;
                    Session["ReportMenuItems"] = ReportTable;
                    DataRow[] NavigatorGroupRows = (DataRow[])((ReportTable.DefaultView.ToTable(true, "Category")).Select());
                    foreach (DataRow NGRow in NavigatorGroupRows)
                    {
                        DataRow[] NavigatorItemRows = ReportTable.Select("Category='" + NGRow["Category"] + "'");
                        // Create Group1
                        group = new NavBarGroup(NGRow[0].ToString(), NGRow[0].ToString());
                        // Set up items
                        foreach (DataRow NGItem in NavigatorItemRows)
                        {
                            //item = new NavBarItem(NGItem["Name"].ToString(), NGItem["Name"].ToString(), "", NGItem["PageURL"].ToString());
                            item             = new NavBarItem();
                            item.Text        = NGItem["Name"].ToString();
                            item.Name        = NGItem["Name"].ToString();
                            item.NavigateUrl = (NGItem["PageURL"].ToString()).Replace("..", "~");
                            group.Items.Add(item);
                        }
                        ReportsMenu.Groups.Add(group);
                    }
                }
            }
            catch (Exception ex)
            {
                //5/15/2014 NS modified for VSPLUS-634
                Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex);
                throw;
            }
        }
Example #24
0
        public static void CreateNavBarItem(this NavBarControl bar, DataTable dt, ImageCollection images)
        {
            try
            {
                if (dt == null || dt.Rows.Count == 0)
                {
                    return;
                }
                NavBarItem  navItem   = null;
                NavBarGroup navGroup  = null;
                var         groupName = String.Empty;

                bar.BeginUpdate();

                bar.Items.Clear();
                bar.Groups.Clear();

                foreach (DataRow dr in dt.Rows)
                {
                    if (Convert.ToInt32(dr["CHILD_COUNT"]) > 0)
                    {
                        groupName = string.Format("navGroup_{0}", dr["MNU_ID"]);
                        navGroup  = bar.GetNavBarGroup(groupName, dr["MNU_NM"].ToString());
                        if (images != null)
                        {
                            navGroup.SmallImage = images.Images[0];
                        }
                        navGroup.Visible = true;
                    }
                    else
                    {
                        groupName    = string.Format("navGroup_{0}", dr["PARENT_MNU_ID"]);
                        navGroup     = bar.GetNavBarGroup(groupName, dr["PARENT_MNU_NM"].ToString());
                        navItem      = new NavBarItem(dr["MNU_NM"].ToString());
                        navItem.Name = string.Format("navItem_{0}", dr["MNU_ID"]);
                        if (images != null)
                        {
                            navItem.SmallImage = images.Images[2];
                        }
                        navItem.Visible = true;
                        navItem.Enabled = true;
                        navItem.Tag     = dr["MNU_ID"];
                        navGroup.ItemLinks.Add(navItem);
                        bar.Items.Add(navItem);
                    }
                }
                bar.EndUpdate();
            }
            catch
            {
                throw;
            }
        }
Example #25
0
        /// <summary>
        /// 添加一个视频信息到视频列表
        /// </summary>
        /// <param name="videoName"></param>
        /// <param name="videoImage"></param>
        private void AddItemToNavBar(string videoName, Image videoImage)
        {
            NavBarItem navBarItem = new NavBarItem
            {
                Caption        = videoName,
                LargeImage     = videoImage,
                LargeImageSize = new Size(120, 90),
                Name           = "navBarItem" + videoName
            };

            navBarGroupVideos.ItemLinks.Add(navBarItem);
        }
Example #26
0
 public NavBarItemEditAdminViewModel(NavBarItem navBarItem, UserProfile userProfile)
 {
     if (userProfile == null)
     {
         throw new ArgumentNullException("userProfile");
     }
     if (navBarItem == null)
     {
         throw new ArgumentNullException("navBarItem", "Nav Bar Item cannot be null");
     }
     LoadValues(userProfile, navBarItem);
 }
Example #27
0
        /// <summary>
        ///  用户点击不同主菜单项,动态生成不同的其在菜单项目 比如点击停车场,将生成停车场下面所有的菜单项目
        /// </summary>
        /// <param name="tag"></param>
        /// <param name="id"></param>
        /// <param name="Name"></param>
        private void BarMenuClick(BarItem item)
        {
            if (null == item)
            {
                return;
            }
            string tag = Convert.ToString(item.Tag);
            string id  = basefun.valtag(tag, "id");

            if (string.IsNullOrEmpty(id))
            {
                return;
            }
            foreach (Form fr in this.MdiChildren)
            {
                fr.Close();
            }
            this.navSystemFun.Groups.Clear();
            DataRow[] drs = user.DsDeptRight.Tables[0].Select(string.Format("PID='{0}' and hide='false'", id));
            if (null == drs || drs.Length < 1)
            {
                return;
            }
            int picgrp  = -1;
            int picitem = -1;

            foreach (DataRow dr in drs)
            {
                picgrp++;
                string grpname = basefun.valtag(Convert.ToString(dr["ntag"]), "name");
                DevExpress.XtraNavBar.NavBarGroup group = new NavBarGroup();
                group.Appearance.Options.UseTextOptions           = true;
                group.Appearance.TextOptions.HAlignment           = DevExpress.Utils.HorzAlignment.Center;
                group.AppearanceBackground.Options.UseTextOptions = true;
                group.AppearanceBackground.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
                group.GroupStyle = DevExpress.XtraNavBar.NavBarGroupStyle.LargeIconsList;
                group.Caption    = grpname;
                group.Tag        = Convert.ToString(dr["id"]);
                group.LargeImage = this.imageGroup.Images[picgrp];
                DataRow[] drSunnode = user.DsDeptRight.Tables[0].Select(string.Format("PID='{0}' and hide='false'", group.Tag));
                foreach (DataRow drv in drSunnode)
                {
                    picitem++;
                    NavBarItem navitem = this.navSystemFun.Items.Add();
                    navitem.Caption      = Convert.ToString(drv["text"]);
                    navitem.Tag          = Convert.ToString(drv["ntag"]);
                    navitem.LargeImage   = this.imageItem.Images[picitem];
                    navitem.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(navBarItemLinkCliced);
                    group.ItemLinks.Add(navitem);
                }
                this.navSystemFun.Groups.Add(group);
            }
        }
 public NavBarItemEditAdminViewModel(NavBarItem navBarItem, UserProfile userProfile)
 {
     if (userProfile == null)
     {
         throw new ArgumentNullException("userProfile");
     }
     if (navBarItem == null)
     {
         throw new ArgumentNullException("navBarItem", "Nav Bar Item cannot be null");
     }
     LoadValues(userProfile, navBarItem);
 }
Example #29
0
        NavBarItemLink AddNavBarItem(NavBarGroup group, string caption, Image image, object data, Contact contact)
        {
            NavBarItem item = new NavBarItem(caption);

            item.SmallImage = image;
            item.Tag        = new NavBarData(data, contact);
            tasks.Add(item.Tag, data);
            NavBarItemLink link = group.ItemLinks.Add(item);

            item.LinkClicked += new NavBarLinkEventHandler(item_LinkClicked);
            return(link);
        }
Example #30
0
 private void LoadMenuItemDetails(MenuEntityItem itemParent, NavBarGroup menuItemParent)
 {
     List<MenuEntityItem> details = new MenuEntityItemLogic().GetAllByParent(itemParent.MenuEntityItemId);
     foreach (MenuEntityItem item in details)
     {
         NavBarItem menuItem = new NavBarItem();
         menuItem.Text = item.Name;
         if (!string.IsNullOrEmpty(item.PagePath) && item.PagePath != "#")
             menuItem.NavigateUrl = item.PagePath;
         menuItemParent.Items.Add(menuItem);
     }
 }
Example #31
0
        private void exportLink_Click(object sender, EventArgs e)
        {
            NavBarItem item = ((NavBarItem)sender);

            if (pivotGridLayoutItem.Visibility == LayoutVisibility.Always)
            {
                Export.ExportGridToFile(resultsPivotGrid, item.Tag.ToString());
            }
            else
            {
                Export.ExportGridToFile(resultsGrid, item.Tag.ToString());
            }
        }
Example #32
0
        void GeneraMenu(List <TBL_EPI_MODULO> olModulos)
        {
            int  codPadre = 0;
            Type formtype;

            List <TBL_EPI_MODULO> olMenuPadre = (from p in olModulos where p.EPI_INT_MODULOPADRE == codPadre select p).ToList();

            bool nieto = false;

            foreach (var item in olMenuPadre)
            {
                nbGroup         = new NavBarGroup();
                formtype        = asm.GetType(string.Format("EpiNet.Win.{0}", item.EPI_VCH_WINDOWSFORM));
                nbGroup.Caption = item.EPI_VCH_NOMBREMODULO;

                if (item.EPI_INT_IMAGENINDEX32X32 != null && item.EPI_INT_IMAGENINDEX32X32 > -1)
                {
                    nbGroup.LargeImage = imageCollection32x32.Images[Convert.ToInt32(item.EPI_INT_IMAGENINDEX32X32)];
                }

                //nbGroup.LargeImage = (Bitmap)(object)Properties.Resources.ResourceManager.GetObject(item.EPI_VCH_IMAGEN32x32 ?? "", CultureInfo.CurrentUICulture);
                nbGroup.Tag = new NavBarGroupTagObject(item.EPI_VCH_NOMBREMODULO, item.EPI_INT_IDMODULO, formtype);
                navBarControlMain.Groups.Add(nbGroup);

                nieto = tieneNieto(item.EPI_INT_IDMODULO, olModulos);

                if (nieto == true)
                {
                    TreeList tree = new TreeList();
                    nbGroup.GroupStyle        = NavBarGroupStyle.ControlContainer;
                    nbGroup.GroupClientHeight = 100;
                    //nbGroup.Expanded = true;
                    tree = new TreeList();
                    //tree.ShownEditor += ChildClick;

                    //tree.StateImageList = navbarImageCollection;
                    construyeTreeList(tree, item.EPI_INT_IDMODULO, olModulos);
                    tree.LookAndFeel.ActiveLookAndFeel.UseDefaultLookAndFeel = true;
                    nbGroup.ControlContainer.Controls.Add(tree);
                }
                else
                {
                    nbItem = new NavBarItem();

                    navBarControlMain.BeginUpdate();
                    //SubMenu(nbItem, item.id, olMenu);
                    SubMenu(nbItem, item.EPI_INT_IDMODULO, olModulos);
                    navBarControlMain.EndUpdate();
                }
            }
        }
Example #33
0
        //加载模块功能
        private void LoadModuleFunction(NavBarGroup CurrentGroup, BarSubItem CurrentBarItem, ModuleFunction fun)
        {
            if (CurrentGroup != null)
            {
                //添加功能到navBarControl1
                NavBarItem item = navBarControl1.Items.Add();
                item.Caption = fun.Caption;
                item.Tag     = fun.FunctionID;
                //item.SmallImage = FunSmallImage;
                //item.SmallImage = imageList1.Images["Forward"];
                item.SmallImage = Common.ImageLibrary.ResizeImage(fun.FormIcon, 16, 16);
                //item.SmallImage = Common.ImageLibrary.ResizeImage(fun.LoadFormEx().Icon.ToBitmap(), 16, 16);

                item.LinkClicked += item_LinkClicked;

                CurrentGroup.ItemLinks.Insert(0, item);

                if (fun.IsNew)
                {
                    item.Appearance.ForeColor = Color.FromArgb(0x99, 0x00, 0x33);
                    item.Appearance.Font      = new Font(CurrentGroup.Appearance.Font, FontStyle.Bold);
                }
            }
            if (CurrentBarItem != null)
            {
                //添加功能到bbi_Module
                var bbif = new DevExpress.XtraBars.BarButtonItem()
                {
                    Caption = fun.Caption,
                    Tag     = fun.FunctionID,
                    //Glyph = FunSmallImage
                    Glyph = imageList1.Images["Forward"]
                };
                //if (fun.IsNew)
                //{
                //    item.Appearance.ForeColor = Color.FromArgb(0x99, 0x00, 0x33);
                //    item.Appearance.Font = new Font(CurrentGroup.Appearance.Font, FontStyle.Bold);
                //}

                bbif.ItemClick += bbi_ItemClick;
                this.ribbonControl1.Items.Add(bbif);
                if (CurrentBarItem.ItemLinks.Count > 0)
                {
                    CurrentBarItem.InsertItem(CurrentBarItem.ItemLinks[0], bbif);
                }
                else
                {
                    CurrentBarItem.AddItem(bbif);
                }
            }
        }
Example #34
0
        private void AddSettingItem()
        {
            NavBarItem settingItem = new NavBarItem("更新");

            settingItem.LargeImage = ImageService.GetBitmap("download", new System.Drawing.Size(32, 32));
            settingItem.SmallImage = ImageService.GetBitmap("download", new System.Drawing.Size(16, 16));
            WorkItem.UIExtensionSites[UIExtensionSiteNames.Shell_UI_NaviPane_DefaultSetting].Add(settingItem);
            Command cmd = WorkItem.Commands[CommandHandlerNames.CMD_SHOWUPGRADESETTINGVIEW];

            if (cmd != null)
            {
                cmd.AddInvoker(settingItem, "LinkClicked");
            }
        }
Example #35
0
 //
 //Create NavBar Control
 void createNavBar()
 {
     foreach (Category c in cc.getList())
     {
         NavBarGroup group = new NavBarGroup(c.categoryName);
         foreach (Types t in td.getList(c.categoryID))
         {
             NavBarItem item = new NavBarItem(t.typeName);
             item.Tag = t.category.categoryID;
             group.ItemLinks.Add(item);
         }
         navBarControl.Groups.Add(group);
     }
 }
        private void NavigationPaneView_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            NavBarItem item = ((NavBarViewBase)sender).GetNavBarItem(e);

            if (item != null)
            {
                SpreadsheetExample example = item.Content as SpreadsheetExample;
                if (example != null)
                {
                    Action <SpreadsheetControl> action = example.Action;
                    action(spreadsheetControl1);
                }
            }
        }
        public NavBarItemEditAdminViewModel(NavBarItem navBarItem, UserProfile userProfile, string activeTab, bool isCreatePage = false, bool isSimpleCreatePage = false, bool isEditPage = false, bool isDetailsPage = false, bool isDeletePage = false, bool returnToManager = false)
        {
            if (userProfile == null)
            {
                throw new ArgumentNullException("userProfile");
            }
            if (navBarItem == null)
            {
                throw new ArgumentNullException("navBarItem", "Nav Bar Item cannot be null");
            }
            this.IsCreatePage = isCreatePage;
            this.IsSimpleCreatePage = isSimpleCreatePage;
            this.IsEditPage = isEditPage;
            this.IsDetailsPage = isDetailsPage;
            this.IsDeletePage = isDeletePage;
            this.ReturnToManager = returnToManager;

            LoadValues(userProfile, navBarItem);
        }
 private void barButtonItemDoiTenNhom_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (navBarControl1.SelectedLink != null)
     {
         try
         {
             Selected_NavBarItem = new NavBarItem();
             Selected_NavBarItem = navBarControl1.SelectedLink.Item;
             List<NavBarItem> ListItem = new List<NavBarItem>();
             foreach (NavBarItem item in navBarControl1.Items)
                 ListItem.Add(item);
             frmDoiTenNhom frm = new frmDoiTenNhom(ListItem);
             ProtocolForm.ShowModalDialog(this, frm);
             if (DALoaiDanhBa.New_Name != string.Empty)
             {
                 Selected_NavBarItem.Caption = DALoaiDanhBa.New_Name;
                 DALoaiDanhBa.Instance.RenameLoaiDanhBa(Selected_Loai_Danh_Ba, Selected_NavBarItem.Caption);
             }
         }
         catch (Exception ex)
         {
             PLException.AddException(ex);
         }
     }
     else
         PLMessageBox.ShowNotificationMessage("Vui lòng chọn nhóm cần đổi tên!");
 }
Example #39
0
 NavBarItemLink AddNavBarItem(NavBarGroup group, string caption, Image image, object data, Contact contact)
 {
     NavBarItem item = new NavBarItem(caption);
     item.SmallImage = image;
     item.Tag = new NavBarData(data, contact);
     tasks.Add(item.Tag, data);
     NavBarItemLink link = group.ItemLinks.Add(item);
     item.LinkClicked += new NavBarLinkEventHandler(item_LinkClicked);
     return link;
 }
Example #40
0
 public void Add(MenuItem item)
 {
     NavBarGroup parent = GetParent(item.Parent);
     NavBarItem button = new NavBarItem { Content = item.Title, Command = item.Command, Name = "bbi" + Regex.Replace(item.Title, "[^a-zA-Z0-9]", "") };
     parent.Items.Add(button);
 }
        protected void LoadValues(UserProfile userProfile, NavBarItem navBarItem)
        {
            if (navBarItem == null)
            {
                return;
            }
            this.IsActiveDirect = navBarItem.IsActiveDirect();
            this.IsActiveBubble = navBarItem.IsActiveBubble();

            this.Action = navBarItem.Action;
            this.ActionIdParam = navBarItem.ActionIdParam;
            this.Area = navBarItem.Area;
            this.Controller = navBarItem.Controller;
            this.Client = navBarItem.Client;
            this.ClientId = (navBarItem.Client == null ? 0 : navBarItem.ClientId);
            this.CreateDateTimeUtc = navBarItem.CreateDateTimeUtc;
            this.CreatedBy = navBarItem.CreatedBy;
            this.CreatedBy_UserProfileId = navBarItem.CreatedBy_UserProfileId;
            this.EndDateTimeUtc = navBarItem.EndDateTimeUtc;
            this.ForRegisteredOnly = navBarItem.ForRegisteredOnly;
            this.ForAnonymousOnly = navBarItem.ForAnonymousOnly;
            this.htmlAttributes = navBarItem.htmlAttributes;
            this.IsAction = navBarItem.IsAction;
            this.IsLocalHRef = navBarItem.IsLocalHRef;
            this.IsPage = navBarItem.IsPage;
            this.IsPending = navBarItem.IsPending;
            this.IsRemoteHRef = navBarItem.IsRemoteHRef;
            this.LocalHRef = navBarItem.LocalHRef;
            this.Name = navBarItem.Name;
            this.NavBarItemId = navBarItem.NavBarItemId;
            this.OpenInNewWindow = navBarItem.OpenInNewWindow;
            this.Order = navBarItem.Order;
            this.Page = navBarItem.Page;
            this.PageId = navBarItem.PageId;
            this.ParentNavBarItem = navBarItem.ParentNavBarItem;
            this.ParentNavBarItemId = navBarItem.ParentNavBarItemId;
            this.RemoteHRef = navBarItem.RemoteHRef;
            this.StartDateTimeUtc = navBarItem.StartDateTimeUtc;
            this.StoreFront = navBarItem.StoreFront;
            this.StoreFrontId = navBarItem.StoreFrontId;
            this.UpdateDateTimeUtc = navBarItem.UpdateDateTimeUtc;
            this.UpdatedBy = navBarItem.UpdatedBy;
            this.UpdatedBy_UserProfileId = navBarItem.UpdatedBy_UserProfileId;
            this.UseDividerAfterOnMenu = navBarItem.UseDividerAfterOnMenu;
            this.UseDividerBeforeOnMenu = navBarItem.UseDividerBeforeOnMenu;
        }
 public void UpdateParentNavBarItem(NavBarItem navBarItem)
 {
     this.ParentNavBarItem = navBarItem;
 }
        private void Add_Danh_Ba(long ID,string Name)
        {
            NavBarItem new_item = new NavBarItem();
            new_item.Caption = Name;
            new_item.Name = ID.ToString();
            new_item.SmallImage = imageList1.Images[0];
            new_item.LargeImage = imageList1.Images[0];

            navBarGroup1.ItemLinks.Add(new_item);
        }
Example #44
0
        private void CreatePlayerMenu(string playerID)
        {
            NavBarGroup group = new NavBarGroup(playerID) { Name = playerID };

            navBarControl1.Groups.Add(group);
            NavBarItem globalItem = new NavBarItem(Translations.TranslationGet("STR_OVERALL", "DE", "Overall")) { Tag = playerID };
            globalItem.LinkClicked += globalItem_LinkClicked;
            group.ItemLinks.Add(globalItem);

            NavBarItem tankItem = new NavBarItem(Translations.TranslationGet("STR_TANKS", "DE", "Tanks")) { Tag = playerID };
            tankItem.LinkClicked += tankItem_LinkClicked;
            group.ItemLinks.Add(tankItem);

            NavBarItem KillCountsItem = new NavBarItem(Translations.TranslationGet("STR_KILLCOUNTS", "DE", "Kill Counts")) { Tag = playerID };
            KillCountsItem.LinkClicked += KillCountsItem_LinkClicked;
            group.ItemLinks.Add(KillCountsItem);

            NavBarItem TankStatsItem = new NavBarItem(Translations.TranslationGet("STR_TANKINFO", "DE", "Tank Info")) { Name = "mnuTankInfo", Tag = playerID };
            TankStatsItem.LinkClicked += TankStatsItem_LinkClicked;
            group.ItemLinks.Add(TankStatsItem);

            NavBarItem KillSummaryItem = new NavBarItem(Translations.TranslationGet("STR_KILLSUMMARY", "DE", "Kill Summary")) { Tag = playerID };
            KillSummaryItem.LinkClicked += KillSummaryItem_LinkClicked;
            group.ItemLinks.Add(KillSummaryItem);

            NavBarItem CustomGroupingItem = new NavBarItem(Translations.TranslationGet("STR_CUSTGROUPINGS", "DE", "Custom Groupings")) { Tag = playerID };
            CustomGroupingItem.LinkClicked += CustomGroupingItem_LinkClicked;
            group.ItemLinks.Add(CustomGroupingItem);

            NavBarItem LastPlayedGamedItem = new NavBarItem(Translations.TranslationGet("STR_RECENTBATTLES", "DE", "Recent Battles")) { Tag = playerID };
            LastPlayedGamedItem.LinkClicked += LastPlayedGamedItem_LinkClicked;
            group.ItemLinks.Add(LastPlayedGamedItem);

            if (ApplicationSettings.AchievementReportVisible)
            {
                NavBarItem AchievementsItem = new NavBarItem(Translations.TranslationGet("STR_ACHIEVPROG", "DE", "Achievement Progress")) { Tag = playerID };
                AchievementsItem.LinkClicked += AchievementsItem_LinkClicked;
                group.ItemLinks.Add(AchievementsItem);
            }

            NavBarItem ChartsItem = new NavBarItem(Translations.TranslationGet("STR_CHARTS", "DE", "Charts")) { Tag = playerID };
            ChartsItem.LinkClicked += ChartsItem_LinkClicked;
            group.ItemLinks.Add(ChartsItem);

            //NavBarItem zedChart = new NavBarItem(Translations.TranslationGet("STR_CHARTS1", "DE", "Zed Charts")) { Tag = playerID };
            //zedChart.LinkClicked += new NavBarLinkEventHandler(zedChartsItem_LinkClicked);
            //group.ItemLinks.Add(zedChart);
        }
Example #45
0
 protected override void OnSelectedItemChanged(NavBarItem oldItem, NavBarItem newItem)
 {
     base.OnSelectedItemChanged(oldItem, newItem);
     SetCurrentValue(CurrentItemProperty, newItem != null ? newItem.DataContext : null);
 }
Example #46
0
 /*  void FeedNavBar_LinkPressed(object sender, NavBarLinkEventArgs e) {
     Cursor.Current = Cursors.WaitCursor;
     try {
         partName = e.Link.Item.Caption;
         LoadFeedToGrid(GetFeed(e.Link.Item));
         UpdateCurrentRecord();
     } finally {
         Cursor.Current = Cursors.Default;
     }
 }*/
 void AddNavBarItem(string name, string groupName, string link, NavBarControl navBar)
 {
     NavBarGroup group = NavBarHelper.GetGroupByName(groupName, navBar);
     NavBarItem item = new NavBarItem(name);
     NavBarHelper.SetNavBarItemImage(item, link);
     group.ItemLinks.Add(item);
     group.Expanded = true;
     item.Tag = link;
 }
Example #47
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);
 }
        private void barButtonItemXoaNhom_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (PLMessageBox.ShowConfirmMessage("Xóa nhóm đang chọn?") == DialogResult.Yes)
            {
                if (navBarControl1.SelectedLink != null)
                {
                    try
                    {
                        if (DALoaiDanhBa.Instance.Delete(Selected_Loai_Danh_Ba))
                        {
                            Selected_NavBarItem = new NavBarItem();
                            Selected_NavBarItem = navBarControl1.SelectedLink.Item;
                            navBarControl1.Items.Remove(Selected_NavBarItem);
                            navBarGroup1.SelectedLinkIndex = -1;
                            barButtonItemThemNguoiLL.Enabled = false;
                            barButtonItemXoaNguoiLL.Enabled = false;
                            barButtonItemSuaNguoiLL.Enabled = false;
                            barButtonItemLuu.Enabled = false;
                            barButtonItemKhongLuu.Enabled = false;
                            barButtonItemIn.Enabled = false;
                        }

                        else
                            PLMessageBox.ShowNotificationMessage("Dữ liệu đang sử dụng nên không thể xóa!");
                    }
                    catch (Exception ex)
                    {
                        PLException.AddException(ex);
                    }
                }
                else
                    PLMessageBox.ShowNotificationMessage("Vui lòng chọn tên nhóm cần xóa!");
            }
        }
        public NavBarItem AddNaviBarItem(string extPath, string id, string text, string command, string imagefile, string largeimage)
        {
            Guard.ArgumentNotNull(extPath, "extPath");

            NavBarItem item = new NavBarItem(text);
            item.Name = id;
            if (!String.IsNullOrEmpty(imagefile))
                item.SmallImage = BuilderUtility.GetBitmap(WorkItem, imagefile, 16, 16);
            if (!String.IsNullOrEmpty(largeimage))
                item.LargeImage = BuilderUtility.GetBitmap(WorkItem, largeimage, 32, 32);
            Command cmd = BuilderUtility.GetCommand(WorkItem, command);
            if (cmd != null)
                cmd.AddInvoker(item, "LinkClicked");
            if (!String.IsNullOrEmpty(extPath) && WorkItem.UIExtensionSites.Contains(extPath))
                WorkItem.UIExtensionSites[extPath].Add(item);

            return item;
        }
Example #50
0
 private void InitNavGroupInvoice()
 {
     var uow = new UnitOfWork();
     var xp = new XPCollection<InvoiceType> {Session = uow};
     foreach (var t in xp)
     {
         var i = new NavBarItem();
         i.Tag = t;
         i.Caption = t.InvoiceTypeName;
         try
         {
             i.LargeImage = Image.FromFile(Application.StartupPath + @"\Images\" + t.InvoiceTypeName + ".png");
         }
         catch
         {
             EasyDialog.ShowErrorDialog("Không tìm thấy ảnh " + i.Caption);
         }
         if (t.BeginGroup)
         {
             var s = new NavBarSeparatorItem();
             navGroupInvoice.ItemLinks.Add(s);
         }
         navGroupInvoice.ItemLinks.Add(i);
     }
     navGroupInvoice.GroupStyle = NavBarGroupStyle.LargeIconsText;
     navBarControl1.SelectedLink = navGroupInvoice.ItemLinks[0];
     navGroupInvoice.ItemLinks[0].PerformClick();
 }
Example #51
0
        private void addModuleLinksToNavBarAndMenu()
        {
            navBar.Items.Clear();
            navBar.Groups.Clear();

            foreach (string category in Provider.UIMetaData.EditForms.OrderBy(f=>f.CategoryName).Select(f => f.CategoryName).Distinct())
            {
                BarSubItem menuFormCat = null;
                NavBarGroup navBarCat = null;

                foreach (EditFormAttribute editForm in Provider.UIMetaData.EditForms.Where(f => f.CategoryName == category).OrderBy(f=>f.DisplayName))
                {
                    if (string.IsNullOrEmpty(editForm.DisplayName))
                        continue;

                    if (!DMT.Provider.ClientUser.HasRight(editForm.RequiredRight))
                        continue;

                    if (menuFormCat == null)
                    {
                        menuFormCat = new BarSubItem();
                        barManager.Items.Add(menuFormCat);
                        menuCommands.LinksPersistInfo.Add(new LinkPersistInfo(menuFormCat));
                        menuFormCat.Caption = category;
                    }

                    BarButtonItem item = new BarButtonItem(barManager, editForm.DisplayName);
                    menuFormCat.LinksPersistInfo.Add(new LinkPersistInfo(item));
                    if(!string.IsNullOrEmpty(editForm.ImageKey))
                        item.Glyph = (Image)FamFamFam.ResourceManager.GetObject(editForm.ImageKey);
                    item.Tag = editForm;

                    if (navBarCat == null)
                    {
                        navBarCat = new NavBarGroup();
                        navBarCat.Caption = category;
                        navBar.Groups.Add(navBarCat);
                    }

                    NavBarItem item2 = new NavBarItem(editForm.DisplayName);
                    navBarCat.ItemLinks.Add(new NavBarItemLink(item2));
                    if (!string.IsNullOrEmpty(editForm.ImageKey))
                        item2.SmallImage = (Image)FamFamFam.ResourceManager.GetObject(editForm.ImageKey);
                    item2.Tag = editForm;

                    cmdMan.Commands.Add(
                        new Command
                            {
                                Execute = cmdOpenForm,
                                DisplayName = editForm.DisplayName,
                                Triggers = new List<CommandTrigger>{
                                       new CommandTrigger() {Control=item, Argument = editForm.FormType.FullName },
                                       new CommandTrigger() {Control=item2, Argument = editForm.FormType.FullName, Event="LinkClicked" }
                                   }
                            });
                }
            }
        }
Example #52
0
        private void bwLoadCategory_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            if (!_JSON_CATEGORY.success.Value)
            {
                MessageBox.Show(_JSON_CATEGORY.error, _JSON_CATEGORY.errorMessage, MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
            else
            {
                DataTable data = new DataTable();
                data.Columns.Add("Name", typeof(string));
                data.TableName = "Data-Category";

                _CATEGORY = new SortedDictionary<string, string>();
                navBarProduct.ItemLinks.Clear();
                NavBarItem item;
                for (int i = 0; i < _JSON_CATEGORY.result.Count; i++)
                {
                    item = new NavBarItem(_JSON_CATEGORY.result[i].name.Value);
                    item.SmallImage = global::PowerBackend.Properties.Resources.boproduct_16x16;
                    item.LinkClicked += new NavBarLinkEventHandler(navBarCategory_LinkClicked);
                    navBarProduct.ItemLinks.Add(item);
                    if (navBarProduct.ItemLinks.Count == 1)
                    {
                        _CATEGORY_SELECTED = _JSON_CATEGORY.result[i].name.Value;
                    }
                    data.Rows.Add(_JSON_CATEGORY.result[i].name.Value);
                    _CATEGORY.Add(_JSON_CATEGORY.result[i].category.Value, _JSON_CATEGORY.result[i].name.Value);
                    //category.Add(data.Value, data.Key);
                }
                Param.DataSet.Tables.Add(data);
                bwLoadProduct.RunWorkerAsync();
            }

            Util.SetComboboxDataSource(cbbCategory, Param.DataSet.Tables["Data-Category"], "Name");
            Util.SetComboboxDataSource(cbbBrand, Param.DataSet.Tables["Data-Brand"], "Name");
            Util.SetComboboxDataSource(cbbMadeIn, Param.DataSet.Tables["Data-makerCountry"], "Name");
            Util.SetOptionDataSource(cbbDevice, Param.DataSet.Tables["Data-device"], "Name");
            Util.SetOptionDataSource(cbbStandard, Param.DataSet.Tables["Data-standard"], "Name");
            Util.SetOptionDataSource(cbbLabel, Param.DataSet.Tables["Data-label"], "Name");
            Util.SetComboboxDataSource(cbbCapacity, Param.DataSet.Tables["Data-capacity"], "Name");
            Util.SetComboboxDataSource(cbbBatteryType, Param.DataSet.Tables["Data-batteryType"], "Name");

            Util.SetComboboxDataSource(cbbCapacity, Param.DataSet.Tables["Data-capacity"], "Name");
            Util.SetComboboxDataSource(cbbBatteryType, Param.DataSet.Tables["Data-batteryType"], "Name");
            /*
            navBarProduct.ItemLinks.Clear();
            NavBarItem item;
            SortedDictionary<string, string> category = new SortedDictionary<string, string>();
            foreach (var data in _CATEGORY)
            {
                item = new NavBarItem(data.Key);
                item.SmallImage = global::PowerBackend.Properties.Resources.boproduct_16x16;
                item.LinkClicked += new NavBarLinkEventHandler(navBarCategory_LinkClicked);
                navBarProduct.ItemLinks.Add(item);
                if (navBarProduct.ItemLinks.Count == 1)
                {
                    _CATEGORY_SELECTED = data.Key;
                }
                category.Add(data.Value, data.Key);
            }
            _CATEGORY = category;

            Util.SetComboboxDataSource(cbbBrand, Param.DataSet.Tables["Data-Brand"], "Name");

            */
        }
    void CreateHighlightedFeatures()
    {
        XmlDocument xmlDoc = BasePage.GetDemoXmlDocument(Page);

        int hfPosition = -1;
        if(xmlDoc.DocumentElement.Attributes["HighlightedFeaturesPosition"] == null ||
            !Int32.TryParse(xmlDoc.DocumentElement.Attributes["HighlightedFeaturesPosition"].Value, out hfPosition) ||
            hfPosition < 0) {
            return;
        }

        NavBarItem selectedItem = nbMenu.SelectedItem;

        NavBarGroup hfGroup = new NavBarGroup(HighlightedFeaturesName);
        BasePage owner = (BasePage)Page;
        List<NavBarItem> items = new List<NavBarItem>();
        SiteMapNode hfNode = null;
        UnboundSiteMapProvider provider = null;
        if(owner.IsSiteMapCreated) {
            provider = owner.SiteMapProvider;
            if(FindSiteMapNodeByTitle(provider, HighlightedFeaturesName) == null)
                hfNode = CreateHFSiteMapNode(provider, hfNode);
        }
        for(int i = 0; i < nbMenu.Groups.Count; i++) {
            for(int j = 0; j < nbMenu.Groups[i].Items.Count; j++) {
                if(!owner.IsHighlighted(nbMenu.Groups[i].Items[j])) continue;
                NavBarItem clone = new NavBarItem();
                clone.Text = nbMenu.Groups[i].Items[j].Text;
                clone.Name = nbMenu.Groups[i].Items[j].Name;
                clone.NavigateUrl = nbMenu.Groups[i].Items[j].NavigateUrl;

                if(GetUrl(clone.NavigateUrl).ToLower() == Request.AppRelativeCurrentExecutionFilePath.ToLower() &&
                        !string.IsNullOrEmpty(Request["Highlighted"])) {
                    selectedItem = clone;
                }

                items.Add(clone);
            }
        }
        for(int i = 0; i < items.Count - 1; i++)
            for(int j = i + 1; j < items.Count; j++) {
                if(owner.GetHighlightedIndex(items[j]) < owner.GetHighlightedIndex(items[i])) {
                    NavBarItem item = items[j];
                    items[j] = items[i];
                    items[i] = item;
                }
            }
        for(int i = 0; i < items.Count; i++) {
            items[i].NavigateUrl += (items[i].NavigateUrl.Contains("?") ? "&" : "?") + "Highlighted=True";
            hfGroup.Items.Add(items[i]);
            if(hfNode != null) {
                SiteMapNode node = provider.CreateNode(items[i].NavigateUrl, items[i].Text);
                provider.AddSiteMapNode(node, hfNode);
            }
        }
        if(hfPosition < nbMenu.Groups.Count)
            nbMenu.Groups.Insert(hfPosition, hfGroup);

        if(selectedItem != null) {
            selectedItem.Selected = true;
            selectedItem.Group.Expanded = true;
        }
        owner.EnsureSiteMapIsBound();
    }
Example #54
0
        private void ExamForm_Load(object sender, EventArgs e)
        {
            timer1 = new Timer();
            timer1.Tick += new EventHandler(timer1_Tick);
            timer1.Interval = 1000; // 1 second
            timer1.Start();
            panelControl1.Dock = DockStyle.Top;
            xtraTabControl1.Dock = DockStyle.Top;

            //List<Grouping> groups = DbController.GetInstance().GetGroups();
            List<Question> questions = DbController.GetInstance().GetQuestions();

            Random random = new Random();
            HashSet<int> numbers = new HashSet<int>();
            while (numbers.Count < g1Anwser)
            {
                numbers.Add(random.Next(0, questions.Count-1));
            }
            //Array ee = numbers.ToArray();
            //ee.GetValue(1);

            for (int i = g1Anwser-1; i >= 0; i--)
            {
                UcQuestion uc = new UcQuestion(i + 1, questions[Convert.ToInt32(numbers.ToArray().GetValue(i))]);
                uc.Dock = DockStyle.Top;
                uc.AutoSize = true;

                xtraTabPage1.Controls.Add(uc);
                group1_questions.Add(uc);

                NavBarItem item = new NavBarItem();
                item.Caption = "Асуулт "+(g1Anwser - i);
                item.Tag = i;
                navBarGroup1.ItemLinks.Add(item);
                group1_navbarItems.Add(item);
            }

            questions.Clear();

            //navBarItem1.Caption = groups[0].groupName;
            //navBarItem2.Caption = groups[1].groupName;
            //navBarItem3.Caption = groups[3].groupName;

            //List<General> generals = DbController.GetInstance().GetGenerals();
            //navBarItem1.Caption = generals[0].generalName;
            //navBarItem2.Caption = generals[1].generalName;
            //navBarItem3.Caption = generals[2].generalName;
            //navBarItem4.Caption = generals[3].generalName;
            //navBarItem1.Caption = "test";
        }
Example #55
0
 void ShowData(NavBarItem item)
 {
     currentKey = item.Tag;
     partName = item.Caption;
     gridControl1.DataSource = ((NavBarData)item.Tag).Data;
 }
Example #56
0
        private void FillCompare(WOTStats wsA, WOTStats wsB)
        {
            navBarControl3.Items.Clear();
            navBarControl3.Groups.Clear();

            navBarControl4.Items.Clear();
            navBarControl4.Groups.Clear();

            tankimage.ColorDepth = ColorDepth.Depth32Bit;
            tankimage.ImageSize = new Size(50, 24);

            NavBarGroup group = null;
            NavBarItem groupItem = null;
            foreach (Tank tank in wsA.tanks.OrderBy(y => y.CountryID).ThenByDescending(x => x.Tier))
            {
                try
                {
                    if (!tankimage.Images.ContainsKey(String.Format("{0}_{1}", tank.CountryID, tank.TankID)))
                        tankimage.Images.Add(String.Format("{0}_{1}", tank.CountryID, tank.TankID), Image.FromFile(String.Format(@"{0}", WOTHelper.GetImagePath(tank.CountryID + "_" + tank.TankID + "_Large.png"))));

                    if (!tankimage.Images.ContainsKey(String.Format("{0}", tank.CountryID)))
                        tankimage.Images.Add(String.Format("{0}", tank.CountryID), Image.FromFile(String.Format(@"{0}\Images\Countries\{1}.png", WOTHelper.GetEXEPath(), tank.CountryID)));
                }
                catch
                { }

                if (group == null)
                {
                    group = new NavBarGroup(tank.Country_Description);
                    group.Name = "group_" + tank.CountryID;

                    if (tankimage.Images[String.Format("{0}", tank.CountryID)] != null)
                        group.SmallImage = tankimage.Images[String.Format("{0}", tank.CountryID)];

                    navBarControl3.Groups.Add(group);
                }

                if (group.Name != "group_" + tank.CountryID)
                {
                    group = new NavBarGroup(tank.Country_Description);
                    group.Name = "group_" + tank.CountryID;
                    group.SmallImage = tankimage.Images[String.Format("{0}", tank.CountryID)];
                    navBarControl3.Groups.Add(group);
                    groupItem = new NavBarItem(tank.Tank_Description);
                    groupItem.Name = String.Format("{0}_{1}", tank.CountryID, tank.TankID);

                    if (tankimage.Images[String.Format("{0}_{1}", tank.CountryID, tank.TankID)] != null)
                        groupItem.SmallImage = tankimage.Images[String.Format("{0}_{1}", tank.CountryID, tank.TankID)];

                    group.ItemLinks.Add(groupItem);
                }
                else
                {
                    groupItem = new NavBarItem(tank.Tank_Description);
                    groupItem.Name = String.Format("{0}_{1}", tank.CountryID, tank.TankID);

                    if (tankimage.Images[String.Format("{0}_{1}", tank.CountryID, tank.TankID)] != null)
                        groupItem.SmallImage = tankimage.Images[String.Format("{0}_{1}", tank.CountryID, tank.TankID)];

                    group.ItemLinks.Add(groupItem);
                }
                groupItem.LinkClicked += CompareItemA_LinkClicked;
            }

            group = null;
            groupItem = null;
            foreach (Tank tankB in wsB.tanks.OrderBy(y => y.CountryID).ThenByDescending(x => x.Tier))
            {
                try
                {
                    if (!tankimage.Images.ContainsKey(String.Format("{0}_{1}", tankB.CountryID, tankB.TankID)))
                        tankimage.Images.Add(String.Format("{0}_{1}", tankB.CountryID, tankB.TankID), Image.FromFile(String.Format(@"{0}\Images\Tanks\{1}_{2}_Large.png", WOTHelper.GetEXEPath(), tankB.CountryID, tankB.TankID)));

                    if (!tankimage.Images.ContainsKey(String.Format("{0}", tankB.CountryID)))
                        tankimage.Images.Add(String.Format("{0}", tankB.CountryID), Image.FromFile(String.Format(@"{0}\Images\Countries\{1}.png", WOTHelper.GetEXEPath(), tankB.CountryID)));
                }
                catch
                { }

                if (group == null)
                {
                    group = new NavBarGroup(tankB.Country_Description);
                    group.Name = "group_" + tankB.CountryID;

                    if (tankimage.Images[String.Format("{0}", tankB.CountryID)] != null)
                        group.SmallImage = tankimage.Images[String.Format("{0}", tankB.CountryID)];

                    navBarControl4.Groups.Add(group);
                }

                if (group.Name != "group_" + tankB.CountryID)
                {
                    group = new NavBarGroup(tankB.Country_Description);
                    group.Name = "group_" + tankB.CountryID;
                    group.SmallImage = tankimage.Images[String.Format("{0}", tankB.CountryID)];
                    navBarControl4.Groups.Add(group);
                    groupItem = new NavBarItem(tankB.Tank_Description);
                    groupItem.Name = String.Format("{0}_{1}", tankB.CountryID, tankB.TankID);

                    if (tankimage.Images[String.Format("{0}_{1}", tankB.CountryID, tankB.TankID)] != null)
                        groupItem.SmallImage = tankimage.Images[String.Format("{0}_{1}", tankB.CountryID, tankB.TankID)];

                    group.ItemLinks.Add(groupItem);
                }
                else
                {
                    groupItem = new NavBarItem(tankB.Tank_Description);
                    groupItem.Name = String.Format("{0}_{1}", tankB.CountryID, tankB.TankID);

                    if (tankimage.Images[String.Format("{0}_{1}", tankB.CountryID, tankB.TankID)] != null)
                        groupItem.SmallImage = tankimage.Images[String.Format("{0}_{1}", tankB.CountryID, tankB.TankID)];

                    group.ItemLinks.Add(groupItem);
                }
                groupItem.LinkClicked += new NavBarLinkEventHandler(CompareItemB_LinkClicked);
            }
        }
        public void Load_navbar(DataSet ds1)
        {
            finish_load_nav = false;
            navBarControl1.Items.Clear();
            foreach (DataRow r1 in ds1.Tables[0].Rows)
            {
                if (HelpNumber.ParseInt64(r1["ID"]) != 1)
                {
                    NavBarItem item1 = new NavBarItem();
                    item1.Caption = r1["NAME"].ToString();
                    item1.Name = r1["ID"].ToString();
                    item1.SmallImage = imageList1.Images[0];
                    item1.LargeImage = imageList1.Images[0];

                    navBarGroup1.ItemLinks.Add(item1);
                }
            }
            finish_load_nav = true;
            navBarGroup1.SelectedLinkIndex = -1;
            navBarGroup1.ItemLinks.SortByCaption();
            navBarControl1.SelectedLink = null;
        }
Example #58
0
        private void FillListView(WOTStats ws)
        {
            navBarControl2.Items.Clear();
            navBarControl2.Groups.Clear();
            NavBarGroup group = null;
            NavBarItem groupItem = null;
            foreach (Tank tank in ws.tanks.OrderBy(y => y.CountryID).ThenByDescending(x => x.Tier))
            {
                try
                {
                    if (!tankimage.Images.ContainsKey(String.Format("{0}_{1}", tank.CountryID, tank.TankID)))
                        tankimage.Images.Add(String.Format("{0}_{1}", tank.CountryID, tank.TankID), Image.FromFile(String.Format(@"{0}", WOTHelper.GetImagePath(tank.CountryID + "_" + tank.TankID + "_Large.png"))));

                    if (!tankimage.Images.ContainsKey(String.Format("{0}", tank.CountryID)))
                        tankimage.Images.Add(String.Format("{0}", tank.CountryID), Image.FromFile(String.Format(@"{0}\Images\Countries\{1}.png", WOTHelper.GetEXEPath(), tank.CountryID)));
                }
                catch
                { }

                if (group == null)
                {
                    group = new NavBarGroup(tank.Country_Description);
                    group.Name = "group_" + tank.CountryID;

                    if (tankimage.Images[String.Format("{0}", tank.CountryID)] != null)
                        group.SmallImage = tankimage.Images[String.Format("{0}", tank.CountryID)];

                    navBarControl2.Groups.Add(group);
                }

                if (group.Name != "group_" + tank.CountryID)
                {
                    group = new NavBarGroup(tank.Country_Description);
                    group.Name = "group_" + tank.CountryID;
                    group.SmallImage = tankimage.Images[String.Format("{0}", tank.CountryID)];
                    navBarControl2.Groups.Add(group);
                    groupItem = new NavBarItem(tank.Tank_Description);
                    groupItem.Name = String.Format("{0}_{1}", tank.CountryID, tank.TankID);

                    if (tankimage.Images[String.Format("{0}_{1}", tank.CountryID, tank.TankID)] != null)
                        groupItem.SmallImage = tankimage.Images[String.Format("{0}_{1}", tank.CountryID, tank.TankID)];

                    group.ItemLinks.Add(groupItem);
                }
                else
                {
                    groupItem = new NavBarItem(tank.Tank_Description);
                    groupItem.Name = String.Format("{0}_{1}", tank.CountryID, tank.TankID);

                    if (tankimage.Images[String.Format("{0}_{1}", tank.CountryID, tank.TankID)] != null)
                        groupItem.SmallImage = tankimage.Images[String.Format("{0}_{1}", tank.CountryID, tank.TankID)];

                    group.ItemLinks.Add(groupItem);
                }
                groupItem.LinkClicked += groupItem_LinkClicked;
            }
        }
Example #59
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(frmMain));
     this.mnuMain = new System.Windows.Forms.MainMenu(this.components);
     this.MenuItem1 = new System.Windows.Forms.MenuItem();
     this.mnuDBLogin = new System.Windows.Forms.MenuItem();
     this.MenuItem2 = new System.Windows.Forms.MenuItem();
     this.mnuNavBar = new System.Windows.Forms.MenuItem();
     this.MenuItem6 = new System.Windows.Forms.MenuItem();
     this.mnuLargeIcons = new System.Windows.Forms.MenuItem();
     this.mnuSmallIcons = new System.Windows.Forms.MenuItem();
     this.mnuSideBarProp = new System.Windows.Forms.MenuItem();
     this.MenuItem4 = new System.Windows.Forms.MenuItem();
     this.mnuExit = new System.Windows.Forms.MenuItem();
     this.mnuSettings = new System.Windows.Forms.MenuItem();
     this.mnu_Sett = new System.Windows.Forms.MenuItem();
     this.mnuAbout = new System.Windows.Forms.MenuItem();
     this.menuItem3 = new System.Windows.Forms.MenuItem();
     this.imlMain = new System.Windows.Forms.ImageList(this.components);
     this.tmrMain = new System.Windows.Forms.Timer(this.components);
     this.imlSmallImageNavBar = new System.Windows.Forms.ImageList(this.components);
     this.imlNavBar = new System.Windows.Forms.ImageList(this.components);
     this.sbarMain = new System.Windows.Forms.StatusBar();
     this.sPnlGeneral = new System.Windows.Forms.StatusBarPanel();
     this.sPnlLogon = new System.Windows.Forms.StatusBarPanel();
     this.sPnlDate = new System.Windows.Forms.StatusBarPanel();
     this.sPnlPath = new System.Windows.Forms.StatusBarPanel();
     this.pnlBody = new System.Windows.Forms.Panel();
     this.pnlMain = new System.Windows.Forms.Panel();
     this.pnlHeader = new System.Windows.Forms.Panel();
     this.lblTitle = new System.Windows.Forms.Label();
     this.pnlNavBar = new System.Windows.Forms.Panel();
     this.navBar = new DevExpress.XtraNavBar.NavBarControl();
     this.navBarGroup1 = new DevExpress.XtraNavBar.NavBarGroup();
     this.nBarClient = new DevExpress.XtraNavBar.NavBarItem();
     this.nBarDept = new DevExpress.XtraNavBar.NavBarItem();
     this.nBarProgram = new DevExpress.XtraNavBar.NavBarItem();
     this.nBarCourse = new DevExpress.XtraNavBar.NavBarItem();
     this.nBarTeacher = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarGroup2 = new DevExpress.XtraNavBar.NavBarGroup();
     this.nBarEvent = new DevExpress.XtraNavBar.NavBarItem();
     this.nBarDay = new DevExpress.XtraNavBar.NavBarItem();
     this.nBarWeek = new DevExpress.XtraNavBar.NavBarItem();
     this.nBarMonth = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarGroup3 = new DevExpress.XtraNavBar.NavBarGroup();
     this.nBarUser = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarGroup4 = new DevExpress.XtraNavBar.NavBarGroup();
     this.navBarItem1 = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarItem2 = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarTransportationExpenses = new DevExpress.XtraNavBar.NavBarItem();
     this.navBarReportBillingInfo = new DevExpress.XtraNavBar.NavBarItem();
     this.nBarContacts = new DevExpress.XtraNavBar.NavBarItem();
     this.cMenu_New = new System.Windows.Forms.ContextMenu();
     this.mnuItemClient = new System.Windows.Forms.MenuItem();
     this.mnuItemDept = new System.Windows.Forms.MenuItem();
     this.mnuItemProgram = new System.Windows.Forms.MenuItem();
     this.mnuItemCourse = new System.Windows.Forms.MenuItem();
     this.mnuItemContact = new System.Windows.Forms.MenuItem();
     this.menuItem11 = new System.Windows.Forms.MenuItem();
     this.mnuItemUser = new System.Windows.Forms.MenuItem();
     this.tBarMain = new FlatToolBar.FlatToolbar();
     this.tbtnNew = new System.Windows.Forms.ToolBarButton();
     this.tbtnDuplicate = new System.Windows.Forms.ToolBarButton();
     this.tbtnOpen = new System.Windows.Forms.ToolBarButton();
     this.tbtnDelete = new System.Windows.Forms.ToolBarButton();
     this.tbtnSepa = new System.Windows.Forms.ToolBarButton();
     this.tbtnFind = new System.Windows.Forms.ToolBarButton();
     this.tbtnPrint = new System.Windows.Forms.ToolBarButton();
     this.tbtnInfoProgram = new System.Windows.Forms.ToolBarButton();
     this.printPreviewDialog1 = new System.Windows.Forms.PrintPreviewDialog();
     this.printDocument1 = new System.Drawing.Printing.PrintDocument();
     ((System.ComponentModel.ISupportInitialize)(this.sPnlGeneral)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.sPnlLogon)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.sPnlDate)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.sPnlPath)).BeginInit();
     this.pnlBody.SuspendLayout();
     this.pnlHeader.SuspendLayout();
     this.pnlNavBar.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.navBar)).BeginInit();
     this.SuspendLayout();
     //
     // mnuMain
     //
     this.mnuMain.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
     this.MenuItem1,
     this.mnuSettings,
     this.mnuAbout});
     //
     // MenuItem1
     //
     this.MenuItem1.Index = 0;
     this.MenuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
     this.mnuDBLogin,
     this.MenuItem2,
     this.mnuNavBar,
     this.MenuItem6,
     this.mnuLargeIcons,
     this.mnuSmallIcons,
     this.mnuSideBarProp,
     this.MenuItem4,
     this.mnuExit});
     this.MenuItem1.Text = "Main";
     //
     // mnuDBLogin
     //
     this.mnuDBLogin.Index = 0;
     this.mnuDBLogin.Text = "Database Login";
     this.mnuDBLogin.Click += new System.EventHandler(this.mnuDBLogin_Click);
     //
     // MenuItem2
     //
     this.MenuItem2.Index = 1;
     this.MenuItem2.Text = "-";
     //
     // mnuNavBar
     //
     this.mnuNavBar.Index = 2;
     this.mnuNavBar.Text = "Show Navigation Bar";
     this.mnuNavBar.Click += new System.EventHandler(this.mnuNavBar_Click);
     //
     // MenuItem6
     //
     this.MenuItem6.Index = 3;
     this.MenuItem6.Text = "-";
     //
     // mnuLargeIcons
     //
     this.mnuLargeIcons.Index = 4;
     this.mnuLargeIcons.Text = "Large Icons";
     this.mnuLargeIcons.Click += new System.EventHandler(this.mnuLargeIcons_Click);
     //
     // mnuSmallIcons
     //
     this.mnuSmallIcons.Index = 5;
     this.mnuSmallIcons.Text = "Small Icons";
     this.mnuSmallIcons.Click += new System.EventHandler(this.mnuSmallIcons_Click);
     //
     // mnuSideBarProp
     //
     this.mnuSideBarProp.Index = 6;
     this.mnuSideBarProp.Text = "Display Properties";
     this.mnuSideBarProp.Click += new System.EventHandler(this.mnuSideBarProp_Click);
     //
     // MenuItem4
     //
     this.MenuItem4.Index = 7;
     this.MenuItem4.Text = "-";
     //
     // mnuExit
     //
     this.mnuExit.Index = 8;
     this.mnuExit.Text = "Exit";
     this.mnuExit.Click += new System.EventHandler(this.mnuExit_Click);
     //
     // mnuSettings
     //
     this.mnuSettings.Index = 1;
     this.mnuSettings.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
     this.mnu_Sett});
     this.mnuSettings.Text = "Tools";
     //
     // mnu_Sett
     //
     this.mnu_Sett.Index = 0;
     this.mnu_Sett.Text = "Settings";
     this.mnu_Sett.Click += new System.EventHandler(this.mnu_Sett_Click);
     //
     // mnuAbout
     //
     this.mnuAbout.Index = 2;
     this.mnuAbout.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
     this.menuItem3});
     this.mnuAbout.Text = "Help";
     //
     // menuItem3
     //
     this.menuItem3.Index = 0;
     this.menuItem3.Text = "About";
     this.menuItem3.Click += new System.EventHandler(this.menuItem3_Click);
     //
     // imlMain
     //
     this.imlMain.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imlMain.ImageStream")));
     this.imlMain.TransparentColor = System.Drawing.Color.Fuchsia;
     this.imlMain.Images.SetKeyName(0, "");
     this.imlMain.Images.SetKeyName(1, "");
     this.imlMain.Images.SetKeyName(2, "");
     this.imlMain.Images.SetKeyName(3, "");
     this.imlMain.Images.SetKeyName(4, "clone-icon.gif");
     this.imlMain.Images.SetKeyName(5, "tvuPrint.ico");
     this.imlMain.Images.SetKeyName(6, "RibbonPrintPreviewDemoIcon.ico");
     this.imlMain.Images.SetKeyName(7, "Printers & Faxes.ico");
     //
     // tmrMain
     //
     this.tmrMain.Interval = 1000;
     this.tmrMain.Tick += new System.EventHandler(this.tmrMain_Tick);
     //
     // imlSmallImageNavBar
     //
     this.imlSmallImageNavBar.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imlSmallImageNavBar.ImageStream")));
     this.imlSmallImageNavBar.TransparentColor = System.Drawing.Color.Magenta;
     this.imlSmallImageNavBar.Images.SetKeyName(0, "");
     this.imlSmallImageNavBar.Images.SetKeyName(1, "");
     this.imlSmallImageNavBar.Images.SetKeyName(2, "");
     this.imlSmallImageNavBar.Images.SetKeyName(3, "");
     this.imlSmallImageNavBar.Images.SetKeyName(4, "");
     this.imlSmallImageNavBar.Images.SetKeyName(5, "");
     this.imlSmallImageNavBar.Images.SetKeyName(6, "");
     this.imlSmallImageNavBar.Images.SetKeyName(7, "");
     this.imlSmallImageNavBar.Images.SetKeyName(8, "");
     this.imlSmallImageNavBar.Images.SetKeyName(9, "");
     this.imlSmallImageNavBar.Images.SetKeyName(10, "");
     this.imlSmallImageNavBar.Images.SetKeyName(11, "");
     this.imlSmallImageNavBar.Images.SetKeyName(12, "");
     this.imlSmallImageNavBar.Images.SetKeyName(13, "");
     this.imlSmallImageNavBar.Images.SetKeyName(14, "");
     this.imlSmallImageNavBar.Images.SetKeyName(15, "");
     this.imlSmallImageNavBar.Images.SetKeyName(16, "");
     this.imlSmallImageNavBar.Images.SetKeyName(17, "");
     //
     // imlNavBar
     //
     this.imlNavBar.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imlNavBar.ImageStream")));
     this.imlNavBar.TransparentColor = System.Drawing.Color.Magenta;
     this.imlNavBar.Images.SetKeyName(0, "");
     this.imlNavBar.Images.SetKeyName(1, "");
     this.imlNavBar.Images.SetKeyName(2, "");
     this.imlNavBar.Images.SetKeyName(3, "");
     this.imlNavBar.Images.SetKeyName(4, "");
     this.imlNavBar.Images.SetKeyName(5, "");
     this.imlNavBar.Images.SetKeyName(6, "");
     this.imlNavBar.Images.SetKeyName(7, "");
     this.imlNavBar.Images.SetKeyName(8, "");
     this.imlNavBar.Images.SetKeyName(9, "");
     this.imlNavBar.Images.SetKeyName(10, "");
     this.imlNavBar.Images.SetKeyName(11, "");
     this.imlNavBar.Images.SetKeyName(12, "");
     this.imlNavBar.Images.SetKeyName(13, "");
     this.imlNavBar.Images.SetKeyName(14, "");
     this.imlNavBar.Images.SetKeyName(15, "");
     this.imlNavBar.Images.SetKeyName(16, "");
     this.imlNavBar.Images.SetKeyName(17, "");
     this.imlNavBar.Images.SetKeyName(18, "");
     this.imlNavBar.Images.SetKeyName(19, "");
     this.imlNavBar.Images.SetKeyName(20, "");
     this.imlNavBar.Images.SetKeyName(21, "");
     this.imlNavBar.Images.SetKeyName(22, "");
     this.imlNavBar.Images.SetKeyName(23, "money_envelope.ico");
     //
     // sbarMain
     //
     this.sbarMain.Location = new System.Drawing.Point(0, 641);
     this.sbarMain.Name = "sbarMain";
     this.sbarMain.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
     this.sPnlGeneral,
     this.sPnlLogon,
     this.sPnlDate,
     this.sPnlPath});
     this.sbarMain.ShowPanels = true;
     this.sbarMain.Size = new System.Drawing.Size(1142, 28);
     this.sbarMain.TabIndex = 17;
     this.sbarMain.Text = "sBarMain";
     //
     // sPnlGeneral
     //
     this.sPnlGeneral.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring;
     this.sPnlGeneral.Name = "sPnlGeneral";
     this.sPnlGeneral.Width = 631;
     //
     // sPnlLogon
     //
     this.sPnlLogon.Icon = ((System.Drawing.Icon)(resources.GetObject("sPnlLogon.Icon")));
     this.sPnlLogon.Name = "sPnlLogon";
     this.sPnlLogon.Text = "Logon : ";
     this.sPnlLogon.Width = 220;
     //
     // sPnlDate
     //
     this.sPnlDate.Name = "sPnlDate";
     this.sPnlDate.Text = "Date : ";
     this.sPnlDate.Width = 220;
     //
     // sPnlPath
     //
     this.sPnlPath.Icon = ((System.Drawing.Icon)(resources.GetObject("sPnlPath.Icon")));
     this.sPnlPath.Name = "sPnlPath";
     this.sPnlPath.Width = 50;
     //
     // pnlBody
     //
     this.pnlBody.Controls.Add(this.pnlMain);
     this.pnlBody.Controls.Add(this.pnlHeader);
     this.pnlBody.Controls.Add(this.pnlNavBar);
     this.pnlBody.Dock = System.Windows.Forms.DockStyle.Fill;
     this.pnlBody.Location = new System.Drawing.Point(0, 46);
     this.pnlBody.Name = "pnlBody";
     this.pnlBody.Size = new System.Drawing.Size(1142, 595);
     this.pnlBody.TabIndex = 18;
     //
     // pnlMain
     //
     this.pnlMain.BackColor = System.Drawing.SystemColors.Window;
     this.pnlMain.Dock = System.Windows.Forms.DockStyle.Fill;
     this.pnlMain.Location = new System.Drawing.Point(224, 39);
     this.pnlMain.Name = "pnlMain";
     this.pnlMain.Size = new System.Drawing.Size(918, 556);
     this.pnlMain.TabIndex = 1;
     //
     // pnlHeader
     //
     this.pnlHeader.BackColor = System.Drawing.SystemColors.ControlDark;
     this.pnlHeader.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.pnlHeader.Controls.Add(this.lblTitle);
     this.pnlHeader.Dock = System.Windows.Forms.DockStyle.Top;
     this.pnlHeader.Location = new System.Drawing.Point(224, 0);
     this.pnlHeader.Name = "pnlHeader";
     this.pnlHeader.Size = new System.Drawing.Size(918, 39);
     this.pnlHeader.TabIndex = 0;
     this.pnlHeader.Resize += new System.EventHandler(this.pnlHeader_Resize);
     //
     // lblTitle
     //
     this.lblTitle.AutoSize = true;
     this.lblTitle.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblTitle.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
     this.lblTitle.Location = new System.Drawing.Point(23, 6);
     this.lblTitle.Name = "lblTitle";
     this.lblTitle.Size = new System.Drawing.Size(54, 24);
     this.lblTitle.TabIndex = 0;
     this.lblTitle.Text = "Title";
     //
     // pnlNavBar
     //
     this.pnlNavBar.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.pnlNavBar.Controls.Add(this.navBar);
     this.pnlNavBar.Dock = System.Windows.Forms.DockStyle.Left;
     this.pnlNavBar.Location = new System.Drawing.Point(0, 0);
     this.pnlNavBar.Name = "pnlNavBar";
     this.pnlNavBar.Size = new System.Drawing.Size(224, 595);
     this.pnlNavBar.TabIndex = 12;
     //
     // navBar
     //
     this.navBar.ActiveGroup = this.navBarGroup1;
     this.navBar.Appearance.ItemDisabled.Options.UseTextOptions = true;
     this.navBar.Appearance.ItemDisabled.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.navBar.Appearance.ItemDisabled.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
     this.navBar.Appearance.ItemHotTracked.Options.UseTextOptions = true;
     this.navBar.Appearance.ItemHotTracked.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.navBar.Appearance.ItemHotTracked.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
     this.navBar.Appearance.ItemPressed.Options.UseTextOptions = true;
     this.navBar.Appearance.ItemPressed.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.navBar.Appearance.ItemPressed.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
     this.navBar.ContentButtonHint = null;
     this.navBar.Dock = System.Windows.Forms.DockStyle.Fill;
     this.navBar.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.navBar.Groups.AddRange(new DevExpress.XtraNavBar.NavBarGroup[] {
     this.navBarGroup1,
     this.navBarGroup2,
     this.navBarGroup3,
     this.navBarGroup4});
     this.navBar.Items.AddRange(new DevExpress.XtraNavBar.NavBarItem[] {
     this.nBarUser,
     this.nBarDept,
     this.nBarCourse,
     this.nBarProgram,
     this.nBarEvent,
     this.nBarContacts,
     this.nBarTeacher,
     this.nBarClient,
     this.nBarDay,
     this.nBarWeek,
     this.nBarMonth,
     this.navBarItem1,
     this.navBarItem2,
     this.navBarTransportationExpenses,
     this.navBarReportBillingInfo});
     this.navBar.LargeImages = this.imlNavBar;
     this.navBar.Location = new System.Drawing.Point(0, 0);
     this.navBar.Name = "navBar";
     this.navBar.OptionsNavPane.ExpandedWidth = 220;
     this.navBar.Size = new System.Drawing.Size(220, 591);
     this.navBar.SmallImages = this.imlSmallImageNavBar;
     this.navBar.TabIndex = 5;
     this.navBar.Text = "Navigation";
     this.navBar.View = new DevExpress.XtraNavBar.ViewInfo.FlatViewInfoRegistrator();
     this.navBar.Click += new System.EventHandler(this.navBar_Click);
     //
     // navBarGroup1
     //
     this.navBarGroup1.Caption = "System Data";
     this.navBarGroup1.Expanded = true;
     this.navBarGroup1.ItemLinks.AddRange(new DevExpress.XtraNavBar.NavBarItemLink[] {
     new DevExpress.XtraNavBar.NavBarItemLink(this.nBarClient),
     new DevExpress.XtraNavBar.NavBarItemLink(this.nBarDept),
     new DevExpress.XtraNavBar.NavBarItemLink(this.nBarProgram),
     new DevExpress.XtraNavBar.NavBarItemLink(this.nBarCourse),
     new DevExpress.XtraNavBar.NavBarItemLink(this.nBarTeacher)});
     this.navBarGroup1.LargeImageIndex = 16;
     this.navBarGroup1.Name = "navBarGroup1";
     //
     // nBarClient
     //
     this.nBarClient.Caption = "Client";
     this.nBarClient.LargeImageIndex = 16;
     this.nBarClient.Name = "nBarClient";
     this.nBarClient.SmallImageIndex = 14;
     this.nBarClient.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nBarClient_LinkClicked);
     //
     // nBarDept
     //
     this.nBarDept.Caption = "Department";
     this.nBarDept.LargeImageIndex = 19;
     this.nBarDept.Name = "nBarDept";
     this.nBarDept.SmallImageIndex = 4;
     this.nBarDept.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nBarDept_LinkClicked);
     //
     // nBarProgram
     //
     this.nBarProgram.Caption = "Program";
     this.nBarProgram.LargeImageIndex = 2;
     this.nBarProgram.Name = "nBarProgram";
     this.nBarProgram.SmallImageIndex = 2;
     this.nBarProgram.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nBarProgram_LinkClicked);
     //
     // nBarCourse
     //
     this.nBarCourse.Caption = "Class";
     this.nBarCourse.LargeImageIndex = 1;
     this.nBarCourse.Name = "nBarCourse";
     this.nBarCourse.SmallImageIndex = 1;
     this.nBarCourse.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nBarCourse_LinkClicked);
     //
     // nBarTeacher
     //
     this.nBarTeacher.Caption = "Instructor";
     this.nBarTeacher.LargeImageIndex = 17;
     this.nBarTeacher.Name = "nBarTeacher";
     this.nBarTeacher.SmallImageIndex = 5;
     this.nBarTeacher.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nBarTeacher_LinkClicked);
     //
     // navBarGroup2
     //
     this.navBarGroup2.Caption = "Schedule";
     this.navBarGroup2.ItemLinks.AddRange(new DevExpress.XtraNavBar.NavBarItemLink[] {
     new DevExpress.XtraNavBar.NavBarItemLink(this.nBarEvent),
     new DevExpress.XtraNavBar.NavBarItemLink(this.nBarDay),
     new DevExpress.XtraNavBar.NavBarItemLink(this.nBarWeek),
     new DevExpress.XtraNavBar.NavBarItemLink(this.nBarMonth)});
     this.navBarGroup2.Name = "navBarGroup2";
     //
     // nBarEvent
     //
     this.nBarEvent.Caption = "Event";
     this.nBarEvent.LargeImageIndex = 4;
     this.nBarEvent.Name = "nBarEvent";
     this.nBarEvent.SmallImageIndex = 4;
     this.nBarEvent.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nBarEvent_LinkClicked);
     //
     // nBarDay
     //
     this.nBarDay.Caption = "Day";
     this.nBarDay.LargeImageIndex = 20;
     this.nBarDay.Name = "nBarDay";
     this.nBarDay.SmallImageIndex = 15;
     this.nBarDay.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nBarDay_LinkClicked);
     //
     // nBarWeek
     //
     this.nBarWeek.Caption = "Week";
     this.nBarWeek.LargeImageIndex = 21;
     this.nBarWeek.Name = "nBarWeek";
     this.nBarWeek.SmallImageIndex = 16;
     this.nBarWeek.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nBarWeek_LinkClicked);
     //
     // nBarMonth
     //
     this.nBarMonth.Caption = "Month";
     this.nBarMonth.LargeImageIndex = 22;
     this.nBarMonth.Name = "nBarMonth";
     this.nBarMonth.SmallImageIndex = 17;
     this.nBarMonth.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nBarMonth_LinkClicked);
     //
     // navBarGroup3
     //
     this.navBarGroup3.Caption = "Access";
     this.navBarGroup3.ItemLinks.AddRange(new DevExpress.XtraNavBar.NavBarItemLink[] {
     new DevExpress.XtraNavBar.NavBarItemLink(this.nBarUser)});
     this.navBarGroup3.Name = "navBarGroup3";
     //
     // nBarUser
     //
     this.nBarUser.Caption = "User";
     this.nBarUser.LargeImageIndex = 18;
     this.nBarUser.Name = "nBarUser";
     this.nBarUser.SmallImageIndex = 12;
     this.nBarUser.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nBarUser_LinkClicked);
     //
     // navBarGroup4
     //
     this.navBarGroup4.Caption = "Accounting";
     this.navBarGroup4.ItemLinks.AddRange(new DevExpress.XtraNavBar.NavBarItemLink[] {
     new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem1),
     new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem2),
     new DevExpress.XtraNavBar.NavBarItemLink(this.navBarTransportationExpenses),
     new DevExpress.XtraNavBar.NavBarItemLink(this.navBarReportBillingInfo)});
     this.navBarGroup4.Name = "navBarGroup4";
     //
     // navBarItem1
     //
     this.navBarItem1.Caption = "Pay Details By Instructor";
     this.navBarItem1.LargeImageIndex = 6;
     this.navBarItem1.Name = "navBarItem1";
     this.navBarItem1.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarItem1_LinkClicked);
     //
     // navBarItem2
     //
     this.navBarItem2.Caption = "Payroll By Instructor";
     this.navBarItem2.LargeImageIndex = 5;
     this.navBarItem2.Name = "navBarItem2";
     this.navBarItem2.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarItem2_LinkClicked);
     //
     // navBarTransportationExpenses
     //
     this.navBarTransportationExpenses.Caption = "Transportation Expenses";
     this.navBarTransportationExpenses.LargeImageIndex = 23;
     this.navBarTransportationExpenses.Name = "navBarTransportationExpenses";
     this.navBarTransportationExpenses.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarTransportationExpenses_LinkClicked);
     //
     // navBarReportBillingInfo
     //
     this.navBarReportBillingInfo.Caption = "Billing Information By Client";
     this.navBarReportBillingInfo.LargeImageIndex = 2;
     this.navBarReportBillingInfo.Name = "navBarReportBillingInfo";
     this.navBarReportBillingInfo.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.navBarReportBillingInfo_LinkClicked);
     //
     // nBarContacts
     //
     this.nBarContacts.Caption = "Contacts";
     this.nBarContacts.LargeImageIndex = 16;
     this.nBarContacts.Name = "nBarContacts";
     this.nBarContacts.SmallImageIndex = 13;
     this.nBarContacts.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.nBarContacts_LinkClicked);
     //
     // cMenu_New
     //
     this.cMenu_New.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
     this.mnuItemClient,
     this.mnuItemDept,
     this.mnuItemProgram,
     this.mnuItemCourse,
     this.mnuItemContact,
     this.menuItem11,
     this.mnuItemUser});
     //
     // mnuItemClient
     //
     this.mnuItemClient.Index = 0;
     this.mnuItemClient.Text = "Client";
     this.mnuItemClient.Click += new System.EventHandler(this.mnuItemClient_Click);
     //
     // mnuItemDept
     //
     this.mnuItemDept.Index = 1;
     this.mnuItemDept.Text = "Department";
     this.mnuItemDept.Click += new System.EventHandler(this.mnuItemDept_Click);
     //
     // mnuItemProgram
     //
     this.mnuItemProgram.Index = 2;
     this.mnuItemProgram.Text = "Program";
     this.mnuItemProgram.Click += new System.EventHandler(this.mnuItemProgram_Click);
     //
     // mnuItemCourse
     //
     this.mnuItemCourse.Index = 3;
     this.mnuItemCourse.Text = "Class";
     this.mnuItemCourse.Click += new System.EventHandler(this.mnuItemCourse_Click);
     //
     // mnuItemContact
     //
     this.mnuItemContact.Index = 4;
     this.mnuItemContact.Text = "Instructor";
     this.mnuItemContact.Click += new System.EventHandler(this.mnuItemContact_Click);
     //
     // menuItem11
     //
     this.menuItem11.Index = 5;
     this.menuItem11.Text = "-";
     //
     // mnuItemUser
     //
     this.mnuItemUser.Index = 6;
     this.mnuItemUser.Text = "User";
     this.mnuItemUser.Click += new System.EventHandler(this.mnuItemUser_Click);
     //
     // tBarMain
     //
     //this.tBarMain.Appearance = System.Windows.Forms.ToolBarAppearance.Flat;
     this.tBarMain.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
     this.tbtnNew,
     this.tbtnDuplicate,
     this.tbtnOpen,
     this.tbtnDelete,
     this.tbtnSepa,
     this.tbtnFind,
     this.tbtnPrint,
     this.tbtnInfoProgram});
     this.tBarMain.ButtonSize = new System.Drawing.Size(67, 34);
     //this.tBarMain.Divider = false;
     this.tBarMain.DropDownArrows = true;
     this.tBarMain.DropDownAsOne = false;
     this.tBarMain.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.tBarMain.ImageList = this.imlMain;
     this.tBarMain.Location = new System.Drawing.Point(0, 0);
     this.tBarMain.Name = "tBarMain";
     this.tBarMain.ShowToolTips = true;
     this.tBarMain.Size = new System.Drawing.Size(1142, 46);
     this.tBarMain.TabIndex = 11;
     this.tBarMain.TextAlign = System.Windows.Forms.ToolBarTextAlign.Right;
     this.tBarMain.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.tBarMain_ButtonClick);
     //
     // tbtnNew
     //
     this.tbtnNew.DropDownMenu = this.cMenu_New;
     this.tbtnNew.ImageIndex = 0;
     this.tbtnNew.Name = "tbtnNew";
     this.tbtnNew.Style = System.Windows.Forms.ToolBarButtonStyle.DropDownButton;
     this.tbtnNew.Text = "New";
     this.tbtnNew.ToolTipText = "New";
     //
     // tbtnDuplicate
     //
     this.tbtnDuplicate.Enabled = false;
     this.tbtnDuplicate.ImageIndex = 4;
     this.tbtnDuplicate.Name = "tbtnDuplicate";
     this.tbtnDuplicate.Text = "Clone";
     //
     // tbtnOpen
     //
     this.tbtnOpen.ImageIndex = 1;
     this.tbtnOpen.Name = "tbtnOpen";
     this.tbtnOpen.Text = "Open";
     this.tbtnOpen.ToolTipText = "Open";
     //
     // tbtnDelete
     //
     this.tbtnDelete.ImageIndex = 2;
     this.tbtnDelete.Name = "tbtnDelete";
     this.tbtnDelete.ToolTipText = "Delete";
     //
     // tbtnSepa
     //
     this.tbtnSepa.Name = "tbtnSepa";
     this.tbtnSepa.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // tbtnFind
     //
     this.tbtnFind.ImageIndex = 3;
     this.tbtnFind.Name = "tbtnFind";
     this.tbtnFind.ToolTipText = "Find";
     //
     // tbtnPrint
     //
     this.tbtnPrint.ImageIndex = 7;
     this.tbtnPrint.Name = "tbtnPrint";
     this.tbtnPrint.Text = "Print";
     //
     // tbtnInfoProgram
     //
     this.tbtnInfoProgram.ImageIndex = 6;
     this.tbtnInfoProgram.Name = "tbtnInfoProgram";
     this.tbtnInfoProgram.Text = "Program Info";
     this.tbtnInfoProgram.Visible = false;
     //
     // printPreviewDialog1
     //
     this.printPreviewDialog1.AutoScrollMargin = new System.Drawing.Size(0, 0);
     this.printPreviewDialog1.AutoScrollMinSize = new System.Drawing.Size(0, 0);
     this.printPreviewDialog1.ClientSize = new System.Drawing.Size(400, 300);
     this.printPreviewDialog1.Document = this.printDocument1;
     this.printPreviewDialog1.Enabled = true;
     this.printPreviewDialog1.Icon = ((System.Drawing.Icon)(resources.GetObject("printPreviewDialog1.Icon")));
     this.printPreviewDialog1.Name = "printPreviewDialog1";
     this.printPreviewDialog1.Visible = false;
     //
     // printDocument1
     //
     this.printDocument1.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printDocument1_PrintPage);
     //
     // frmMain
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(7, 17);
     this.ClientSize = new System.Drawing.Size(1142, 669);
     this.Controls.Add(this.pnlBody);
     this.Controls.Add(this.sbarMain);
     this.Controls.Add(this.tBarMain);
     this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Menu = this.mnuMain;
     this.MinimumSize = new System.Drawing.Size(1015, 607);
     this.Name = "frmMain";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "Kurdyla Scheduler";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.Closing += new System.ComponentModel.CancelEventHandler(this.frmMain_Closing);
     this.Load += new System.EventHandler(this.frmMain_Load);
     ((System.ComponentModel.ISupportInitialize)(this.sPnlGeneral)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.sPnlLogon)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.sPnlDate)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.sPnlPath)).EndInit();
     this.pnlBody.ResumeLayout(false);
     this.pnlHeader.ResumeLayout(false);
     this.pnlHeader.PerformLayout();
     this.pnlNavBar.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.navBar)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Example #60
0
        private void BuildGraphForm(string playerName)
        {
            _chart.AppearanceNameSerializable = "Dark";

            navBarCharts.Items.Clear();
            navBarCharts.Groups.Clear();
            GraphsSettings gs = new GraphsSettings(_message);
            NavBarGroup group = null;
            NavBarItem groupItem = null;

            foreach (KeyValuePair<string, GraphFields> graph in gs.OrderBy(x => x.Value.StatsBase))
            {
                if (group == null)
                {
                    group = new NavBarGroup(graph.Value.StatsBase);
                    group.Name = "graph_" + graph.Value.StatsBase;
                    navBarCharts.Groups.Add(group);
                }

                if (group.Name != "graph_" + graph.Value.StatsBase)
                {
                    group = new NavBarGroup(graph.Value.StatsBase);
                    group.Name = "graph_" + graph.Value.StatsBase;
                    navBarCharts.Groups.Add(group);

                    groupItem = new NavBarItem(graph.Value.Caption);
                    groupItem.Name = graph.Key;

                    group.ItemLinks.Add(groupItem);
                }
                else
                {
                    groupItem = new NavBarItem(graph.Value.Caption);
                    groupItem.Name = graph.Key;

                    group.ItemLinks.Add(groupItem);
                }
                groupItem.LinkClicked += GraphItem_LinkClicked;
            }
            NavBarGroup activeGroup;
            if (_currentChartGroup == null)
                activeGroup = navBarCharts.ActiveGroup;
            else
                activeGroup = navBarCharts.Groups[_currentChartGroup];
            try
            {
                bool found = false;
                activeGroup.Expanded = true;
                foreach (NavBarItemLink item in activeGroup.ItemLinks)
                {
                    if (item.ItemName == _currentSelectedChart)
                    {
                        item.PerformClick();
                        activeGroup.SelectedLink = item;
                        found = true;
                        break;
                    }
                }

                if (!found)
                {
                    activeGroup.ItemLinks[0].PerformClick();
                    activeGroup.SelectedLink = activeGroup.ItemLinks[0];
                }
            }
            catch
            {
                try
                {
                    if (splashScreenManagerWaitForm.IsSplashFormVisible)
                    {
                        splashScreenManagerWaitForm.CloseWaitForm();
                    }
                }
                catch { }
                finally
                {
                    _chart.Series.Clear();
                    _chart.Titles.Clear(); ;
                }
            }
        }