コード例 #1
0
        private void AboutForm_Load(object sender, EventArgs e)
        {
            applicationNameLabel.Text = AssemblyUtility.GetTitle(Assembly.GetExecutingAssembly());
            versionNumberLabel.Text   = AssemblyUtility.GetVersion(Assembly.GetExecutingAssembly()).ToString();
            copyrightLabel.Text       = AssemblyUtility.GetCopyright(Assembly.GetExecutingAssembly());

            // プラグインのバージョンを表示
            pluginListBox.BeginUpdate();
            pluginListBox.Items.Clear();
            foreach (HeadlinePlugin plugin in HeadlinePluginManager.Plugins)
            {
                Assembly asm = Assembly.LoadFrom(plugin.Location);
                pluginListBox.Items.Add(string.Format("{0} / {1}", plugin.Kind, AssemblyUtility.GetVersion(asm).ToString()));
            }
            pluginListBox.EndUpdate();
        }
コード例 #2
0
 private void AboutForm_Load(object sender, EventArgs e)
 {
     applicationNameLabel.Text = AssemblyUtility.GetTitle(Assembly2.GetEntryAssembly());
     versionNumberLabel.Text   = AssemblyUtility.GetVersion(Assembly2.GetEntryAssembly()).ToString();
     copyrightLabel.Text       = AssemblyUtility.GetCopyright(Assembly2.GetEntryAssembly());
 }