示例#1
0
 public IResource   ShowExpirationRuleForm(IResource resType, IResource defRule, bool forDeletedItems)
 {
     if (defRule == null || IsSimpleExpirationRule(defRule))
     {
         EditExpirationRuleSimpleForm form = new EditExpirationRuleSimpleForm(resType, defRule, forDeletedItems);
         form.ShowDialog(Core.MainWindow);
         form.Dispose();
     }
     else
     {
         EditExpirationRuleForm form = new EditExpirationRuleForm(resType, defRule, forDeletedItems);
         form.ShowDialog(Core.MainWindow);
         form.Dispose();
     }
     return(null);
 }
示例#2
0
 public IResource   ShowExpirationRuleForm(IResourceList folders, IResource defRule)
 {
     if (defRule == null || IsSimpleExpirationRule(defRule))
     {
         EditExpirationRuleSimpleForm form = new EditExpirationRuleSimpleForm(folders, defRule);
         form.ShowDialog(Core.MainWindow);
         form.Dispose();
     }
     else
     {
         EditExpirationRuleForm form = new EditExpirationRuleForm(folders, defRule);
         form.ShowDialog(Core.MainWindow);
         form.Dispose();
     }
     return(null);
 }