Exemplo n.º 1
0
 public AssetCompilerProgram(AssetCompilerForm ac)
 {
     form = ac;
     assetListView = form.list_assets;
     imageList = form.list_images;
     textGroup = assetListView.Groups[0];
     textureGroup = assetListView.Groups[1];
     referenceGroup = assetListView.Groups[2];
 }
Exemplo n.º 2
0
 public FixedListViewItem([NotNull] ListViewSubItem[] subItems, Int32 imageIndex, ListViewGroup @group)
     : base(subItems, imageIndex, @group)
 {
 }
Exemplo n.º 3
0
 public FixedListViewItem(String[] items, Int32 imageIndex, ListViewGroup @group)
     : base(items, imageIndex, @group)
 {
 }
Exemplo n.º 4
0
 public FixedListViewItem(String text, Int32 imageIndex, ListViewGroup @group)
     : base(text, imageIndex, @group)
 {
 }
	public ListViewItem(string text, string imageKey, ListViewGroup group) {}
	public void AddRange(ListViewGroup[] groups) {}
	public ListViewItem(string text, int imageIndex, ListViewGroup group) {}
Exemplo n.º 8
0
        public void ListViewGroup_HeaderAlignment_SetInvalid_ThrowsInvalidEnumArgumentException(HorizontalAlignment value)
        {
            var group = new ListViewGroup();

            Assert.Throws <InvalidEnumArgumentException>("value", () => group.HeaderAlignment = value);
        }
Exemplo n.º 9
0
        public void ListViewGroup_ToString_Invoke_ReturnsExpected(string header, string expected)
        {
            var group = new ListViewGroup(header);

            Assert.Equal(expected, group.ToString());
        }
Exemplo n.º 10
0
 public ListViewItemEx(string[] items, int imageIndex, ListViewGroup group, Color color)
     : base(items, imageIndex, group)
 {
     this.color = color;
 }
Exemplo n.º 11
0
 public ListViewItemEx(string[] items, int imageIndex, ListViewGroup group)
     : base(items, imageIndex, group)
 {
 }
Exemplo n.º 12
0
        // --- as the title says, assigns groups to games
        public Tasker.Conclusion AssignGroupsToGames(Tasker tasker, Object syncObject = null)
        {
            var sync     = (LoadGamesSyncObject)syncObject;
            var selected = ConfigIni.Instance.SelectedGames;
            var original = ConfigIni.Instance.OriginalGames;

            // assign groups to list view items
            // int i = 0;
            foreach (var item in sync.items)
            {
                var game = item.Tag as NesApplication;

                item.Checked = selected.Contains(game.Code) || original.Contains(game.Code);
                ListViewGroup group = null;
                if (game.IsOriginalGame && ConfigIni.Instance.OriginalGamesPosition != MainForm.OriginalGamesPosition.Sorted)
                {
                    group = normalGroups[ViewGroup.Original];
                }
                if (group == null)
                {
                    AppTypeCollection.AppInfo appInfo = game.Metadata.AppInfo;
                    switch (ConfigIni.Instance.GamesSorting)
                    {
                    case MainForm.GamesSorting.Name:
                        group = game.IsOriginalGame ? normalGroups[ViewGroup.Original] : normalGroups[ViewGroup.Custom];
                        break;

                    case MainForm.GamesSorting.System:
                        if (!appInfo.Unknown && sortedGroups.ContainsKey(appInfo.Name))
                        {
                            group = sortedGroups[appInfo.Name];
                        }
                        else if (!string.IsNullOrEmpty(game.Metadata.System) && sortedGroups.ContainsKey(game.Metadata.System))
                        {
                            group = sortedGroups[game.Metadata.System];
                        }
                        break;

                    case MainForm.GamesSorting.Core:
                        if (string.IsNullOrEmpty(game.Metadata.Core))
                        {
                            int startPos = game.Desktop.Bin.LastIndexOf('/') + 1;
                            if (startPos > 0 && (startPos < game.Desktop.Bin.Length))
                            {
                                string bin = game.Desktop.Bin.Substring(startPos).Trim();
                                if (sortedGroups.ContainsKey(bin))
                                {
                                    group = sortedGroups[bin];
                                }
                            }
                        }
                        else if (sortedGroups.ContainsKey(game.Metadata.Core))
                        {
                            group = sortedGroups[game.Metadata.Core];
                        }
                        break;
                    }
                }
                if (group == null)
                {
                    if (game.Desktop.Bin.Trim().Length == 0)
                    {
                        group = normalGroups[ViewGroup.Unknown];
                    }
                    else
                    {
                        string bin = game.Desktop.Bin.Trim();
                        if (!sortedCustomGroups.ContainsKey(bin))
                        {
                            sortedCustomGroups.Add(bin, new ListViewGroup(bin, HorizontalAlignment.Center));
                        }
                        group = sortedCustomGroups[bin];
                    }
                }
                if (ConfigIni.Instance.ShowGamesWithoutCoverArt)
                {
                    if (!game.Metadata.CustomCoverArt && !game.IsOriginalGame)
                    {
                        group = normalGroups[ViewGroup.NoCoverArt];
                    }
                    else if (ConfigIni.Instance.GamesSorting == MainForm.GamesSorting.Name)
                    {
                        if (ConfigIni.Instance.OriginalGamesPosition == MainForm.OriginalGamesPosition.Sorted || ConfigIni.Instance.OriginalGamesPosition == MainForm.OriginalGamesPosition.Hidden)
                        {
                            group = normalGroups[ViewGroup.All];
                        }
                    }
                }
                item.Group = group;
            }

            return(Tasker.Conclusion.Success);
        }
Exemplo n.º 13
0
        private void Form2_Load(object sender, EventArgs e)
        {
            DanhMuc dmBia = new DanhMuc();

            dmBia.Ma  = "dm1";
            dmBia.Ten = "Danh mục Bia";
            Kho.Add(dmBia);

            SanPham sp1 = new SanPham();

            sp1.Ma  = "sp1";
            sp1.Ten = "Bia 333";
            sp1.Gia = 150;
            dmBia.ThemSanPham(sp1);

            SanPham sp2 = new SanPham();

            sp2.Ma  = "sp2";
            sp2.Ten = "Bia Heniken";
            sp2.Gia = 250;
            dmBia.ThemSanPham(sp2);

            SanPham sp3 = new SanPham();

            sp3.Ma  = "sp3";
            sp3.Ten = "Bia Hà Nội";
            sp3.Gia = 50;
            dmBia.ThemSanPham(sp3);

            DanhMuc dmRuou = new DanhMuc();

            dmRuou.Ma  = "dm2";
            dmRuou.Ten = "Danh mục Rượu";
            Kho.Add(dmRuou);

            SanPham sp4 = new SanPham();

            sp4.Ma  = "sp4";
            sp4.Ten = "Rượu Vodka";
            sp4.Gia = 80;
            dmRuou.ThemSanPham(sp4);

            SanPham sp5 = new SanPham();

            sp5.Ma  = "sp5";
            sp5.Ten = "Rượu Strongbow";
            sp5.Gia = 1450;
            dmRuou.ThemSanPham(sp5);

            foreach (DanhMuc danhMuc in Kho)
            {
                ListViewGroup group = new ListViewGroup(danhMuc.Ten);
                lvSanPham.Groups.Add(group);

                foreach (SanPham sp in danhMuc.sanPhams)
                {
                    ListViewItem item = new ListViewItem(sp.Ma);
                    item.SubItems.Add(sp.Ten);
                    item.SubItems.Add(sp.Gia + "");
                    item.Group = group;
                    lvSanPham.Items.Add(item);
                    if (danhMuc == dmRuou)
                    {
                        item.ForeColor = Color.Red;
                    }
                }
            }
        }
