예제 #1
0
        // �g���c�[�����X�g�̑I����ڂ�u��
        private void extToolsReplaceButton_Click(object sender, EventArgs e)
        {
            if (0 <= extToolsListbox.SelectedIndex)
            {
                ExternalToolItem item = new ExternalToolItem();
                item.toolName			= extToolNameTextbox.Text;
                item.toolPath			= extToolsPathTextbox.Text;
                item.toolCommandLine	= extToolCmdLineTextbox.Text;

                if (ValidExtToolItem(item) )
                    mExtTools.tools[extToolsListbox.SelectedIndex] = item;
                else
                    MessageBox.Show("���̓p�����[�^��m�F���ĉ������B", null,
                                    MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }

            RefreshContent();
        }
예제 #2
0
 private bool ValidExtToolItem( ExternalToolItem item )
 {
     return	!string.IsNullOrEmpty( item.toolName ) &&
             !string.IsNullOrEmpty( item.toolPath );
 }