protected virtual void OnBTNDownloadClicked(object sender, System.EventArgs e) { //get from server FrugalNotes note = new FrugalNotes(); string NoteCrypte = note.GetNote(MainClass.configuration.Get_NoteLogin(),MainClass.configuration.Get_NotePass()); string NoteDecrypte = frugalmonotools.Crypto.DecryptStringAES(NoteCrypte,MainClass.configuration.Get_NoteLogin()+MainClass.configuration.Get_NotePass()); TXT_Note.Buffer.Text = NoteDecrypte; }
protected virtual void OnBTNSendClicked(object sender, System.EventArgs e) { //send to server FrugalNotes note = new FrugalNotes(); string TheNote = TXT_Note.Buffer.Text; string NoteCrypte = frugalmonotools.Crypto.EncryptStringAES(TheNote,MainClass.configuration.Get_NoteLogin()+MainClass.configuration.Get_NotePass()); if(note.SendNote(MainClass.configuration.Get_NoteLogin(),MainClass.configuration.Get_NotePass(),NoteCrypte)) { LIB_Info.Text="Note sending to server"; } else { LIB_Info.Text="Error : could not send note to the server"; } LIB_Info.Visible=true; }