Exemplo n.º 14
0
        private void InitializeComponent()
        {
            ListViewGroup            listViewGroup            = new ListViewGroup("Normal Damage", HorizontalAlignment.Left);
            ListViewGroup            listViewGroup1           = new ListViewGroup("Limited Damage", HorizontalAlignment.Left);
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(QuickReferenceForm));

            this.LevelLbl      = new Label();
            this.LevelBox      = new NumericUpDown();
            this.SkillGroup    = new GroupBox();
            this.SkillList     = new ListView();
            this.DiffHdr       = new ColumnHeader();
            this.DCHdr         = new ColumnHeader();
            this.DamageGroup   = new GroupBox();
            this.DamageList    = new ListView();
            this.TargetHdr     = new ColumnHeader();
            this.DmgHdr        = new ColumnHeader();
            this.Pages         = new TabControl();
            this.ReferencePage = new TabPage();
            ((ISupportInitialize)this.LevelBox).BeginInit();
            this.SkillGroup.SuspendLayout();
            this.DamageGroup.SuspendLayout();
            this.Pages.SuspendLayout();
            this.ReferencePage.SuspendLayout();
            base.SuspendLayout();
            this.LevelLbl.AutoSize = true;
            this.LevelLbl.Location = new Point(8, 8);
            this.LevelLbl.Name     = "LevelLbl";
            this.LevelLbl.Size     = new System.Drawing.Size(36, 13);
            this.LevelLbl.TabIndex = 0;
            this.LevelLbl.Text     = "Level:";
            this.LevelBox.Anchor   = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.LevelBox.Location = new Point(50, 6);
            NumericUpDown levelBox = this.LevelBox;

            int[] numArray = new int[] { 30, 0, 0, 0 };
            levelBox.Maximum = new decimal(numArray);
            NumericUpDown num = this.LevelBox;

            int[] numArray1 = new int[] { 1, 0, 0, 0 };
            num.Minimum            = new decimal(numArray1);
            this.LevelBox.Name     = "LevelBox";
            this.LevelBox.Size     = new System.Drawing.Size(291, 20);
            this.LevelBox.TabIndex = 1;
            NumericUpDown numericUpDown = this.LevelBox;

            int[] numArray2 = new int[] { 1, 0, 0, 0 };
            numericUpDown.Value         = new decimal(numArray2);
            this.LevelBox.ValueChanged += new EventHandler(this.LevelBox_ValueChanged);
            this.SkillGroup.Anchor      = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.SkillGroup.Controls.Add(this.SkillList);
            this.SkillGroup.Location = new Point(8, 32);
            this.SkillGroup.Name     = "SkillGroup";
            this.SkillGroup.Size     = new System.Drawing.Size(333, 118);
            this.SkillGroup.TabIndex = 2;
            this.SkillGroup.TabStop  = false;
            this.SkillGroup.Text     = "Skill DCs";
            this.SkillList.Anchor    = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            ListView.ColumnHeaderCollection columns = this.SkillList.Columns;
            ColumnHeader[] diffHdr = new ColumnHeader[] { this.DiffHdr, this.DCHdr };
            columns.AddRange(diffHdr);
            this.SkillList.FullRowSelect = true;
            this.SkillList.HeaderStyle   = ColumnHeaderStyle.Nonclickable;
            this.SkillList.HideSelection = false;
            this.SkillList.Location      = new Point(6, 19);
            this.SkillList.MultiSelect   = false;
            this.SkillList.Name          = "SkillList";
            this.SkillList.Size          = new System.Drawing.Size(321, 93);
            this.SkillList.TabIndex      = 0;
            this.SkillList.UseCompatibleStateImageBehavior = false;
            this.SkillList.View     = View.Details;
            this.DiffHdr.Text       = "Difficulty";
            this.DiffHdr.Width      = 200;
            this.DCHdr.Text         = "DC";
            this.DCHdr.TextAlign    = HorizontalAlignment.Right;
            this.DCHdr.Width        = 80;
            this.DamageGroup.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.DamageGroup.Controls.Add(this.DamageList);
            this.DamageGroup.Location = new Point(8, 156);
            this.DamageGroup.Name     = "DamageGroup";
            this.DamageGroup.Size     = new System.Drawing.Size(333, 257);
            this.DamageGroup.TabIndex = 3;
            this.DamageGroup.TabStop  = false;
            this.DamageGroup.Text     = "Damage Expressions";
            this.DamageList.Anchor    = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            ListView.ColumnHeaderCollection columnHeaderCollections = this.DamageList.Columns;
            ColumnHeader[] targetHdr = new ColumnHeader[] { this.TargetHdr, this.DmgHdr };
            columnHeaderCollections.AddRange(targetHdr);
            this.DamageList.FullRowSelect = true;
            listViewGroup.Header          = "Normal Damage";
            listViewGroup.Name            = "listViewGroup1";
            listViewGroup1.Header         = "Limited Damage";
            listViewGroup1.Name           = "listViewGroup2";
            this.DamageList.Groups.AddRange(new ListViewGroup[] { listViewGroup, listViewGroup1 });
            this.DamageList.HeaderStyle   = ColumnHeaderStyle.Nonclickable;
            this.DamageList.HideSelection = false;
            this.DamageList.Location      = new Point(6, 19);
            this.DamageList.MultiSelect   = false;
            this.DamageList.Name          = "DamageList";
            this.DamageList.Size          = new System.Drawing.Size(321, 232);
            this.DamageList.TabIndex      = 1;
            this.DamageList.UseCompatibleStateImageBehavior = false;
            this.DamageList.View  = View.Details;
            this.TargetHdr.Text   = "Target";
            this.TargetHdr.Width  = 200;
            this.DmgHdr.Text      = "Damage";
            this.DmgHdr.TextAlign = HorizontalAlignment.Right;
            this.DmgHdr.Width     = 80;
            this.Pages.Controls.Add(this.ReferencePage);
            this.Pages.Dock          = DockStyle.Fill;
            this.Pages.Location      = new Point(0, 0);
            this.Pages.Name          = "Pages";
            this.Pages.SelectedIndex = 0;
            this.Pages.Size          = new System.Drawing.Size(357, 447);
            this.Pages.TabIndex      = 4;
            this.ReferencePage.Controls.Add(this.LevelBox);
            this.ReferencePage.Controls.Add(this.DamageGroup);
            this.ReferencePage.Controls.Add(this.LevelLbl);
            this.ReferencePage.Controls.Add(this.SkillGroup);
            this.ReferencePage.Location = new Point(4, 22);
            this.ReferencePage.Name     = "ReferencePage";
            this.ReferencePage.Padding  = new System.Windows.Forms.Padding(3);
            this.ReferencePage.Size     = new System.Drawing.Size(349, 421);
            this.ReferencePage.TabIndex = 0;
            this.ReferencePage.Text     = "Reference";
            this.ReferencePage.UseVisualStyleBackColor = true;
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            base.ClientSize          = new System.Drawing.Size(357, 447);
            base.Controls.Add(this.Pages);
            base.Icon          = (System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
            base.MaximizeBox   = false;
            base.Name          = "QuickReferenceForm";
            base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
            this.Text          = "Quick Reference";
            base.FormClosed   += new FormClosedEventHandler(this.QuickReferenceForm_FormClosed);
            ((ISupportInitialize)this.LevelBox).EndInit();
            this.SkillGroup.ResumeLayout(false);
            this.DamageGroup.ResumeLayout(false);
            this.Pages.ResumeLayout(false);
            this.ReferencePage.ResumeLayout(false);
            this.ReferencePage.PerformLayout();
            base.ResumeLayout(false);
        }
	public int IndexOf(ListViewGroup value) {}
