public DropboxForm(LocationSwitchboard locswitch, bool isedit, firedumpdbDataSet.backup_locationsRow row) { InitializeComponent(); isEditor = isedit; this.locswitch = locswitch; this.row = row; Console.WriteLine(row.access_token); tbtoken.Text = row.access_token; tbfilename.Text = row.filename; tbsavename.Text = row.name; path = row.path; init(); if (String.IsNullOrEmpty(tbtoken.Text)) { MessageBox.Show("Must fill token field, visit https://www.dropbox.com/developers/apps to create app and get the token"); return; } //save token if (!backgroundWorker1.IsBusy) { this.UseWaitCursor = true; token = tbtoken.Text; backgroundWorker1.RunWorkerAsync(); } }
public FTPLocation(LocationSwitchboard listener) : this() { InitializeComponent(); this.listener = listener; adapter = new LocationAdapter(); adapter.SaveError += onSaveErrorHandler; adapter.TestConnectionComplete += onTestConnectionCompleteHandler; }
public FileSystem(LocationSwitchboard locswitch, bool isEditor, DataRow locallocation) { InitializeComponent(); this.locswitch = locswitch; this.isEditor = isEditor; this.locallocation = locallocation; loadData = true; }
/// <summary> /// Call this constructor to load FTPconfig into the components /// </summary> /// <param name="listener">The Location switchboard instance</param> /// <param name="isEditor">If true on save it will try to update the save location when Save is clicked else it will try to insert</param> /// <param name="ftplocation">DataRow from backup_locations table that contains the ftp location to load</param> public FTPLocation(LocationSwitchboard listener, bool isEditor, DataRow ftplocation) : this() { InitializeComponent(); this.listener = listener; this.isEditor = isEditor; this.ftplocation = ftplocation; doLoadConfig = true; adapter = new LocationAdapter(); adapter.SaveError += onSaveErrorHandler; adapter.TestConnectionComplete += onTestConnectionCompleteHandler; }
public FileSystem(LocationSwitchboard locswitch) { InitializeComponent(); this.locswitch = locswitch; }
public DropboxForm(LocationSwitchboard locswitch) { InitializeComponent(); this.locswitch = locswitch; init(); }