Example #1
0
        private void addButton_Click(object sender, EventArgs e)
        {
            HeadlinePlugin plugin   = ((KindCombo)kindComboBox.SelectedItem).Plugin;
            HeadlineBase   headline = plugin.CreateInstance();

            headline.Name = nameTextBox2.Text;
            headline.ConnectionSetting = HeadlineManager.ConnectionSetting;
            headline.CreatedHeadlineByManual();

            HeadlineManager.AddHeadline(headline);

            nameTextBox2.Text = string.Empty;
            UpdateHeadlineListView();
        }
Example #2
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 /// <param name="kind">ヘッドラインプラグイン名</param>
 /// <param name="plugin">ヘッドラインプラグイン</param>
 public KindCombo(string kind, HeadlinePlugin plugin)
 {
     this.kind   = kind;
     this.plugin = plugin;
 }