Exemplo n.º 16
0
        private void CreateStringTableUI()
        {
            int nWidth = m_lvStrings.ClientSize.Width - 20;

            m_ilStr.ColorDepth = ColorDepth.Depth32Bit;
            m_ilStr.ImageSize  = new Size(16, 16);
            m_ilStr.Images.Add(Properties.Resources.B16x16_Binary);
            m_ilStr.Images.Add(Properties.Resources.B16x16_KRec_Record);
            m_ilStr.Images.Add(Properties.Resources.B16x16_LedGreen);
            m_ilStr.Images.Add(Properties.Resources.B16x16_LedLightBlue);
            m_ilStr.Images.Add(Properties.Resources.B16x16_LedLightGreen);
            m_ilStr.Images.Add(Properties.Resources.B16x16_LedOrange);
            m_ilStr.Images.Add(Properties.Resources.B16x16_View_Remove);

            m_lvStrings.SmallImageList = m_ilStr;
            m_tvControls.ImageList     = m_ilStr;

            m_lvStrings.Columns.Add("ID", nWidth / 5);
            m_lvStrings.Columns.Add("English", (nWidth * 2) / 5);
            m_lvStrings.Columns.Add("Translated", (nWidth * 2) / 5);

            m_trl.StringTables.Clear();
            KPStringTable kpstP = new KPStringTable();

            kpstP.Name = "KeePass.Resources.KPRes";
            m_trl.StringTables.Add(kpstP);
            KPStringTable kpstL = new KPStringTable();

            kpstL.Name = "KeePassLib.Resources.KLRes";
            m_trl.StringTables.Add(kpstL);
            KPStringTable kpstM = new KPStringTable();

            kpstM.Name = "KeePass.Forms.MainForm.m_menuMain";
            m_trl.StringTables.Add(kpstM);
            KPStringTable kpstE = new KPStringTable();

            kpstE.Name = "KeePass.Forms.MainForm.m_ctxPwList";
            m_trl.StringTables.Add(kpstE);
            KPStringTable kpstG = new KPStringTable();

            kpstG.Name = "KeePass.Forms.MainForm.m_ctxGroupList";
            m_trl.StringTables.Add(kpstG);
            KPStringTable kpstT = new KPStringTable();

            kpstT.Name = "KeePass.Forms.MainForm.m_ctxTray";
            m_trl.StringTables.Add(kpstT);
            KPStringTable kpstET = new KPStringTable();

            kpstET.Name = "KeePass.Forms.PwEntryForm.m_ctxTools";
            m_trl.StringTables.Add(kpstET);
            KPStringTable kpstDT = new KPStringTable();

            kpstDT.Name = "KeePass.Forms.PwEntryForm.m_ctxDefaultTimes";
            m_trl.StringTables.Add(kpstDT);
            KPStringTable kpstLO = new KPStringTable();

            kpstLO.Name = "KeePass.Forms.PwEntryForm.m_ctxListOperations";
            m_trl.StringTables.Add(kpstLO);
            KPStringTable kpstPG = new KPStringTable();

            kpstPG.Name = "KeePass.Forms.PwEntryForm.m_ctxPwGen";
            m_trl.StringTables.Add(kpstPG);
            KPStringTable kpstSM = new KPStringTable();

            kpstSM.Name = "KeePass.Forms.PwEntryForm.m_ctxStrMoveToStandard";
            m_trl.StringTables.Add(kpstSM);

            Type          tKP = typeof(KPRes);
            ListViewGroup lvg = new ListViewGroup("KeePass Strings");

            m_lvStrings.Groups.Add(lvg);
            foreach (string strKey in KPRes.GetKeyNames())
            {
                PropertyInfo pi = tKP.GetProperty(strKey);
                MethodInfo   mi = pi.GetGetMethod();
                if (mi.ReturnType != typeof(string))
                {
                    MessageBox.Show("Return type is not string:\r\n" +
                                    strKey, "TrlUtil: Fatal error!", MessageBoxButtons.OK,
                                    MessageBoxIcon.Error);
                    return;
                }

                string strEng = mi.Invoke(null, null) as string;
                if (strEng == null)
                {
                    MessageBox.Show("English string is null:\r\n" +
                                    strKey, "TrlUtil: Fatal error!", MessageBoxButtons.OK,
                                    MessageBoxIcon.Error);
                    return;
                }

                KPStringTableItem kpstItem = new KPStringTableItem();
                kpstItem.Name         = strKey;
                kpstItem.ValueEnglish = strEng;
                kpstP.Strings.Add(kpstItem);

                ListViewItem lvi = new ListViewItem();
                lvi.Group = lvg;
                lvi.Text  = strKey;
                lvi.SubItems.Add(strEng);
                lvi.SubItems.Add(string.Empty);
                lvi.Tag        = kpstItem;
                lvi.ImageIndex = 0;
                m_lvStrings.Items.Add(lvi);
            }

            Type tKL = typeof(KLRes);

            lvg = new ListViewGroup("KeePass Library Strings");
            m_lvStrings.Groups.Add(lvg);
            foreach (string strLibKey in KLRes.GetKeyNames())
            {
                PropertyInfo pi = tKL.GetProperty(strLibKey);
                MethodInfo   mi = pi.GetGetMethod();
                if (mi.ReturnType != typeof(string))
                {
                    MessageBox.Show("Return type is not string:\r\n" +
                                    strLibKey, "TrlUtil: Fatal error!", MessageBoxButtons.OK,
                                    MessageBoxIcon.Error);
                    return;
                }

                string strEng = mi.Invoke(null, null) as string;
                if (strEng == null)
                {
                    MessageBox.Show("English string is null:\r\n" +
                                    strLibKey, "TrlUtil: Fatal error!", MessageBoxButtons.OK,
                                    MessageBoxIcon.Error);
                    return;
                }

                KPStringTableItem kpstItem = new KPStringTableItem();
                kpstItem.Name         = strLibKey;
                kpstItem.ValueEnglish = strEng;
                kpstL.Strings.Add(kpstItem);

                ListViewItem lvi = new ListViewItem();
                lvi.Group = lvg;
                lvi.Text  = strLibKey;
                lvi.SubItems.Add(strEng);
                lvi.SubItems.Add(string.Empty);
                lvi.Tag        = kpstItem;
                lvi.ImageIndex = 0;
                m_lvStrings.Items.Add(lvi);
            }

            lvg = new ListViewGroup("Main Menu Commands");
            m_lvStrings.Groups.Add(lvg);
            KeePass.Forms.MainForm mf = new KeePass.Forms.MainForm();
            TrlAddMenuCommands(kpstM, lvg, mf.MainMenu.Items);

            lvg = new ListViewGroup("Entry Context Menu Commands");
            m_lvStrings.Groups.Add(lvg);
            TrlAddMenuCommands(kpstE, lvg, mf.EntryContextMenu.Items);

            lvg = new ListViewGroup("Group Context Menu Commands");
            m_lvStrings.Groups.Add(lvg);
            TrlAddMenuCommands(kpstG, lvg, mf.GroupContextMenu.Items);

            lvg = new ListViewGroup("System Tray Context Menu Commands");
            m_lvStrings.Groups.Add(lvg);
            TrlAddMenuCommands(kpstT, lvg, mf.TrayContextMenu.Items);

            lvg = new ListViewGroup("Entry Tools Context Menu Commands");
            m_lvStrings.Groups.Add(lvg);
            KeePass.Forms.PwEntryForm ef = new KeePass.Forms.PwEntryForm();
            TrlAddMenuCommands(kpstET, lvg, ef.ToolsContextMenu.Items);

            lvg = new ListViewGroup("Default Times Context Menu Commands");
            m_lvStrings.Groups.Add(lvg);
            TrlAddMenuCommands(kpstDT, lvg, ef.DefaultTimesContextMenu.Items);

            lvg = new ListViewGroup("List Operations Context Menu Commands");
            m_lvStrings.Groups.Add(lvg);
            TrlAddMenuCommands(kpstLO, lvg, ef.ListOperationsContextMenu.Items);

            lvg = new ListViewGroup("Password Generator Context Menu Commands");
            m_lvStrings.Groups.Add(lvg);
            TrlAddMenuCommands(kpstPG, lvg, ef.PasswordGeneratorContextMenu.Items);

            lvg = new ListViewGroup("Standard String Movement Context Menu Commands");
            m_lvStrings.Groups.Add(lvg);
            TrlAddMenuCommands(kpstSM, lvg, ef.StandardStringMovementContextMenu.Items);
        }
	public void Remove(ListViewGroup group) {}
