コード例 #1
0
ファイル: Main.cs プロジェクト: slawer/service
        private void plugins_Click(object sender, EventArgs e)
        {
            PluginsForm f = new PluginsForm();

            foreach (PluginInfo pinfo in m.PluginsInfo)
            {
                ListViewItem item = new ListViewItem(pinfo.number.ToString());

                ListViewItem.ListViewSubItem name        = new ListViewItem.ListViewSubItem(item, pinfo.Name);
                ListViewItem.ListViewSubItem author      = new ListViewItem.ListViewSubItem(item, pinfo.Author);
                ListViewItem.ListViewSubItem description = new ListViewItem.ListViewSubItem(item, pinfo.Description);
                ListViewItem.ListViewSubItem version     = new ListViewItem.ListViewSubItem(item, pinfo.version.ToString());

                item.SubItems.Add(name);
                item.SubItems.Add(author);
                item.SubItems.Add(description);
                item.SubItems.Add(version);

                f.listView.Items.Add(item);
            }

            f.ShowDialog(this);
        }
コード例 #2
0
ファイル: Main.cs プロジェクト: slawer/service
        private void plugins_Click(object sender, EventArgs e)
        {
            PluginsForm f = new PluginsForm();

            foreach (PluginInfo pinfo in m.PluginsInfo)
            {
                ListViewItem item = new ListViewItem(pinfo.number.ToString());

                ListViewItem.ListViewSubItem name = new ListViewItem.ListViewSubItem(item, pinfo.Name);
                ListViewItem.ListViewSubItem author = new ListViewItem.ListViewSubItem(item, pinfo.Author);
                ListViewItem.ListViewSubItem description = new ListViewItem.ListViewSubItem(item, pinfo.Description);
                ListViewItem.ListViewSubItem version = new ListViewItem.ListViewSubItem(item, pinfo.version.ToString());

                item.SubItems.Add(name);
                item.SubItems.Add(author);
                item.SubItems.Add(description);
                item.SubItems.Add(version);

                f.listView.Items.Add(item);
            }

            f.ShowDialog(this);
        }