public InitEx ( AutoTypeConfig atConfig, int iAssocIndex, bool bEditSequenceOnly, string strDefaultSeq, ProtectedStringDictionary vStringDict ) : void | ||
atConfig | AutoTypeConfig | |
iAssocIndex | int | |
bEditSequenceOnly | bool | |
strDefaultSeq | string | |
vStringDict | ProtectedStringDictionary | |
Результат | void |
private void OnBtnAutoTypeEdit(object sender, EventArgs e) { // string strName = @"(" + KPRes.AutoType + @")"; AutoTypeConfig atConfig = new AutoTypeConfig(); atConfig.DefaultSequence = m_tbDefaultAutoTypeSeq.Text; EditAutoTypeItemForm dlg = new EditAutoTypeItemForm(); dlg.InitEx(atConfig, -1, true, atConfig.DefaultSequence, null); if (dlg.ShowDialog() == DialogResult.OK) { m_tbDefaultAutoTypeSeq.Text = atConfig.DefaultSequence; } UIUtil.DestroyForm(dlg); EnableControlsEx(); }
private void OnBtnAutoTypeEdit(object sender, EventArgs e) { EditAutoTypeItemForm dlg = new EditAutoTypeItemForm(); string strName = @"(" + KPRes.AutoType + @")"; AutoTypeConfig atConfig = new AutoTypeConfig(); atConfig.DefaultSequence = m_tbDefaultAutoTypeSeq.Text; dlg.InitEx(atConfig, new ProtectedStringDictionary(), strName, true); if (dlg.ShowDialog() == DialogResult.OK) { m_tbDefaultAutoTypeSeq.Text = atConfig.DefaultSequence; } EnableControlsEx(); }
private void OnBtnAutoTypeEdit(object sender, EventArgs e) { EditAutoTypeItemForm dlg = new EditAutoTypeItemForm(); string strName = @"(" + KPRes.AutoType + @")"; AutoTypeConfig atConfig = new AutoTypeConfig(); atConfig.DefaultSequence = m_tbDefaultAutoTypeSeq.Text; dlg.InitEx(atConfig, new ProtectedStringDictionary(), strName, true); if(dlg.ShowDialog() == DialogResult.OK) m_tbDefaultAutoTypeSeq.Text = atConfig.DefaultSequence; EnableControlsEx(); }
private void OnBtnAutoTypeEdit(object sender, EventArgs e) { // string strName = @"(" + KPRes.AutoType + @")"; AutoTypeConfig atConfig = new AutoTypeConfig(); atConfig.DefaultSequence = m_tbDefaultAutoTypeSeq.Text; EditAutoTypeItemForm dlg = new EditAutoTypeItemForm(); dlg.InitEx(atConfig, -1, true, atConfig.DefaultSequence, null); if(dlg.ShowDialog() == DialogResult.OK) m_tbDefaultAutoTypeSeq.Text = atConfig.DefaultSequence; UIUtil.DestroyForm(dlg); EnableControlsEx(); }
private void OnBtnAutoTypeAdd(object sender, EventArgs e) { if(m_pwEditMode == PwEditMode.ViewReadOnlyEntry) return; EditAutoTypeItemForm dlg = new EditAutoTypeItemForm(); dlg.InitEx(m_atConfig, -1, false, m_tbDefaultAutoTypeSeq.Text, m_vStrings); if(UIUtil.ShowDialogAndDestroy(dlg) == DialogResult.OK) { UpdateAutoTypeList(true); ResizeColumnHeaders(); } }
private void OnBtnAutoTypeEdit(object sender, EventArgs e) { if(m_pwEditMode == PwEditMode.ViewReadOnlyEntry) return; ListView.SelectedIndexCollection lvSel = m_lvAutoType.SelectedIndices; Debug.Assert(lvSel.Count == 1); if(lvSel.Count != 1) return; EditAutoTypeItemForm dlg = new EditAutoTypeItemForm(); dlg.InitEx(m_atConfig, lvSel[0], false, m_tbDefaultAutoTypeSeq.Text, m_vStrings); if(UIUtil.ShowDialogAndDestroy(dlg) == DialogResult.OK) UpdateAutoTypeList(true); }
private void OnBtnAutoTypeEditDefault(object sender, EventArgs e) { if(m_pwEditMode == PwEditMode.ViewReadOnlyEntry) return; SaveDefaultSeq(); EditAutoTypeItemForm ef = new EditAutoTypeItemForm(); ef.InitEx(m_atConfig, -1, true, m_tbDefaultAutoTypeSeq.Text, m_vStrings); if(UIUtil.ShowDialogAndDestroy(ef) == DialogResult.OK) m_tbDefaultAutoTypeSeq.Text = m_atConfig.DefaultSequence; }
private void OnBtnAutoTypeEditDefault(object sender, EventArgs e) { m_atConfig.DefaultSequence = m_tbDefaultAutoTypeSeq.Text; EditAutoTypeItemForm ef = new EditAutoTypeItemForm(); ef.InitEx(m_atConfig, m_vStrings, "(" + KPRes.Default + ")", true); if(ef.ShowDialog() == DialogResult.OK) { m_tbDefaultAutoTypeSeq.Text = m_atConfig.DefaultSequence; m_bModifiedEntry = true; } }
private void OnBtnAutoTypeAdd(object sender, EventArgs e) { if(m_pwEditMode == PwEditMode.ViewReadOnlyEntry) return; EditAutoTypeItemForm dlg = new EditAutoTypeItemForm(); dlg.InitEx(m_atConfig, -1, false, m_tbDefaultAutoTypeSeq.Text, m_vStrings); if(UIUtil.ShowDialogAndDestroy(dlg) == DialogResult.OK) { AutoTypeAssociation a = null; if(m_atConfig.AssociationsCount > 0) a = m_atConfig.GetAt(m_atConfig.AssociationsCount - 1); else { Debug.Assert(false); } UpdateAutoTypeList(ListSelRestore.None, a, true); ResizeColumnHeaders(); } }
private void OnBtnAutoTypeEdit(object sender, EventArgs e) { EditAutoTypeItemForm dlg = new EditAutoTypeItemForm(); ListView.SelectedListViewItemCollection lvSel = m_lvAutoType.SelectedItems; Debug.Assert(lvSel.Count == 1); if(lvSel.Count != 1) return; string strOriginalName = lvSel[0].Text; dlg.InitEx(m_atConfig, m_vStrings, strOriginalName, false); if(dlg.ShowDialog() == DialogResult.OK) { UpdateAutoTypeList(); m_bModifiedEntry = true; } }
private void OnBtnAutoTypeAdd(object sender, EventArgs e) { EditAutoTypeItemForm dlg = new EditAutoTypeItemForm(); dlg.InitEx(m_atConfig, m_vStrings, null, false); if(dlg.ShowDialog() == DialogResult.OK) { UpdateAutoTypeList(); ResizeColumnHeaders(); m_bModifiedEntry = true; } }
private void OnBtnAutoTypeEditDefault(object sender, EventArgs e) { if(m_pwEditMode == PwEditMode.ViewReadOnlyEntry) return; m_atConfig.DefaultSequence = m_tbDefaultAutoTypeSeq.Text; EditAutoTypeItemForm ef = new EditAutoTypeItemForm(); ef.InitEx(m_atConfig, m_vStrings, "(" + KPRes.Default + ")", true); if(ef.ShowDialog() == DialogResult.OK) m_tbDefaultAutoTypeSeq.Text = m_atConfig.DefaultSequence; }
private void OnBtnAutoTypeAdd(object sender, EventArgs e) { if(m_pwEditMode == PwEditMode.ViewReadOnlyEntry) return; EditAutoTypeItemForm dlg = new EditAutoTypeItemForm(); dlg.InitEx(m_atConfig, m_vStrings, null, false); if(dlg.ShowDialog() == DialogResult.OK) { UpdateAutoTypeList(); ResizeColumnHeaders(); } }
private void OnBtnAutoTypeEdit(object sender, EventArgs e) { if(m_pwEditMode == PwEditMode.ViewReadOnlyEntry) return; EditAutoTypeItemForm dlg = new EditAutoTypeItemForm(); ListView.SelectedListViewItemCollection lvSel = m_lvAutoType.SelectedItems; Debug.Assert(lvSel.Count == 1); if(lvSel.Count != 1) return; string strOriginalName = lvSel[0].Text; dlg.InitEx(m_atConfig, m_vStrings, strOriginalName, false); if(UIUtil.ShowDialogAndDestroy(dlg) == DialogResult.OK) UpdateAutoTypeList(); }