// Initialize Window Application
 public AuthWindow()
 {
     InitializeComponent();
     this.application = InitApplicationInfo();
     this.proxy       = new DispatchingServiceClient();
     this.msg         = new Message()
     {
         application = new DispatchingServiceReference.Application()
     };
     Console.WriteLine("initialize message");
 }
        // Initialize Main app
        public AppWindow()
        {
            InitializeComponent();
            this.user    = new User();
            this.appInfo = new DispatchingServiceReference.Application();

            // Navigate to the upload page.
            Navigation.Navigation.Frame            = new Frame(); //SplitViewFrame;
            Navigation.Navigation.Frame.Navigated += SplitViewFrame_OnNavigated;
            this.Loaded += (sender, args) => Navigation.Navigation.Navigate(UploadPage);
        }
 // set AppInfo from middlewares
 public void setAppInfo(DispatchingServiceReference.Application appInfo)
 {
     this.appInfo = appInfo;
 }