using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MailDivSender
{
///
/// 選択付きアドレスコントロール
///
public partial class SelectedAddressControl : AddressControl
{
///
/// 種類型
///
public enum CCKindType
{
CC,
BCC
};
///
/// 種類プロパティ
///
public CCKindType Kind
{
get
{
return TypeCmb.SelectedIndex == 0 ? CCKindType.CC : CCKindType.BCC;
}
set
{
if (value == CCKindType.BCC)
TypeCmb.SelectedIndex = 1;
else
TypeCmb.SelectedIndex = 0;
}
}
///
/// コンストラクタ
///
public SelectedAddressControl()
{
InitializeComponent();
TypeCmb.SelectedIndex = 0;
}
///
/// 削除イベント
///
public event EventHandler OnRemove;
///
/// 削除ボタン押下
///
///
///
private void DelBtn_Click(object sender, EventArgs e)
{
if (OnRemove != null)
OnRemove(this, e);
}
}
}