コード例 #1
0
ファイル: FormManager.cs プロジェクト: jojozhuang/Projects
 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);
 }
コード例 #2
0
ファイル: FormItem.cs プロジェクト: jojozhuang/Projects
 public FormItem(FrmToolBase registeredForm, string uniqueId)
 {
     this._registeredForm = registeredForm;
     _id = uniqueId;
 }