Beispiel #1
0
        private void OnBtnEdit(object sender, EventArgs e)
        {
            ListView.SelectedListViewItemCollection lvsic = m_lvOverrides.SelectedItems;
            if ((lvsic == null) || (lvsic.Count != 1))
            {
                return;
            }

            AceUrlSchemeOverride ovr = (lvsic[0].Tag as AceUrlSchemeOverride);

            if (ovr == null)
            {
                Debug.Assert(false); return;
            }
            if (ovr.IsBuiltIn)
            {
                Debug.Assert(false); return;
            }

            UrlSchemeForm dlg = new UrlSchemeForm();

            dlg.InitEx(ovr);
            if (UIUtil.ShowDialogAndDestroy(dlg) == DialogResult.OK)
            {
                UpdateOverridesList();
                m_lvOverrides.EnsureVisible(m_lvOverrides.Items.Count - 1);
            }
        }
Beispiel #2
0
        private void OnBtnAdd(object sender, EventArgs e)
        {
            AceUrlSchemeOverride ovr = new AceUrlSchemeOverride(true, string.Empty,
                string.Empty);

            UrlSchemeForm dlg = new UrlSchemeForm();
            dlg.InitEx(ovr);
            if(UIUtil.ShowDialogAndDestroy(dlg) == DialogResult.OK)
            {
                m_aceTmp.Overrides.Add(ovr);
                UpdateOverridesList();
                m_lvOverrides.EnsureVisible(m_lvOverrides.Items.Count - 1);
            }
        }
Beispiel #3
0
        private void OnBtnAdd(object sender, EventArgs e)
        {
            AceUrlSchemeOverride ovr = new AceUrlSchemeOverride(true, string.Empty,
                                                                string.Empty);

            UrlSchemeForm dlg = new UrlSchemeForm();

            dlg.InitEx(ovr);
            if (UIUtil.ShowDialogAndDestroy(dlg) == DialogResult.OK)
            {
                m_aceTmp.CustomOverrides.Add(ovr);
                UpdateOverridesList();
                m_lvOverrides.EnsureVisible(m_lvOverrides.Items.Count - 1);
            }
        }
Beispiel #4
0
        private void OnBtnEdit(object sender, EventArgs e)
        {
            ListView.SelectedListViewItemCollection lvsic = m_lvOverrides.SelectedItems;
            if ((lvsic == null) || (lvsic.Count != 1))
            {
                return;
            }

            AceUrlSchemeOverride ovr = (lvsic[0].Tag as AceUrlSchemeOverride);

            if (ovr == null)
            {
                Debug.Assert(false); return;
            }

            UrlSchemeForm dlg = new UrlSchemeForm();

            dlg.InitEx(ovr);
            if (dlg.ShowDialog() == DialogResult.OK)
            {
                UpdateOverridesList();
            }
        }
Beispiel #5
0
		private void OnBtnEdit(object sender, EventArgs e)
		{
			ListView.SelectedListViewItemCollection lvsic = m_lvOverrides.SelectedItems;
			if((lvsic == null) || (lvsic.Count != 1)) return;

			AceUrlSchemeOverride ovr = (lvsic[0].Tag as AceUrlSchemeOverride);
			if(ovr == null) { Debug.Assert(false); return; }

			UrlSchemeForm dlg = new UrlSchemeForm();
			dlg.InitEx(ovr);
			if(dlg.ShowDialog() == DialogResult.OK) UpdateOverridesList();
		}
        private void OnBtnEdit(object sender, EventArgs e)
        {
            ListView.SelectedListViewItemCollection lvsic = m_lvOverrides.SelectedItems;
            if((lvsic == null) || (lvsic.Count != 1)) return;

            AceUrlSchemeOverride ovr = (lvsic[0].Tag as AceUrlSchemeOverride);
            if(ovr == null) { Debug.Assert(false); return; }
            if(ovr.IsBuiltIn) { Debug.Assert(false); return; }

            UrlSchemeForm dlg = new UrlSchemeForm();
            dlg.InitEx(ovr);
            if(UIUtil.ShowDialogAndDestroy(dlg) == DialogResult.OK)
            {
                UpdateOverridesList();
                m_lvOverrides.EnsureVisible(m_lvOverrides.Items.Count - 1);
            }
        }