Exemplo n.º 18
0
        private void display_Load(object sender, EventArgs e)
        {
            // lblVersion.Text = ConnectDB.VersionFms;

            //GETIM();
            try
            {
                var Data = (from OpenFormdata in GetData.Sp_ADM03_OpenFormSelect()
                            where OpenFormdata.NodeName == this.sqlname
                            select OpenFormdata).ToList();

                this.panel1.Size = new System.Drawing.Size(769, 70);
                ////////////////////
                listView1.Items.Clear();
                listView1.BeginUpdate();
                listView1.LargeImageList = imageList3;
                listView1.View           = View.Tile;
                ListViewGroup group1 = listView1.Groups[0];
                ListViewGroup group2 = listView1.Groups[1];

                foreach (var c in Data)
                {
                    ListItem = new ListViewItem(c.TextNode.ToString());
                    if (c.TypeNode.Equals("Report"))
                    {
                        ListItem.Group      = group2;
                        ListItem.ImageIndex = 1;
                    }
                    else
                    {
                        ListItem.Group      = group1;
                        ListItem.ImageIndex = 0;
                        if (c.LinkNode.ToString().Equals("ShippingReport"))
                        {
                            ListItem.ImageIndex = 1;
                        }
                        else if (c.LinkNode.ToString().Equals("ReportAccount"))
                        {
                            ListItem.ImageIndex = 2;
                        }
                        else if (c.LinkNode.ToString().Equals("StockBalance"))
                        {
                            ListItem.ImageIndex = 3;
                        }
                        else if (c.LinkNode.ToString().Equals("ReportPart"))
                        {
                            ListItem.ImageIndex = 4;
                        }
                        else if (c.LinkNode.ToString().Equals("ReportReceive"))
                        {
                            ListItem.ImageIndex = 5;
                        }
                        else if (c.LinkNode.ToString().Equals("ReportPR"))
                        {
                            ListItem.ImageIndex = 6;
                        }
                        else if (c.LinkNode.ToString().Equals("ReportStock"))
                        {
                            ListItem.ImageIndex = 7;
                        }
                        else if (c.LinkNode.ToString().Equals("ReportRC") ||
                                 c.LinkNode.ToString().Equals("ReportExport") ||
                                 c.LinkNode.ToString().Equals("ReportLocal") ||
                                 c.LinkNode.ToString().Equals("ReportPD")
                                 )
                        {
                            ListItem.ImageIndex = 8;
                        }
                        else if (c.LinkNode.ToString().Equals("ReportWaitingOrder"))
                        {
                            ListItem.ImageIndex = 9;
                        }
                        else if (c.LinkNode.ToString().Equals("ReportAdjustStock"))
                        {
                            ListItem.ImageIndex = 10;
                        }
                        else if (c.LinkNode.ToString().Equals("MasterModel"))
                        {
                            ListItem.ImageIndex = 11;
                        }
                        else if (c.LinkNode.ToString().Equals("ModelMapping"))
                        {
                            ListItem.ImageIndex = 12;
                        }
                        else if (c.LinkNode.ToString().Equals("Forecast"))
                        {
                            ListItem.ImageIndex = 13;
                        }
                        else if (c.LinkNode.ToString().Equals("CalculatePlanning"))
                        {
                            ListItem.ImageIndex = 14;
                        }
                        else if (c.LinkNode.ToString().Equals("CreatePart"))
                        {
                            ListItem.ImageIndex = 15;
                        }
                        else if (c.LinkNode.ToString().Equals("UserList") ||
                                 c.LinkNode.ToString().Equals("UserSetup") ||
                                 c.LinkNode.ToString().Equals("LocationWH") ||
                                 c.LinkNode.ToString().Equals("ListItem") ||
                                 c.LinkNode.ToString().Equals("ListPO") ||
                                 c.LinkNode.ToString().Equals("ListQueue") ||
                                 c.LinkNode.ToString().Equals("ReceiveList") ||
                                 c.LinkNode.ToString().Equals("Receive") ||
                                 c.LinkNode.ToString().Equals("UploadExList") ||
                                 c.LinkNode.ToString().Equals("ExportList") ||
                                 c.LinkNode.ToString().Equals("ExShipment") ||
                                 c.LinkNode.ToString().Equals("GuidelineLot") ||
                                 c.LinkNode.ToString().Equals("LocalList") ||
                                 c.LinkNode.ToString().Equals("LocalShipment") ||
                                 c.LinkNode.ToString().Equals("UploadLocal") ||
                                 c.LinkNode.ToString().Equals("CheckStockList") ||
                                 c.LinkNode.ToString().Equals("CheckStock") ||
                                 c.LinkNode.ToString().Equals("ProductionBom") ||
                                 c.LinkNode.ToString().Equals("PrintRW") ||
                                 c.LinkNode.ToString().Equals("PCCheck") ||
                                 c.LinkNode.ToString().Equals("ListWO") ||
                                 c.LinkNode.ToString().Equals("ListMapItem")

                                 )
                        {
                            ListItem.ImageIndex = 16;
                        }
                        else if (c.LinkNode.ToString().Equals("ExportImportPart"))
                        {
                            ListItem.ImageIndex = 17;
                        }
                        else if (c.LinkNode.ToString().Equals("WaitingPR"))
                        {
                            ListItem.ImageIndex = 18;
                        }
                        else if (c.LinkNode.ToString().Equals("CreatePR"))
                        {
                            ListItem.ImageIndex = 19;
                        }
                        else if (c.LinkNode.ToString().Equals("CreatePR_List"))
                        {
                            ListItem.ImageIndex = 20;
                        }
                        else if (c.LinkNode.ToString().Equals("Receive"))
                        {
                            ListItem.ImageIndex = 21;
                        }
                        else if (c.LinkNode.ToString().Equals("ReceiveList"))
                        {
                            ListItem.ImageIndex = 22;
                        }
                        else if (c.LinkNode.ToString().Equals("ReturnReceive"))
                        {
                            ListItem.ImageIndex = 23;
                        }
                        else if (c.LinkNode.ToString().Equals("ChangeInvoice"))
                        {
                            ListItem.ImageIndex = 24;
                        }
                        else if (c.LinkNode.ToString().Equals("Shipping"))
                        {
                            ListItem.ImageIndex = 25;
                        }
                        else if (c.LinkNode.ToString().Equals("ShippingList"))
                        {
                            ListItem.ImageIndex = 26;
                        }
                        else if (c.LinkNode.ToString().Equals("ShippingCancel"))
                        {
                            ListItem.ImageIndex = 27;
                        }
                        else if (c.LinkNode.ToString().Equals("StockList"))
                        {
                            ListItem.ImageIndex = 28;
                        }
                        else if (c.LinkNode.ToString().Equals("AdjustStock"))
                        {
                            ListItem.ImageIndex = 29;
                        }
                        else if (c.LinkNode.ToString().Equals("MovementStock"))
                        {
                            ListItem.ImageIndex = 30;
                        }
                        else if (c.LinkNode.ToString().Equals("ClearTempList"))
                        {
                            ListItem.ImageIndex = 18;
                        }
                        else
                        {
                            ListItem.ImageIndex = 0;
                        }
                        //if (c.LinkNode.ToString().Equals("SaleOrderList") || c.LinkNode.ToString().Equals("ToolsList") || c.LinkNode.ToString().Equals("KanbanListTx"))
                        //    ListItem.ForeColor = Color.Blue;
                        //else if (c.LinkNode.ToString().Equals("ToolsListShelf") || c.LinkNode.ToString().Equals("ReqOrderList"))
                        //    ListItem.ForeColor = Color.Green;
                    }
                    ListItem.Name        = c.TypeNode.ToString();
                    ListItem.Tag         = c.DialogFlag.ToString();
                    ListItem.ToolTipText = c.LinkNode.ToString();
                    listView1.Items.Add(ListItem);
                }
                listView1.EndUpdate();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            finally
            {
                //if (this.sqlname.Equals("Tools"))
                //    listView1.Sorting = SortOrder.Ascending;
                GC.Collect();
                GC.WaitForPendingFinalizers();

                ClassLib.Memory.SetProcessWorkingSetSize(System.Diagnostics.Process.GetCurrentProcess().Handle, -1, -1);
                ClassLib.Memory.Heap();
            }

            ///////////////////////////////////////////////////////



            //**darky
            //if (ConnectDB.User.ToLower().Equals("admin") || ConnectDB.User.ToLower().Equals("pongsakorn_s"))
            //if(true)
            //{
            //    if (sqlname.Equals("Approve"))
            //    {
            //        foreach (ListViewItem item in listView1.Items)
            //        {
            //            if ((new List<string> { "P/O View", "Drawing AP", "Approve Order" }).Contains(item.Text))
            //                listView1.Items.Remove(item);
            //        }
            //    }
            //}
        }
	public ListViewItem(ListViewGroup group) {}
Exemplo n.º 20
0
 public static void AddItemToGroup(this ListView lv, ListViewItem lvi, ListViewGroup group)
 {
     lv.Groups.Add(group);
     lv.Items.Add(lvi);
     lvi.Group = group;
 }
	public ListViewItem(string[] items, int imageIndex, ListViewGroup group) {}
Exemplo n.º 22
0
 public static int AddGroup(this ListView lv, ListViewGroup group)
 {
     return(lv.Groups.Add(group));
 }
	public ListViewItem(string[] items, string imageKey, System.Drawing.Color foreColor, System.Drawing.Color backColor, System.Drawing.Font font, ListViewGroup group) {}
Exemplo n.º 24
0
        private void UpdateFileStatusListView(bool updateCausedByFilter = false)
        {
            if (_itemsDictionary == null || !_itemsDictionary.Any())
            {
                HandleVisibility_NoFilesLabel_FilterComboBox(filesPresent: false);
            }
            else
            {
                EnsureSelectedIndexChangeSubscription();
                HandleVisibility_NoFilesLabel_FilterComboBox(filesPresent: true);
            }
            FileStatusListView.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent);

            var previouslySelectedItems = new List <GitItemStatus>();

            if (updateCausedByFilter)
            {
                foreach (ListViewItem Item in FileStatusListView.SelectedItems)
                {
                    previouslySelectedItems.Add((GitItemStatus)Item.Tag);
                }
            }

            FileStatusListView.BeginUpdate();
            FileStatusListView.ShowGroups = _itemsDictionary != null && _itemsDictionary.Count > 1;
            FileStatusListView.Groups.Clear();
            FileStatusListView.Items.Clear();
            if (_itemsDictionary != null)
            {
                var list = new List <ListViewItem>();
                foreach (var pair in _itemsDictionary)
                {
                    ListViewGroup group = null;
                    if (!String.IsNullOrEmpty(pair.Key))
                    {
                        var groupName = "";
                        if (pair.Key == CombinedDiff.Text)
                        {
                            groupName = CombinedDiff.Text;
                        }
                        else
                        {
                            string shortHash = pair.Key.Length > 8 ? pair.Key.Substring(0, 8) : pair.Key;
                            groupName = _DiffWithParent.Text + " " + shortHash;
                        }

                        group     = new ListViewGroup(groupName);
                        group.Tag = pair.Key;
                        FileStatusListView.Groups.Add(group);
                    }
                    foreach (var item in pair.Value)
                    {
                        if (_filter.IsMatch(item.Name))
                        {
                            var listItem = new ListViewItem(item.Name, group);
                            listItem.ImageIndex = GetItemImageIndex(item);
                            if (item.SubmoduleStatus != null && !item.SubmoduleStatus.IsCompleted)
                            {
                                var capturedItem = item;
                                item.SubmoduleStatus.ContinueWith((task) => listItem.ImageIndex = GetItemImageIndex(capturedItem),
                                                                  CancellationToken.None,
                                                                  TaskContinuationOptions.OnlyOnRanToCompletion,
                                                                  TaskScheduler.FromCurrentSynchronizationContext());
                            }
                            if (previouslySelectedItems.Contains(item))
                            {
                                listItem.Selected = true;
                            }
                            listItem.Tag = item;
                            list.Add(listItem);
                        }
                    }
                }
                FileStatusListView.Items.AddRange(list.ToArray());
            }
            if (updateCausedByFilter == false)
            {
                FileStatusListView_SelectedIndexChanged();
                if (DataSourceChanged != null)
                {
                    DataSourceChanged(this, new EventArgs());
                }
                if (SelectFirstItemOnSetItems)
                {
                    SelectFirstVisibleItem();
                }
            }
            FileStatusListView_SizeChanged(null, null);
            FileStatusListView.SetGroupState(ListViewGroupState.Collapsible);
            FileStatusListView.EndUpdate();
        }
