C# Class Greenhouses.ViewGreenhouse

Inheritance: System.Web.UI.Page
Mostrar archivo Open project: negonicrac/seniorproject2009

Public Methods

Method Description
LoadData ( Greenhouse greenhouse ) : void
LoadLocation ( Address address ) : void
LoadSection ( List
sections ) : void
PresetValue ( int s ) : string
lvSections_ItemDataBound ( object sender, System.Web.UI.WebControls.ListViewItemEventArgs e ) : void

Protected Methods

Method Description
Page_Load ( object sender, EventArgs e ) : void
butAddUsers_Click ( object sender, EventArgs e ) : void
butUpdateGreenhouse_Click ( object sender, EventArgs e ) : void
lbNewSection_Click ( object sender, EventArgs e ) : void
linkCancelUpdateGreenhouse_Click ( object sender, EventArgs e ) : void
linkEdit_Click ( object sender, EventArgs e ) : void
lvSections_ItemCanceling ( object sender, System.Web.UI.WebControls.ListViewCancelEventArgs e ) : void
lvSections_ItemCommand ( object sender, System.Web.UI.WebControls.ListViewCommandEventArgs e ) : void
lvSections_ItemDeleting ( object sender, System.Web.UI.WebControls.ListViewDeleteEventArgs e ) : void
lvSections_ItemEditing ( object sender, System.Web.UI.WebControls.ListViewEditEventArgs e ) : void
lvSections_ItemInserting ( object sender, System.Web.UI.WebControls.ListViewInsertEventArgs e ) : void
lvSections_ItemUpdating ( object sender, System.Web.UI.WebControls.ListViewUpdateEventArgs e ) : void
lvSections_SelectedIndexChanged ( object sender, EventArgs e ) : void
lvUsers_ItemCommand ( object sender, System.Web.UI.WebControls.ListViewCommandEventArgs e ) : void
lvUsers_ItemDeleting ( object sender, System.Web.UI.WebControls.ListViewDeleteEventArgs e ) : void

Private Methods

Method Description
Bind ( ) : void
CloseInsert ( ) : void
DeleteGreenhouseUser ( ListViewItem item ) : void
DeleteSection ( Control item ) : void
InsertSection ( Control item ) : void

inserts a new section. At the moment it only inserts the current User as the section owner

LoadGreenhouseUsers ( IEnumerable users ) : void
UpdateSection ( Control item ) : void

Method Details

LoadData() public method

public LoadData ( Greenhouse greenhouse ) : void
greenhouse DV_Enterprises.Web.Data.Domain.Greenhouse
return void

LoadLocation() public method

public LoadLocation ( Address address ) : void
address DV_Enterprises.Web.Data.Domain.Address
return void

LoadSection() public method

public LoadSection ( List
sections ) : void
sections List
return void

Page_Load() protected method

protected Page_Load ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

PresetValue() public method

public PresetValue ( int s ) : string
s int
return string

butAddUsers_Click() protected method

protected butAddUsers_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

butUpdateGreenhouse_Click() protected method

protected butUpdateGreenhouse_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

lbNewSection_Click() protected method

protected lbNewSection_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

linkCancelUpdateGreenhouse_Click() protected method

protected linkCancelUpdateGreenhouse_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

linkEdit_Click() protected method

protected linkEdit_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

lvSections_ItemCanceling() protected method

protected lvSections_ItemCanceling ( object sender, System.Web.UI.WebControls.ListViewCancelEventArgs e ) : void
sender object
e System.Web.UI.WebControls.ListViewCancelEventArgs
return void

lvSections_ItemCommand() protected method

protected lvSections_ItemCommand ( object sender, System.Web.UI.WebControls.ListViewCommandEventArgs e ) : void
sender object
e System.Web.UI.WebControls.ListViewCommandEventArgs
return void

lvSections_ItemDataBound() public method

public lvSections_ItemDataBound ( object sender, System.Web.UI.WebControls.ListViewItemEventArgs e ) : void
sender object
e System.Web.UI.WebControls.ListViewItemEventArgs
return void

lvSections_ItemDeleting() protected method

protected lvSections_ItemDeleting ( object sender, System.Web.UI.WebControls.ListViewDeleteEventArgs e ) : void
sender object
e System.Web.UI.WebControls.ListViewDeleteEventArgs
return void

lvSections_ItemEditing() protected method

protected lvSections_ItemEditing ( object sender, System.Web.UI.WebControls.ListViewEditEventArgs e ) : void
sender object
e System.Web.UI.WebControls.ListViewEditEventArgs
return void

lvSections_ItemInserting() protected method

protected lvSections_ItemInserting ( object sender, System.Web.UI.WebControls.ListViewInsertEventArgs e ) : void
sender object
e System.Web.UI.WebControls.ListViewInsertEventArgs
return void

lvSections_ItemUpdating() protected method

protected lvSections_ItemUpdating ( object sender, System.Web.UI.WebControls.ListViewUpdateEventArgs e ) : void
sender object
e System.Web.UI.WebControls.ListViewUpdateEventArgs
return void

lvSections_SelectedIndexChanged() protected method

protected lvSections_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

lvUsers_ItemCommand() protected method

protected lvUsers_ItemCommand ( object sender, System.Web.UI.WebControls.ListViewCommandEventArgs e ) : void
sender object
e System.Web.UI.WebControls.ListViewCommandEventArgs
return void

lvUsers_ItemDeleting() protected method

protected lvUsers_ItemDeleting ( object sender, System.Web.UI.WebControls.ListViewDeleteEventArgs e ) : void
sender object
e System.Web.UI.WebControls.ListViewDeleteEventArgs
return void