Exemplo n.º 1
0
 public void GenerateAccountReportMenu(System.Windows.Forms.ToolStripSplitButton tsAccountReportMenu)
 {
     foreach (System.Collections.Generic.KeyValuePair<AccountReportType, object> pair in this.m_AccountReportTypeClasses)
     {
         string str = (pair.Key.ShortName.get_Length() == 0) ? pair.Key.Name : pair.Key.ShortName;
         System.Windows.Forms.ToolStripMenuItem item = new System.Windows.Forms.ToolStripMenuItem(str);
         item.set_Tag(new AccountReportTypePair(pair.Key, pair.Value));
         item.add_Click(new System.EventHandler(this.AccountReportMenuItem_Click));
         tsAccountReportMenu.DropDownItems.Add(item);
     }
 }