Ejemplo n.º 1
0
        /// <summary>
        /// Handles a text-changed event in the executable and column width text boxes.
        /// </summary>
        private void AsmConfig_TextChanged(object sender, EventArgs e)
        {
            AsmComboItem item = (AsmComboItem)asmConfigComboBox.SelectedItem;

            AssemblerConfig.SetConfig(mSettings, item.AssemblerId, GetAsmConfigFromUi());
            SetDirty(true);
        }
Ejemplo n.º 2
0
        private void asmExeBrowseButton_Click(object sender, EventArgs e)
        {
            AsmComboItem item = (AsmComboItem)asmConfigComboBox.SelectedItem;

            AssemblerInfo.Id asmId = item.AssemblerId;

            // Figure out what we're looking for.  For example, cc65 needs "cl65".
            AsmGen.IAssembler asm = AssemblerInfo.GetAssembler(asmId);
            asm.GetExeIdentifiers(out string humanName, out string exeName);

            // Ask the user to find it.
            string pathName = BrowseForExecutable(humanName, exeName);

            if (pathName != null)
            {
                asmExePathTextBox.Text = pathName;
                AssemblerConfig.SetConfig(mSettings, asmId, GetAsmConfigFromUi());
                SetDirty(true);
            }
        }