1
((food)this.ParentForm).getlistoffood();
food.csファイルからメソッドgetlistoffood
を呼び出します。しかし、this.ParentForm
はnullです。次の関数はnull this.ParentForm、任意の提案ですか?
((food)this.ParentForm).getlistoffood();
food.csファイルからメソッドgetlistoffood
を呼び出します。しかし、this.ParentForm
はnullです。次の関数はnull this.ParentForm、任意の提案ですか?
ParentForm
は、以前に設定した場合にのみ利用できます。あなたは?
なぜあなたは食品にpartentフォームをキャストしていますか? – Alex