コード例 #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();
            }
        }
コード例 #2
0
        private void CreateTool()
        {
            BuildToolForm btf =
                new BuildToolForm(_buildTools, null);

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