/// <summary> /// Creates a new <see cref="AddSendToItemForm"/>. /// </summary> /// <param name="sendToList">The <see cref="SendToList"/> that receives the new item</param> public AddSendToItemForm(SendToList sendToList, ParametersChecker parametersChecker) { _sendToList = sendToList; _parametersChecker = parametersChecker; InitializeComponent(); }
/// <summary> /// Creates a new <see cref="EditSendToItemForm"/>. /// </summary> /// <param name="sendToList">The <see cref="SendToList"/> containing the item to edit</param> public EditSendToItemForm(SendToList sendToList, ParametersChecker parametersChecker) { _checker = parametersChecker; _sendToList = sendToList; InitializeComponent(); }
public SendToForm(SendToList sendToList, IFormFactory formFactory, ParametersChecker parametersChecker) { _sendToList = sendToList; _formFactory = formFactory; _parametersChecker = parametersChecker; _itemBackup = _sendToList.GetStateMemento(); // Create copy of list in case 'Cancel' is pressed InitializeComponent(); _sendToList.CollectionChanged += SendToList_CollectionChanged; SendToList_CollectionChanged(_sendToList, EventArgs.Empty); }
public SendToProgressReporter(IFileExport fileExport, ParametersChecker parametersChecker) { _fileExport = fileExport; _parametersChecker = parametersChecker; InitializeComponent(); _backgroundWorker.WorkerReportsProgress = true; _backgroundWorker.WorkerSupportsCancellation = true; _backgroundWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(BackgroundWorker_RunWorkerCompleted); _backgroundWorker.ProgressChanged += new ProgressChangedEventHandler(BackgroundWorker_ProgressChanged); _backgroundWorker.DoWork += new DoWorkEventHandler(BackgroundWorker_DoWork); }