Exemplo n.º 25
0
 public FixedListViewItem(String text, ListViewGroup @group)
     : base(text, @group)
 {
 }
Exemplo n.º 26
0
 private void addProcessWindows(ListViewGroup group)
 {
 }
Exemplo n.º 27
0
 public FixedListViewItem(String[] items, ListViewGroup @group)
     : base(items, @group)
 {
 }
Exemplo n.º 28
0
        private void UpdateFileStatusListView(bool updateCausedByFilter = false)
        {
            if (_itemsDictionary == null || !_itemsDictionary.Any())
            {
                HandleVisibility_NoFilesLabel_FilterComboBox(filesPresent: false);
            }
            else
            {
                EnsureSelectedIndexChangeSubscription();
                HandleVisibility_NoFilesLabel_FilterComboBox(filesPresent: true);
            }
            FileStatusListView.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent);

            var previouslySelectedItems = new List <GitItemStatus>();

            if (updateCausedByFilter)
            {
                foreach (ListViewItem Item in FileStatusListView.SelectedItems)
                {
                    previouslySelectedItems.Add((GitItemStatus)Item.Tag);
                }

                DataSourceChanged?.Invoke(this, new EventArgs());
            }

            FileStatusListView.BeginUpdate();
            FileStatusListView.ShowGroups = _itemsDictionary != null && _itemsDictionary.Count > 1;
            FileStatusListView.Groups.Clear();
            FileStatusListView.Items.Clear();
            if (_itemsDictionary != null)
            {
                var clientSizeWidth  = AppSettings.TruncatePathMethod == "compact" || AppSettings.TruncatePathMethod == "trimstart";
                var fileNameOnlyMode = AppSettings.TruncatePathMethod == "fileNameOnly";

                var list = new List <ListViewItem>();
                foreach (var pair in _itemsDictionary)
                {
                    ListViewGroup group = null;
                    if (!String.IsNullOrEmpty(pair.Key))
                    {
                        var groupName = "";
                        if (pair.Key == CombinedDiff.Text)
                        {
                            groupName = CombinedDiff.Text;
                        }
                        else
                        {
                            groupName = _DiffWithParent.Text + " " + GetDescriptionForRevision(pair.Key);
                        }

                        group     = new ListViewGroup(groupName);
                        group.Tag = pair.Key;
                        FileStatusListView.Groups.Add(group);
                    }
                    foreach (var item in pair.Value)
                    {
                        if (_filter.IsMatch(item.Name))
                        {
                            var text = item.Name;
                            if (clientSizeWidth)
                            {
                                // list-item has client width, so we don't need horizontal scrollbar (which is determined by this text width)
                                text = string.Empty;
                            }
                            else if (fileNameOnlyMode)
                            {
                                // we need to put filename in list-item text -> then horizontal scrollbar
                                // will have proper width (by the longest filename, and not all path)
                                text = PathFormatter.FormatTextForFileNameOnly(item.Name, item.OldName);
                                text = AppendItemSubmoduleStatus(text, item);
                            }

                            var listItem = new ListViewItem(text, group);
                            listItem.ImageIndex = GetItemImageIndex(item);
                            if (item.SubmoduleStatus != null && !item.SubmoduleStatus.IsCompleted)
                            {
                                var capturedItem = item;
                                item.SubmoduleStatus.ContinueWith((task) => listItem.ImageIndex = GetItemImageIndex(capturedItem),
                                                                  CancellationToken.None,
                                                                  TaskContinuationOptions.OnlyOnRanToCompletion,
                                                                  TaskScheduler.FromCurrentSynchronizationContext());
                            }
                            if (previouslySelectedItems.Contains(item))
                            {
                                listItem.Selected = true;
                            }
                            listItem.Tag = item;
                            list.Add(listItem);
                        }
                    }
                }
                FileStatusListView.Items.AddRange(list.ToArray());
            }
            if (updateCausedByFilter == false)
            {
                FileStatusListView_SelectedIndexChanged();
                DataSourceChanged?.Invoke(this, new EventArgs());
                if (SelectFirstItemOnSetItems)
                {
                    SelectFirstVisibleItem();
                }
            }
            FileStatusListView_SizeChanged(null, null);
            FileStatusListView.SetGroupState(ListViewGroupState.Collapsible);
            FileStatusListView.EndUpdate();
        }
