private void Pad_Selected(object sender, EventArgs e) { lock (this) { m_SelectedPad = cbPad.SelectedIndex; m_Detail = scpProxy.Detail((DsPadId)m_SelectedPad); ResetControls(); } }
public void Request() { cbPad.SelectedIndex = m_SelectedPad = 0; m_Detail = scpProxy.Detail((DsPadId)m_SelectedPad); ResetControls(); m_Editing = false; m_CanSave = true; }
private void btnAdd_Click(object sender, EventArgs e) { var Profile = new Profile("<New Profile>"); m_Detail = scpProxy.Detail((DsPadId)m_SelectedPad); m_PropForm = new ProfileProperties(Profile, m_Detail.Pad, m_Detail.Local, true); m_PropForm.FormClosed += Props_Close; m_PropForm.VisibleChanged += Props_Visible; m_PropForm.Show(this); }
public void Request() { m_SelectedProfile = m_Active = scpProxy.ActiveProfile; cbProfile.Items.Clear(); cbProfile.Items.AddRange(scpProxy.Mapper.Profiles); cbProfile.SelectedItem = m_SelectedProfile; cbPad.SelectedIndex = m_SelectedPad = 0; m_Detail = scpProxy.Detail((DsPadId)m_SelectedPad); ResetControls(); m_Editing = false; m_CanSave = true; }
private void btnView_Click(object sender, EventArgs e) { m_Detail = scpProxy.Detail((DsPadId)m_SelectedPad); m_PropForm = new ProfileProperties(scpProxy.Mapper.Map[m_SelectedProfile], m_Detail.Pad, m_Detail.Local, false); m_PropForm.FormClosed += Props_Close; m_PropForm.VisibleChanged += Props_Visible; m_PropForm.Show(this); }