Ejemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     // already connected
     if (Session["login"] != null)
     {
         Session.Remove("login");
         Response.Redirect("~/index.aspx");
     }
     else
         this.WcfProxy = new SocialNetServiceClient();
 }
Ejemplo n.º 2
0
 public DeleteEvents(SocialNetServiceClient wcfClient)
 {
     this.InitializeComponent();
     this.WcfClient = wcfClient;
 }
Ejemplo n.º 3
0
 public AddEvents(SocialNetServiceClient wcfProxy)
 {
     this.InitializeComponent();
     this.WcfProxy = wcfProxy;
 }
Ejemplo n.º 4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Session["currentPage"] = this.Request.Path;
     this.Username = Session["login"] as String;
     if (this.Username != null)
     {
         this.WcfProxy = new SocialNetServiceClient();
         this.EventsCollection = new HashSet<Event>();
         this.EventsTable = new DataTable();
         this.EventsTable.Columns.Add(new DataColumn("Name", typeof(String)));
         this.EventsTable.Columns.Add(new DataColumn("Category", typeof(String)));
         this.EventsTable.Columns.Add(new DataColumn("StartDate", typeof(DateTime)));
         this.EventsTable.Columns.Add(new DataColumn("EndDate", typeof(DateTime)));
         this.EventsTable.Columns.Add(new DataColumn("Description", typeof(String)));
         this.EventsTable.Columns.Add(new DataColumn("Photo", typeof(String)));
         this.EventsTable.Columns.Add(new DataColumn("State", typeof(String)));
         this.EventsTable.Columns.Add(new DataColumn("User", typeof(String)));
         this.FillGrid(false);
     }
     else
         Response.Redirect("~/login.aspx");
 }
Ejemplo n.º 5
0
 public UpdateUsers(SocialNetServiceClient wcfClient)
 {
     this.InitializeComponent();
     this.WcfClient = wcfClient;
 }
Ejemplo n.º 6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Session["currentPage"] = this.Request.Path;
     this.Username = Session["login"] as String;
     if (this.Username != null)
     {
         this.WcfProxy = new SocialNetServiceClient();
         this.CommentsCollection = new HashSet<Comment>();
         this.EventsNamePhotoCollection = new Dictionary<String, String>();
         this.CommentsTable = new DataTable();
         this.CommentsTable.Columns.Add(new DataColumn("Event", typeof(String)));
         this.CommentsTable.Columns.Add(new DataColumn("User", typeof(String)));
         this.CommentsTable.Columns.Add(new DataColumn("Photo", typeof(String)));
         this.CommentsTable.Columns.Add(new DataColumn("Commentary", typeof(String)));
         this.FillGrid(false);
     }
     else
         Response.Redirect("~/login.aspx");
 }
Ejemplo n.º 7
0
 public UpdateCategories(SocialNetServiceClient WcfClient)
 {
     this.InitializeComponent();
     this.WcfClient = WcfClient;
 }