Exemplo n.º 29
0
 public FixedListViewItem(String[] items, Int32 imageIndex, Color foreColor, Color backColor, Font font, ListViewGroup @group)
     : base(items, imageIndex, foreColor, backColor, font, @group)
 {
 }
Exemplo n.º 30
0
        public Tasker.Conclusion UpdateListView(Tasker tasker, Object syncObject = null)
        {
            if (tasker.HostForm.Disposing)
            {
                return(Tasker.Conclusion.Abort);
            }
            if (tasker.HostForm.InvokeRequired)
            {
                return((Tasker.Conclusion)tasker.HostForm.Invoke(new Func <Tasker, Object, Tasker.Conclusion>(UpdateListView), new object[] { tasker, syncObject }));
            }
            if (addedApps != null)
            {
                tasker.SetTitle(Resources.UpdatingList);

                // show select core dialog if applicable
                var unknownApps = new List <NesApplication>();
                foreach (var app in addedApps)
                {
                    if (!app.SkipCoreSelect && app.Metadata.AppInfo.Unknown)
                    {
                        unknownApps.Add(app);
                    }
                }
                if (unknownApps.Count > 0)
                {
                    using (SelectCoreDialog selectCoreDialog = new SelectCoreDialog())
                    {
                        selectCoreDialog.Games.AddRange(unknownApps);
                        selectCoreDialog.ShowDialog(tasker.HostForm);
                    }
                }

                // show select cover dialog if applicable
                unknownApps.Clear();
                foreach (var app in addedApps)
                {
                    if (!app.CoverArtMatchSuccess && app.CoverArtMatches.Any())
                    {
                        unknownApps.Add(app);
                    }
                }
                if (unknownApps.Count > 0)
                {
                    using (SelectCoverDialog selectCoverDialog = new SelectCoverDialog())
                    {
                        selectCoverDialog.Games.AddRange(unknownApps);
                        selectCoverDialog.ShowDialog(tasker.HostForm);
                    }
                }

                // update list view
                try
                {
                    listViewGames.BeginUpdate();
                    foreach (ListViewItem item in listViewGames.Items)
                    {
                        item.Selected = false;
                    }

                    // add games, only new ones
                    var newApps         = addedApps.Distinct(new NesApplication.NesAppEqualityComparer());
                    var newCodes        = from app in newApps select app.Code;
                    var oldAppsReplaced = from app in listViewGames.Items.Cast <ListViewItem>().ToArray()
                                          where (app.Tag is NesApplication) && newCodes.Contains((app.Tag as NesApplication).Code)
                                          select app;

                    // find "new apps" group
                    ListViewGroup newGroup = null;
                    if (listViewGames.Groups.Count > 0)
                    {
                        newGroup = listViewGames.Groups.OfType <ListViewGroup>().Where(group => group.Header == Resources.ListCategoryNew).FirstOrDefault();
                    }

                    int i = 0, max = newApps.Count() + oldAppsReplaced.Count();
                    foreach (var replaced in oldAppsReplaced)
                    {
                        listViewGames.Items.Remove(replaced);
                        tasker.SetProgress(++i, max);
                    }
                    foreach (var newApp in newApps)
                    {
                        ConfigIni.Instance.AddNewSelectedGame(newApp.Code);
                        var item = new ListViewItem(newApp.Name);
                        item.Group    = newGroup;
                        item.Tag      = newApp;
                        item.Selected = true;
                        item.Checked  = true;
                        listViewGames.Items.Add(item);
                        tasker.SetProgress(++i, max);
                    }
                }
                finally
                {
                    listViewGames.EndUpdate();
                }
            }
            return(Tasker.Conclusion.Success);
        }
