protected override void OpenUIFormSuccessHandler(object sender, GameEventArgs e) { base.OpenUIFormSuccessHandler(sender, e); var args = (OpenUIFormSuccessEventArgs)e; if (args.UIForm.Logic as KnapsackForm) { m_KnapsackForm = (KnapsackForm)args.UIForm.Logic; } }
public override void Dispose() { base.Dispose(); m_KnapsackForm = null; }