Exemplo n.º 1
0
 //
 public MainPage()
 {
     this.InitializeComponent();
     _model                = new Model();
     _presentationModel    = new PresentationModel(_model, _canvas);
     _model._modelChange  += RefreshUI;
     _undoButton.IsEnabled = false;
     _redoButton.IsEnabled = false;
     _winAppForm.UpdateLayout();
     _service = new GoogleDriveServiceForApp(APPLICATION_NAME, CLIENT_SECRET_FILE_NAME);
 }
Exemplo n.º 2
0
 // prepare service
 public void PrepareService()
 {
     _service = new GoogleDriveServiceForApp(APPLICATION_NAME, CLIENT_SECRET_FILE_NAME);
     GetFileFromDrive();
 }