10.07.2015 Views

Izglītības darbības pētījums e-studiju vidē - Liepājas Universitāte

Izglītības darbības pētījums e-studiju vidē - Liepājas Universitāte

Izglītības darbības pētījums e-studiju vidē - Liepājas Universitāte

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

protected void btnSaveComm_Click(object sender, EventArgs e){//Pārbauda vai ir ielasīta grupa ar vismaz 3 studentiemif (grupaFeed.Entries.Count > 2){//mainīgajā rindag ieviet papildināmā studenta grupas numuram atbilstošo rinduListEntry rindag = (ListEntry)grupaFeed.Entries[targetID];//nodefinē objektus, kas atbilst attiecīgajām rindag šūnām, kur jāveic izmaiņasListEntry.Custom koments1 = rindag.Elements[14+colDelta];ListEntry.Custom koments2 = rindag.Elements[16+colDelta];ListEntry.Custom koments3 = rindag.Elements[18+colDelta];ListEntry.Custom video1 = rindag.Elements[24];//ja teksta lauki nav tukši piešķir to vērtību šūnām atbilstošajiem objektiemif (txtJaut1.Text.Length>0) {koments1.Value = txtJaut1.Text;}if (txtJaut2.Text.Length>0) {koments2.Value = txtJaut2.Text;}if (txtJaut3.Text.Length>0) {koments3.Value = txtJaut3.Text;}if (txtVideo.Text.Length>0) {video1.Value = txtVideo.Text;}//nosūta izmaiņas uz Google serveri (saglabā)rindag = (ListEntry)rindag.Update();//atjauno globālo grupaFeed mainīgo un lokālo rindag mainīgo no Google serveragrupaFeed=getGrupaFeed(((ListEntry)grupaFeed.Entries[userID]).Elements[20].Value.ToString());rindag = (ListEntry)grupaFeed.Entries[targetID];//ja komentāram pievienots video - attēlo to uz ekrānaif (GetYouTubeID(txtVideo.Text).Length > 0){Literal1.Text = YouTubeScript.Get(GetYouTubeID(txtVideo.Text), false, 480, 360);}else{Literal1.Text = "Video nav pievienots";}txtStatus.Text = "Update OK";}else{txtStatus.Text = "Update Failed";}201

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!