private void BtnNext_Click(object sender, EventArgs e) { if (isCreatedTree) { this.Hide(); Dialog_ResultForSource dlg = new Dialog_ResultForSource(richMainTree.Lines, RichEnum.Lines, richCol.Lines); List <TreeNode> nodes = maker.Tree.GetOrderedNodeAsNodeSequence(); string[] enums = new string[richMainTree.Lines.Length]; for (int i = 0; i < enums.Length; i++) { enums[i] = nodes[i].EnumName; } dlg.MainTree = RichMainTree.Lines; dlg.EnumNumber = RichEnum.Lines; dlg.Enumname = enums; dlg.MainTreeDlg = this; dlg.Tree = mainTree; dlg.MakeSource(); dlg.ShowDialog(); } else { MessageBox.Show("트리를 생성해야 진행할 수 있습니다."); } }
public Dialog_ColumnNumberAndRecordset(Tree tree, string [] mainTree, Dialog_ResultForSource dlg) { InitializeComponent(); recordsetList = new Dictionary <string, bool>(); this.tree = tree; richMainTree.Lines = mainTree; richs = new List <CRichTextbox>(); richs.Add(richMainTree); richs.Add(richColumnNumber); richs.Add(richRecordsetName); richInterface = new CRichTextBoxInterface(); richInterface.SetInterface(richs); comboMethod.SelectedIndex = 0; resultDlg = dlg; }