/// <summary>テスト1</summary> protected void UOC_btnElse1_Click(RcFxEventArgs rcFxEventArgs) { // newだけした場合・・・ Form f = new Form2(); MessageBox.Show("画面総数:" + BaseControllerWin.GetWindowsCount().ToString() + ", Form2総数:" + BaseControllerWin.GetWindowsCount(typeof(Form2)).ToString()); }
/// <summary>全Formインスタンス数を表示する</summary> protected void UOC_btnFormCount_Click(RcFxEventArgs rcFxEventArgs) { // メッセージボックスに表示する。 MessageBox.Show(BaseControllerWin.GetWindowsCount().ToString(), "全Formインスタンス数", MessageBoxButtons.OK, MessageBoxIcon.Information); }