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);
     }
 }
 public MainFrame()
 {
     InitializeComponent();
     BindingMenuClickEvent();
     SubFormDispatcher.Initialize(this, m_layoutPanel);
 }