public Migration(ListCollection ListCollection, ClientContext ctx) { InitializeComponent(); this.Context = ctx; this.BatchRequestSize = Convert.ToInt32(FileLogic.getXMLSettings("BatchRequestSize")); //We retrieve only document library from the ListCollection passed and populate the combobox foreach (List list in ListCollection) { if (list.BaseTemplate == 101) { Cb_doclib.Items.Add(list.Title); } } //We set the top header of the window Lb_Top.Content = "Select a local path and a library to synchronize"; Img_SP.Visibility = Visibility.Visible; Cb_doclib.SelectedIndex = 0; Lb_Connected.Content = $"Connected to {ctx.Url}"; //We set the backgroundWorker Delegates bw.DoWork += bw_Dowork; bw.WorkerReportsProgress = true; bw.RunWorkerCompleted += bw_RunWorkerCompleted; bw.ProgressChanged += bw_ProgressChanged; bw.WorkerSupportsCancellation = true; }
public Migration(List odList, ClientContext ctx) { InitializeComponent(); this.Context = ctx; this.BatchRequestSize = Convert.ToInt32(FileLogic.getXMLSettings("BatchRequestSize")); Cb_doclib.Items.Add(odList.Title); Cb_doclib.SelectedIndex = 0; //We set the top header of the window Lb_Top.Content = "Select a local path to synchronize"; Img_OD.Visibility = Visibility.Visible; Lb_Connected.Content = $"Connected to {ctx.Url}"; //We set the backgroundWorker Delegates bw.DoWork += bw_Dowork; bw.WorkerReportsProgress = true; bw.RunWorkerCompleted += bw_RunWorkerCompleted; bw.ProgressChanged += bw_ProgressChanged; bw.WorkerSupportsCancellation = true; }
public SPOLogic(ClientContext ctx) { this.Context = ctx; FileLogic.ensureConfigFileExists(); this.hashColumn = FileLogic.getXMLSettings("HashColumn"); }