Пример #1
0
 public WriteNote(User currentUser)
 {
     InitializeComponent();
     this.currentUser = currentUser;
     this.currentNote = new Note(0, this.noteText.Rtf, this.tagsBox.Text, this.titleBox.Text, 0, currentUser.getId());
     data = new SQLconnect();
     loadNotebooks();
 }
Пример #2
0
 public WriteNote(Note note, User currentUser)
 {
     data = new SQLconnect();
     InitializeComponent();
     this.currentNote = note;
     this.currentUser = currentUser;
     loadNotebooks();
     updateFields();
 }
Пример #3
0
 public MainWindow(User currentUser)
 {
     InitializeComponent();
     this.currentUser = currentUser;
     data = new SQLconnect();
     loadNotebooks();
     loadFriends();
     loadNotes(currentUser.getId(), "userId");
 }
Пример #4
0
 public RegisterWindow()
 {
     InitializeComponent();
     data = new SQLconnect();
     List<University> universitys = data.returnUniversitys();
     foreach(University u in universitys)
     {
         universityBox.Items.Add(u);
     }
 }
Пример #5
0
 public LoginWindow()
 {
     InitializeComponent();
     SQL = new SQLconnect();
 }