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);
 }
        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);
        }