blob: d0e94b87f8833a8020f1574f76d3b3a59e2f6f19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
/**
* Namespace: System.Web.UI.WebControls
* Class: AdCreatedEventArgs
*
* Author: Gaurav Vaish
* Maintainer: gvaish@iitk.ac.in
* Implementation: yes
* Contact: <gvaish@iitk.ac.in>
* Status: 100%
*
* (C) Gaurav Vaish (2001)
*/
using System;
using System.Collections;
using System.Web;
using System.Web.UI;
namespace System.Web.UI.WebControls
{
public sealed class AdCreatedEventArgs: EventArgs
{
private IDictionary adProperties;
private string alternateText;
private string imageUrl;
private string navigateUrl;
public AdCreatedEventArgs(IDictionary adProperties): base()
{
Initialize();
this.adProperties = adProperties;
if(adProperties!=null)
{
imageUrl = (string)adProperties["ImageUrl"];
navigateUrl = (string)adProperties["NavigateUrl"];
alternateText = (string)adProperties["AlternateText"];
}
}
private void Initialize()
{
alternateText = string.Empty;
imageUrl = string.Empty;
navigateUrl = string.Empty;
}
public IDictionary AdProperties
{
get
{
return adProperties;
}
}
public string AlternateText
{
get
{
return alternateText;
}
set
{
alternateText = value;
}
}
public string ImageUrl
{
get
{
return imageUrl;
}
set
{
imageUrl = value;
}
}
public string NavigateUrl
{
get
{
return navigateUrl;
}
set
{
navigateUrl = value;
}
}
}
}
|