public DevToolsConfigComponentPanel(DevToolsConfigComponent component) : this() { _component = component; // bind the controls to the component spinAdvanceLog.DataBindings.Add("Value", component, "LogAdvanceLines"); txtLogOtherAppPath.Text = _component.LogViewerAppPath ?? ""; txtLogOtherAppPath.TextChanged += txtLogOtherAppPath_TextChanged; radLogOtherApp.Checked = _component.LogViewerAppPath != null && _component.LogViewerAppPath != ""; radLogOtherApp.CheckedChanged += radLogOtherApp_CheckedChanged; radLogShellAssoc.Checked = !radLogOtherApp.Checked; radLogShellAssoc.CheckedChanged += radLogShellAssoc_CheckedChanged; }
public DevToolsConfigComponentPanel(DevToolsConfigComponent component) : this() { _component = component; // bind the controls to the component spinAdvanceLog.DataBindings.Add("Value", component, "LogAdvanceLines"); txtLogOtherAppPath.Text = _component.LogViewerAppPath ?? ""; txtLogOtherAppPath.TextChanged += txtLogOtherAppPath_TextChanged; radLogOtherApp.Checked = _component.LogViewerAppPath != null && _component.LogViewerAppPath != ""; radLogOtherApp.CheckedChanged += radLogOtherApp_CheckedChanged; radLogShellAssoc.Checked = !radLogOtherApp.Checked; radLogShellAssoc.CheckedChanged += radLogShellAssoc_CheckedChanged; }
/// <summary> /// Called by the application framework to set the component the view is for. /// </summary> /// <param name="component"></param> public void SetComponent(IApplicationComponent component) { _component = (DevToolsConfigComponent) component; }
/// <summary> /// Called by the application framework to set the component the view is for. /// </summary> /// <param name="component"></param> public void SetComponent(IApplicationComponent component) { _component = (DevToolsConfigComponent)component; }