private void add_new(object sender, EventArgs e) { if (_SimbolList.Count != INPUT) { MessageBox.Show("입력 패턴길이가 너무 짧습니다."); return; } AddSymbol addSymbol = new AddSymbol(_SymbolInfoList); var result = addSymbol.ShowDialog(); if (result == System.Windows.Forms.DialogResult.OK) { if (addSymbol.textBox1.Text.Length == 0) { return; } var symbolinfo = new SymbolInfo(); symbolinfo.ID = addSymbol.textBox1.Text; symbolinfo._List.AddRange(_SimbolList); AddSymbolInfo(symbolinfo); } clear_Click(null, null); }
private void add_new(object sender, EventArgs e) { if (_SimbolList.Count != INPUT) { MessageBox.Show("입력 패턴길이가 너무 짧습니다."); return; } AddSymbol addSymbol = new AddSymbol(_SymbolInfoList); var result = addSymbol.ShowDialog(); if (result == System.Windows.Forms.DialogResult.OK) { if (addSymbol.textBox1.Text.Length == 0) return; var symbolinfo = new SymbolInfo(); symbolinfo.ID = addSymbol.textBox1.Text; symbolinfo._List.AddRange(_SimbolList); AddSymbolInfo(symbolinfo); } clear_Click(null,null); }