private void renameFuncLabelMenuItem_Click(object sender, EventArgs e) { AddFunctionLabelForm af = new AddFunctionLabelForm(labelContainer, LabelEditMode.Edit, (FunctionLabel)funcLabelBox.SelectedItem); af.ShowDialog(); UpdateFuncBoxView(); }
private void addFuncLabelMenuItem_Click(object sender, EventArgs e) { if (romFile.FileLoaded) { AddFunctionLabelForm af = new AddFunctionLabelForm(labelContainer, LabelEditMode.Add); af.ShowDialog(); UpdateFuncBoxView(); } else { Error.ShowErrorMessage(ErrorMessage.General_NoFileLoaded); } }