private static Crawl clone(AllChanges org) { if (org == null) { return(null); } return(new Crawl { Id = org.Id, RouteId = org.RouteId, Route = org.Route, CrawlDate = org.CrawlDate, TravelDate = org.TravelDate }); }
public void AddChange(Chunk chunk, Block block, IndexPosition ipos) { if (TrackChanges) { BlockChange change = new BlockChange(chunk, block, ipos); AllChanges.Add(change); if (OnModified != null) { OnModified(this, change); } } }
private void ok_Click(object sender, EventArgs e) { if (passwordBox.Text != password2Box.Text) { label2.ForeColor = System.Drawing.Color.Red; label2.Text = "Passwordet nuk jane te njejta"; } else { AllChanges ac = new AllChanges(); UserMapper um = new UserMapper(); u.Emri = emriBox.Text; u.Mbiemri = mbiemriBox.Text; u.Username = usernameBox.Text; u.E_Mail = emailBox.Text; u.Password = um.EncodePasswordToBase64(passwordBox.Text); ac.ndryshoTeDhenat(u); } }
private void Send_Click(object sender, EventArgs e) { Lenda l = new Lenda(); l.Emri_i_lendes = lendaBox.Text; l.Orë = textBox1.Text; l.Lloji = bunifuDropdown1.Text[0] + ""; AllChanges ac = new AllChanges(); if (ac.shtoLendet(l)) { MessageBox.Show("Keni shtuar me sukses"); lendaBox.Text = ""; textBox1.Text = ""; bunifuDropdown1.ResetText(); } else { label5.ForeColor = System.Drawing.Color.Red; label5.Text = "Shkruaj te dhenat sakte"; } }
public static string CreateUrl(string site, AllChanges outbound, AllChanges inbound, CabinClass bclass, uint pax) { return(CreateUrl(site, clone(outbound), clone(inbound), bclass, pax)); }