示例#1
0
 /// <summary>
 /// Loging out and showing log in page.
 /// </summary>
 private void Button_LogOut_Click(object sender, RoutedEventArgs e)
 {
     this.userID   = 0;
     this.username = null;
     wrapPanel_NoteCards.Children.Clear();
     Page_logIn = new LogIn_SignIn(this, this.database);
     Page_logIn.Show();
     this.Hide();
 }
示例#2
0
 public MainPage()
 {
     InitializeComponent();
     windowProperties = new WindowProperties(Top, Left, Height, Width, WindowState);
     this.titleBar    = new TitleBar(this);
     this.database    = new Database();
     Page_logIn       = new LogIn_SignIn(this, this.database, windowProperties);
     Page_logIn.Show();
     this.Hide();
 }