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