// 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); }
// prepare service public void PrepareService() { _service = new GoogleDriveServiceForApp(APPLICATION_NAME, CLIENT_SECRET_FILE_NAME); GetFileFromDrive(); }