private void AAHistoryTargetMI_Click(object sender, EventArgs e) { string targetFile = _selectedItem.ResolveRecord.LocalFilePath.Path; FileHistoryDialog dlg = new FileHistoryDialog(Scm); dlg.Files = new List <string> { targetFile }; dlg.Show(); }
private void AAHistorySourceMI_Click(object sender, EventArgs e) { string sourceFile = _selectedItem.ResolveRecord.FromFileSpec.DepotPath.Path; FileHistoryDialog dlg = new FileHistoryDialog(Scm); dlg.Files = new List <string> { sourceFile }; dlg.Show(); }
private void AAHistoryTargetMI_Click(object sender, EventArgs e) { string targetFile = _selectedItem.ResolveRecord.LocalFilePath.Path; FileHistoryDialog dlg = new FileHistoryDialog(Scm); dlg.Files = new List <string> { targetFile }; if (dlg.InvokeRequired) { dlg.Invoke(new ShowDialogDelegate(dlg.Show)); } else { dlg.Show(); } }
private void AAHistorySourceMI_Click(object sender, EventArgs e) { string sourceFile = _selectedItem.ResolveRecord.FromFileSpec.DepotPath.Path; FileHistoryDialog dlg = new FileHistoryDialog(Scm); dlg.Files = new List <string> { sourceFile }; if (dlg.InvokeRequired) { dlg.Invoke(new ShowDialogDelegate(dlg.Show)); } else { dlg.Show(); } }