Beispiel #1
0
 public void RegisterWindow(FrmToolBase form, string uniqueId)
 {
     if (this._forms[uniqueId] != null)
         throw new InvalidOperationException("Window is already registered.");
     if (string.IsNullOrEmpty(uniqueId))
         throw new ArgumentNullException("uniqueId cannot be null.", "uniqueId");
     
     FormItem fi = new FormItem(form, uniqueId);
     _forms.Add(fi);
 }
Beispiel #2
0
 public FormItem(FrmToolBase registeredForm, string uniqueId)
 {
     this._registeredForm = registeredForm;
     _id = uniqueId;
 }