public void Run(IBrowsableCollection photos) { if (null == photos || null == photos.Items) { throw new ArgumentNullException ("photos"); } main_dialog = new TabbloExportView (photos); InitBindings (); model.Deserialize (); model.PhotoCollection = photos; // Model deserialization triggers the various event // handlers, which can cause the default widget to lose // focus (it can be invalid, and hence disabled, for a // moment). main_dialog.ResetFocus (); main_dialog.Show (); }
public void Run(IBrowsableCollection photos) { if (null == photos || null == photos.Items) { throw new ArgumentNullException("photos"); } main_dialog = new TabbloExportView(photos); InitBindings(); model.Deserialize(); model.PhotoCollection = photos; // Model deserialization triggers the various event // handlers, which can cause the default widget to lose // focus (it can be invalid, and hence disabled, for a // moment). main_dialog.ResetFocus(); main_dialog.Show(); }