Exemplo n.º 31
0
 public void SetGroupFooter(ListViewGroup lvg, string footerText)
 {
     setGrpFooter(lvg, footerText);
 }
Exemplo n.º 32
0
        private List <object> GetFoundEntriesList(PwGroup g, Dictionary <PwEntry, int> dEntryIconIndex)
        {
            List <Object> l = new List <object>();

            m_lEntryListColumns = new List <AceColumn>();
            List <AceColumn> lColumns = null;

            if (m_miGetEntryFieldEx != null)
            {
                lColumns = KeePass.Program.Config.MainWindow.EntryListColumns;
            }
            else             //add a basic set of columns
            {
                lColumns = new List <AceColumn>();
                AddColumn(lColumns, AceColumnType.Title, false);
                AddColumn(lColumns, AceColumnType.UserName, false);
                AddColumn(lColumns, AceColumnType.Password, true);
                AddColumn(lColumns, AceColumnType.Url, false);
                AddColumn(lColumns, AceColumnType.Notes, false);
            }
            foreach (PwEntry pe in g.Entries)
            {
                PwGroup pg = pe.ParentGroup;
                if (pg != null)
                {
                    if (l.Find(x => (x is ListViewGroup) && ((x as ListViewGroup).Tag == pg)) == null)
                    {
                        ListViewGroup lvg = new ListViewGroup(pg.GetFullPath(" - ", pg.ParentGroup == null));
                        lvg.Tag = pg;
                        l.Add(lvg);
                    }
                }
                ListViewItem lvi = new ListViewItem();
                lvi.Tag        = new object[] { pe, g };
                lvi.Text       = SearchHelp.GetDBName(pe);
                lvi.ImageIndex = dEntryIconIndex[pe];
                ListViewItem.ListViewSubItem lvsi = null;
                //Show all columns that are shown in the entry list view if possible
                if (m_miGetEntryFieldEx != null)
                {
                    for (int i = 0; i < lColumns.Count; i++)
                    {
                        lvsi      = new ListViewItem.ListViewSubItem();
                        lvsi.Text = (string)m_miGetEntryFieldEx.Invoke(m_host.MainWindow, new object[] { pe, i, true, null });
                        if (!m_lEntryListColumns.Contains(lColumns[i]))
                        {
                            m_lEntryListColumns.Add(lColumns[i]);
                        }
                        lvi.SubItems.Add(lvsi);
                    }
                }
                else                 //Show a basic set of columns
                {
                    foreach (AceColumn c in lColumns)
                    {
                        lvsi = new ListViewItem.ListViewSubItem();
                        if (c.Type == AceColumnType.Title)
                        {
                            lvsi.Text = c.HideWithAsterisks ? PwDefs.HiddenPassword : pe.Strings.ReadSafe(PwDefs.TitleField);
                        }
                        if (c.Type == AceColumnType.UserName)
                        {
                            lvsi.Text = c.HideWithAsterisks ? PwDefs.HiddenPassword : pe.Strings.ReadSafe(PwDefs.UserNameField);
                        }
                        if (c.Type == AceColumnType.Password)
                        {
                            lvsi.Text = c.HideWithAsterisks ? PwDefs.HiddenPassword : pe.Strings.ReadSafe(PwDefs.PasswordField);
                        }
                        if (c.Type == AceColumnType.Url)
                        {
                            lvsi.Text = c.HideWithAsterisks ? PwDefs.HiddenPassword : pe.Strings.ReadSafe(PwDefs.UrlField);
                        }
                        if (c.Type == AceColumnType.Notes)
                        {
                            lvsi.Text = c.HideWithAsterisks ? PwDefs.HiddenPassword : KeePassLib.Utility.StrUtil.MultiToSingleLine(pe.Strings.ReadSafe(PwDefs.NotesField));
                        }
                        //Deref data if required
                        lvsi.Text = DerefString(lvsi.Text, pe);
                        if (!m_lEntryListColumns.Contains(c))
                        {
                            m_lEntryListColumns.Add(c);
                        }
                        lvi.SubItems.Add(lvsi);
                    }
                    ;
                };
                l.Add(lvi);
            }
            return(l);
        }
	public void Insert(int index, ListViewGroup group) {}
