Ejemplo n.º 1
0
 private void OnMenuClick(object sender, EventArgs e)
 {
     try
     {
         ToolStripMenuItem menuItem = sender as ToolStripMenuItem;
         if (menuItem == null)
         {
             return;
         }
         SubFormDispatcher.SubFormTitle subFormTitle = EnumCommonMethods.GetEnumValue <SubFormDispatcher.SubFormTitle>(menuItem.Text);
         SubFormDispatcher.ShowSubForm(subFormTitle);
     }
     catch (Exception ex)
     {
         LogHelper.Log(ex.Message + "\r\n" + ex.StackTrace);
     }
 }
Ejemplo n.º 2
0
 public MainFrame()
 {
     InitializeComponent();
     BindingMenuClickEvent();
     SubFormDispatcher.Initialize(this, m_layoutPanel);
 }