protected virtual void OnTabButtonClick(object sender, EventArgs e) { try { if (sender != null) { CustomButtonBase button = (CustomButtonBase)sender; int index = tabButtons.IndexOf(button); if (0 <= index && index < tabPanelList.Count && !button.Selected) { SelectPanel(index); if (TabChanged != null && selected >= 0) { TabChanged(sender, e); } } } } catch (Exception ex) { const string THIS_PROC = "CustomTabBase.OnTabButtonClick"; //ログ出力 LogProc.WriteLog(LogProc.LOG_KIND_DEBUG, THIS_PROC, ex); } }
public static void SetGlobalLogger(LogProc proc) { GlobalLogger = proc; }