Exemplo n.º 34
0
 private ListViewItem getRecSugItem(NetModuleCache cache, CkanModule module, string descrip, ListViewGroup group, bool check)
 {
     return(new ListViewItem(new string[]
     {
         module.IsDLC?module.name
         : cache.IsMaybeCachedZip(module)
                 ? string.Format(Properties.Resources.MainChangesetCached, module.name, module.version)
                 : string.Format(Properties.Resources.MainChangesetHostSize, module.name, module.version, module.download?.Host ?? "", CkanModule.FmtSize(module.download_size)),
         descrip,
         module.@abstract
     })
     {
         Tag = module,
         Checked = check,
         Group = group
     });
 }
	// Methods
	public int Add(ListViewGroup group) {}
Exemplo n.º 36
0
        public void PopulateListViewDetails(ListView Lv)
        {
            Lv.Items.Clear();
            ListViewGroup grpGeneral = Lv.Groups.Add("General", "General");

            Utils.AddListViewEntry(
                Lv,
                "dds_version_number",
                this.DisplayDefinitionVersionNumber.ToString(),
                "The version of this display definition segment. When any of the contents of this display definition segment change, this version number is incremented(modulo 16).",
                grpGeneral
                );

            Utils.AddListViewEntry(
                Lv,
                "display_window_flag",
                this.DisplayWindowFlag.ToString(),
                "If display_window_flag = 1, the DVB subtitle display set associated with this display definition segment is intended to be rendered in a window within the display resolution defined by display_width and display_height.The size and position of this window within the display is defined by the parameters signalled in this display definition segment as display_window_horizontal_position_minimum, display_window_horizontal_position_maximum, display_window_vertical_position_minimum and display_window_vertical_position_maximum. If display_window_flag = 0, the DVB subtitle display set associated with this display_definition_segment is intended to be rendered directly within the display resolution defined by display_width and display_height.",
                grpGeneral
                );

            Utils.AddListViewEntry(
                Lv,
                "display_width",
                this.DisplayWidth.ToString(),
                "Specifies the maximum horizontal width of the display in pixels minus 1 assumed by the subtitling stream associated with this display definition segment.The value in this field shall be in the region 0..4095",
                grpGeneral
                );

            Utils.AddListViewEntry(
                Lv,
                "display_height",
                this.DisplayHeight.ToString(),
                " Specifies the maximum vertical height of the display in lines minus 1 assumed by the subtitling stream associated with this display definition segment.The value in this field shall be in the region 0..4095.",
                grpGeneral
                );

            Utils.AddListViewEntry(
                Lv,
                "display_window_horizontal_position_minimum",
                this.DisplayWindowHorizontalPositionMinimum.ToString(),
                "Specifies the left-hand most pixel of this DVB subtitle display set with reference to the left - hand most pixel of the display.",
                grpGeneral
                );

            Utils.AddListViewEntry(
                Lv,
                "display_window_horizontal_position_maximum",
                this.DisplayWindowHorizontalPositionMaximum.ToString(),
                "Specifies the right-hand most pixel of this DVB subtitle display set with reference to the left - hand most pixel of the display.",
                grpGeneral
                );

            Utils.AddListViewEntry(
                Lv,
                "display_window_vertical_position_minimum",
                this.DisplayWindowVerticalPositionMinimum.ToString(),
                "Specifies the upper most line of this DVB subtitle display set with reference to the top line of the display.",
                grpGeneral
                );

            Utils.AddListViewEntry(
                Lv,
                "display_window_vertical_position_maximum",
                this.DisplayWindowVerticalPositionMaximum.ToString(),
                "Specifies the bottom line of this DVB subtitle display set with reference to the top line of the display.",
                grpGeneral
                );
        }
	public bool Contains(ListViewGroup value) {}
Exemplo n.º 38
0
 public FixedListViewItem(String text, String imageKey, ListViewGroup @group)
     : base(text, imageKey, @group)
 {
 }
	public ListViewItem(string text, ListViewGroup group) {}
Exemplo n.º 40
0
 public FixedListViewItem(String[] items, String imageKey, ListViewGroup @group)
     : base(items, imageKey, @group)
 {
 }
	public ListViewItem(string[] items, ListViewGroup group) {}
Exemplo n.º 42
0
 public FixedListViewItem(String[] items, String imageKey, Color foreColor, Color backColor, Font font, ListViewGroup @group)
     : base(items, imageKey, foreColor, backColor, font, @group)
 {
 }
	public ListViewItem(ListViewSubItem[] subItems, int imageIndex, ListViewGroup group) {}
Exemplo n.º 44
0
 public FixedListViewItem([NotNull] ListViewSubItem[] subItems, String imageKey, ListViewGroup @group)
     : base(subItems, imageKey, @group)
 {
 }
	public ListViewItem(string[] items, string imageKey, ListViewGroup group) {}
Exemplo n.º 46
0
 public FixedListViewItem(ListViewGroup @group)
     : base(@group)
 {
 }
	public ListViewItem(ListViewSubItem[] subItems, string imageKey, ListViewGroup group) {}
Exemplo n.º 48
0
 public void addListViewGroup(ListView list, ListViewGroup add_me)
 {
     if(list.InvokeRequired) {
             list.Invoke(new addListViewGroupDelegate(addListViewGroup),new Object[] {list,add_me});
         } else {
             lock(list) {
                 list.Groups.Add(add_me);
             }
         }
 }