Esempio n. 1
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 (dlg.ShowDialog() == DialogResult.OK)
            {
                m_aceTmp.Overrides.Add(ovr);
                UpdateOverridesList();
                m_lvOverrides.EnsureVisible(m_lvOverrides.Items.Count - 1);
            }
        }
Esempio n. 2
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();
            }
        }
Esempio n. 3
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();
		}
Esempio n. 4
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(dlg.ShowDialog() == DialogResult.OK)
			{
				m_aceTmp.Overrides.Add(ovr);
				UpdateOverridesList();
				m_lvOverrides.EnsureVisible(m_lvOverrides.Items.Count - 1);
			}
		}