private DialogAddSoft StartAddDialog() { var dialog = new DialogAddSoft { Owner = this }; dialog.Closed += (sender, args) => { AddSoftInfo(dialog.SoftInfo); }; dialog.ShowDialog(); return(dialog); }
private void StartAddDialog(Queue <string> files) { if (files.Count == 0) { return; } var file = files.Dequeue(); var dialog = new DialogAddSoft { Owner = this, Path = file }; dialog.Closed += (sender, args) => { if (dialog.SoftInfo != null) { AddSoftInfo(dialog.SoftInfo); } StartAddDialog(files); }; dialog.ShowDialog(); }
private void StartAddDialog(Queue<string> files) { if (files.Count == 0) { return; } var file = files.Dequeue(); var dialog = new DialogAddSoft { Owner = this, Path = file }; dialog.Closed += (sender, args) => { if (dialog.SoftInfo != null) { AddSoftInfo(dialog.SoftInfo); } StartAddDialog(files); }; dialog.ShowDialog(); }
private DialogAddSoft StartAddDialog() { var dialog = new DialogAddSoft { Owner = this }; dialog.Closed += (sender, args) => { AddSoftInfo(dialog.SoftInfo); }; dialog.ShowDialog(); return dialog; }