private void AddCollarFiles_Click(object sender, EventArgs e) { //Fixme - get the new project var form = new UploadFilesForm(); //Project); NextButton.Enabled = false; form.DatabaseChanged += (o, a) => { NextButton.Click -= AddCollarFiles_Click; NextButton.Click += NextButton_Click; }; form.ShowDialog(); NextButton.Enabled = true; }
protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); UploadFilesForm uploadFilesForm = new UploadFilesForm(); IConnectorMainView connectorExplorer = uploadFilesForm as IConnectorMainView; ApplicationContext.SetApplicationManager(new GeneralConnectorManager(connectorExplorer)); ConfigurationManager.GetInstance().DownloadAdministrationXml(RefreshControls); uploadFilesForm.Initialize(new string[] { e.Args[0].ToString() }); uploadFilesForm.ShowDialog(null, Languages.Translate("Send To Office Connector")); this.Shutdown(); }
public void SaveToButton_OnAction(Office.IRibbonControl control) { UploadFilesForm uploadFilesForm = new UploadFilesForm(); string activeFilePath = ApplicationContext.Current.EnsureSaved(); if (string.IsNullOrEmpty(activeFilePath) == false) { if (activeFilePath.StartsWith("http", StringComparison.InvariantCultureIgnoreCase) == true) { MessageBox.Show("You can only save local file to SharePoint"); return; } ApplicationContext.Current.CloseActiveDocument(); IConnectorMainView connectorExplorer = uploadFilesForm as IConnectorMainView; uploadFilesForm.Initialize(new string[] { activeFilePath }); uploadFilesForm.ShowDialog(null, "Send To Office Connector"); //TODO: Open remotely //ApplicationContext.Current.OpenFile(activeFilePath); } }
private void AddFilesButton_Click(object sender, EventArgs e) { var form = new UploadFilesForm(Project); form.DatabaseChanged += (o, x) => FileDataChanged(); form.Show(this); }
private void UploadButton_Click(object sender, EventArgs e) { var form = new UploadFilesForm(); form.Show(this); }
private void AddCollarFileButton_Click(object sender, EventArgs e) { var form = new UploadFilesForm(null, Investigator); form.DatabaseChanged += (o, x) => CollarFileDataChanged(); form.Show(this); }