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(); }
public DeleteEvents(SocialNetServiceClient wcfClient) { this.InitializeComponent(); this.WcfClient = wcfClient; }
public AddEvents(SocialNetServiceClient wcfProxy) { this.InitializeComponent(); this.WcfProxy = wcfProxy; }
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"); }
public UpdateUsers(SocialNetServiceClient wcfClient) { this.InitializeComponent(); this.WcfClient = wcfClient; }
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"); }
public UpdateCategories(SocialNetServiceClient WcfClient) { this.InitializeComponent(); this.WcfClient = WcfClient; }