Esempio n. 1
0
        private void EditTool()
        {
            ListViewItem lvi = GetSelectedItem();

            if (lvi == null)
            {
                return;
            }
            if (lvi.Tag == null)
            {
                return;
            }

            string toolId = lvi.Tag as string;

            if (toolId == null)
            {
                return;
            }

            BuildToolForm btf = new BuildToolForm(_buildTools, toolId);

            if (btf.ShowDialog() == DialogResult.OK)
            {
                Load();
            }
        }
Esempio n. 2
0
        private void CreateTool()
        {
            BuildToolForm btf =
                new BuildToolForm(_buildTools, null);

            if (btf.ShowDialog() == DialogResult.OK)
            {
                Load();
            }
        }