私は次のクラスを持っています:
public class dlgBoughtNote : dlgSpecifyNone
{
public com.jksb.reports.config.cases.BoughtNoteReport _ReportSource;
public dlgBoughtNote()
{
btnPreview.Click += new EventHandler(Extended_LaunchReport);
this.Text = "Bought Note Print";
}
protected override void InitReport()
{
_ReportSource = new com.jksb.reports.config.cases.BoughtNoteReport(null);
ReportSourceName = _ReportSource;
}
}
技術的には、次のコンストラクタ dlgBoughtNote() を呼び出した場合
public dlgBoughtNote()
{
btnPreview.Click += new EventHandler(Extended_LaunchReport);
this.Text = "Bought Note Print";
MessageBox.Show(this.Name);
}
「dlgBoughtNote」として結果を取得する必要がありますが、「dlgSpecifyNone」として取得しています。私がやっている方法以外に、現在のクラスの名前を取得する方法はありますか?