private void btnSave_Click(object sender, EventArgs e) { string epuKr = tbEpuKp.Text; string vixKr = tbVixKr.Text; string uncertaintySummary = tbUncertaintySummary.Text; string indicator1 = tbVolatility1.Text; string indicator2 = tbVolatility2.Text; string indicator3 = tbVolatility3.Text; string indicator4 = tbVolatility4.Text; string indicator5 = tbVolatility5.Text; string indicatorSummary = tbVolatilitySummary.Text; XmlNode selectedNode = ShareData.Instance.XmlUtil.GetElement(selectedIndex, "FinancialInvestmentPlan"); XmlNodeUtility xmlUtil = new XmlNodeUtility(selectedNode); xmlUtil.SetElementValue("KR", epuKr, "InvestmentAvailability/Uncertainty/EPU"); xmlUtil.SetElementValue("KR", vixKr, "InvestmentAvailability/Uncertainty/VIX"); xmlUtil.SetElementValue("Summary", uncertaintySummary, "InvestmentAvailability/Uncertainty"); xmlUtil.SetElementValue("Indicator1", indicator1, "InvestmentAvailability/Volatility"); xmlUtil.SetElementValue("Indicator2", indicator2, "InvestmentAvailability/Volatility"); xmlUtil.SetElementValue("Indicator3", indicator3, "InvestmentAvailability/Volatility"); xmlUtil.SetElementValue("Indicator4", indicator4, "InvestmentAvailability/Volatility"); xmlUtil.SetElementValue("Indicator5", indicator5, "InvestmentAvailability/Volatility"); xmlUtil.SetElementValue("Summary", indicatorSummary, "InvestmentAvailability/Volatility"); ShareData.Instance.XmlUtil.Save(); ShareData.Instance.XmlUtil.Reload(); MessageBox.Show("저장되었습니다."); }
private void btnSave_Click(object sender, EventArgs e) { string trend = tbTrend.Text; string technicalAnalysis = tbTechnicalAnalysis.Text; string tendency = tbTendency.Text; string accounts = tbAccounts.Text; string fund = tbFund.Text; string duration = tbDuration.Text; string profitAndLoss1 = tbProfitAndLoss1.Text; string profitAndLoss2 = tbProfitAndLoss2.Text; string profitAndLoss3 = tbProfitAndLoss3.Text; string summary = tbSummary.Text; XmlNode selectedNode = ShareData.Instance.XmlUtil.GetElement(selectedIndex, "FinancialInvestmentPlan"); XmlNodeUtility xmlUtil = new XmlNodeUtility(selectedNode); xmlUtil.SetElementValue("Trend", trend, "InvestmentResult"); xmlUtil.SetElementValue("TechnicalAnalysis", technicalAnalysis, "InvestmentResult"); xmlUtil.SetElementValue("Tendency", tendency, "InvestmentResult"); xmlUtil.SetElementValue("Accounts", accounts, "InvestmentResult"); xmlUtil.SetElementValue("Fund", fund, "InvestmentResult"); xmlUtil.SetElementValue("Duration", duration, "InvestmentResult"); xmlUtil.SetElementValue("ProfitAndLoss1", profitAndLoss1, "InvestmentResult"); xmlUtil.SetElementValue("ProfitAndLoss2", profitAndLoss2, "InvestmentResult"); xmlUtil.SetElementValue("ProfitAndLoss3", profitAndLoss3, "InvestmentResult"); xmlUtil.SetElementValue("Summary", summary, "InvestmentResult"); ShareData.Instance.XmlUtil.Save(); ShareData.Instance.XmlUtil.Reload(); MessageBox.Show("저장되었습니다."); }
private void bindData() { XmlNode selectedNode = ShareData.Instance.XmlUtil.GetElement(selectedIndex, "FinancialInvestmentPlan"); XmlNodeUtility xmlUtil = new XmlNodeUtility(selectedNode); string epuKr = xmlUtil.GetElementValue("KR", "InvestmentAvailability/Uncertainty/EPU"); string vixKr = xmlUtil.GetElementValue("KR", "InvestmentAvailability/Uncertainty/VIX"); string uncertaintySummary = xmlUtil.GetElementValue("Summary", "InvestmentAvailability/Uncertainty"); string indicator1 = xmlUtil.GetElementValue("Indicator1", "InvestmentAvailability/Volatility"); string indicator2 = xmlUtil.GetElementValue("Indicator2", "InvestmentAvailability/Volatility"); string indicator3 = xmlUtil.GetElementValue("Indicator3", "InvestmentAvailability/Volatility"); string indicator4 = xmlUtil.GetElementValue("Indicator4", "InvestmentAvailability/Volatility"); string indicator5 = xmlUtil.GetElementValue("Indicator5", "InvestmentAvailability/Volatility"); string indicatorSummary = xmlUtil.GetElementValue("Summary", "InvestmentAvailability/Volatility"); tbEpuKp.Text = epuKr; tbVixKr.Text = vixKr; tbUncertaintySummary.Text = uncertaintySummary; tbVolatility1.Text = indicator1; tbVolatility2.Text = indicator2; tbVolatility3.Text = indicator3; tbVolatility4.Text = indicator4; tbVolatility5.Text = indicator5; tbVolatilitySummary.Text = indicatorSummary; }
private void btnSave_Click(object sender, EventArgs e) { string securitiesCompany1 = tbsecuritiesCompany1.Text; string securitiesCompany2 = tbsecuritiesCompany2.Text; string securitiesCompany3 = tbsecuritiesCompany3.Text; string invFund1 = tbinvFund1.Text; string invFund2 = tbinvFund2.Text; string invFund3 = tbinvFund3.Text; string summary = tbSummary.Text; string fundMethod = rdoFundMethod1.Checked ? rdoFundMethod1.Text : rdoFundMethod2.Text; XmlNode selectedNode = ShareData.Instance.XmlUtil.GetElement(selectedIndex, "FinancialInvestmentPlan"); XmlNodeUtility xmlUtil = new XmlNodeUtility(selectedNode); xmlUtil.SetElementValue(0, "Account", securitiesCompany1, "AccountFundPlan", "Accounts"); xmlUtil.SetElementValue(1, "Account", securitiesCompany2, "AccountFundPlan", "Accounts"); xmlUtil.SetElementValue(2, "Account", securitiesCompany3, "AccountFundPlan", "Accounts"); xmlUtil.SetElementAttributeValue(0, "Account", "InvFund", invFund1, "AccountFundPlan", "Accounts"); xmlUtil.SetElementAttributeValue(1, "Account", "InvFund", invFund1, "AccountFundPlan", "Accounts"); xmlUtil.SetElementAttributeValue(2, "Account", "InvFund", invFund1, "AccountFundPlan", "Accounts"); xmlUtil.SetElementValue("Summary", summary, "AccountFundPlan"); xmlUtil.SetElementValue("FundMethod", fundMethod, "AccountFundPlan"); ShareData.Instance.XmlUtil.Save(); ShareData.Instance.XmlUtil.Reload(); MessageBox.Show("저장되었습니다."); }
private void bindData() { XmlNode selectedNode = ShareData.Instance.XmlUtil.GetElement(selectedIndex, "FinancialInvestmentPlan"); XmlNodeUtility xmlUtil = new XmlNodeUtility(selectedNode); string trend = xmlUtil.GetElementValue("Trend", "InvestmentResult"); string technicalAnalysis = xmlUtil.GetElementValue("TechnicalAnalysis", "InvestmentResult"); string tendency = xmlUtil.GetElementValue("Tendency", "InvestmentResult"); string accounts = xmlUtil.GetElementValue("Accounts", "InvestmentResult"); string fund = xmlUtil.GetElementValue("Fund", "InvestmentResult"); string duration = xmlUtil.GetElementValue("Duration", "InvestmentResult"); string profitAndLoss1 = xmlUtil.GetElementValue("ProfitAndLoss1", "InvestmentResult"); string profitAndLoss2 = xmlUtil.GetElementValue("ProfitAndLoss2", "InvestmentResult"); string profitAndLoss3 = xmlUtil.GetElementValue("ProfitAndLoss3", "InvestmentResult"); string summary = xmlUtil.GetElementValue("Summary", "InvestmentResult"); tbTrend.Text = trend; tbTechnicalAnalysis.Text = technicalAnalysis; tbTendency.Text = tendency; tbAccounts.Text = accounts; tbFund.Text = fund; tbDuration.Text = duration; tbProfitAndLoss1.Text = profitAndLoss1; tbProfitAndLoss2.Text = profitAndLoss2; tbProfitAndLoss3.Text = profitAndLoss3; tbSummary.Text = summary; }
private void bindData() { XmlNode selectedNode = ShareData.Instance.XmlUtil.GetElement(selectedIndex, "FinancialInvestmentPlan"); XmlNodeUtility xmlUtil = new XmlNodeUtility(selectedNode); string securitiesCompany1 = xmlUtil.GetElementValue(0, "Account", "AccountFundPlan", "Accounts"); string securitiesCompany2 = xmlUtil.GetElementValue(1, "Account", "AccountFundPlan", "Accounts"); string securitiesCompany3 = xmlUtil.GetElementValue(2, "Account", "AccountFundPlan", "Accounts"); string invFund1 = xmlUtil.GetElementAttributeValue(0, "Account", "InvFund", "AccountFundPlan", "Accounts"); string invFund2 = xmlUtil.GetElementAttributeValue(1, "Account", "InvFund", "AccountFundPlan", "Accounts"); string invFund3 = xmlUtil.GetElementAttributeValue(2, "Account", "InvFund", "AccountFundPlan", "Accounts"); string summary = xmlUtil.GetElementValue("Summary", "AccountFundPlan"); string fundMethod = xmlUtil.GetElementValue("FundMethod", "AccountFundPlan"); tbsecuritiesCompany1.Text = securitiesCompany1; tbsecuritiesCompany2.Text = securitiesCompany2; tbsecuritiesCompany3.Text = securitiesCompany3; tbinvFund1.Text = invFund1; tbinvFund2.Text = invFund2; tbinvFund3.Text = invFund3; tbSummary.Text = summary; if (fundMethod.StartsWith("공격적")) { rdoFundMethod1.Checked = true; } else { rdoFundMethod2.Checked = true; } }
private void bindData() { XmlNode selectedNode = ShareData.Instance.XmlUtil.GetElement(selectedIndex, "FinancialInvestmentPlan"); XmlNodeUtility xmlUtil = new XmlNodeUtility(selectedNode); string expectedSellIndexPrice1_1 = xmlUtil.GetElementValue(0, "ExpectedSellIndexPrice", "RevenuePlan/Sell1"); string expectedSellIndexPrice1_2 = xmlUtil.GetElementValue(1, "ExpectedSellIndexPrice", "RevenuePlan/Sell1"); string expectedSellIndexPrice1_3 = xmlUtil.GetElementValue(2, "ExpectedSellIndexPrice", "RevenuePlan/Sell1"); string expectedSellIndexPrice2_1 = xmlUtil.GetElementValue(0, "ExpectedSellIndexPrice", "RevenuePlan/Sell2"); string expectedSellIndexPrice2_2 = xmlUtil.GetElementValue(1, "ExpectedSellIndexPrice", "RevenuePlan/Sell2"); string expectedSellIndexPrice2_3 = xmlUtil.GetElementValue(2, "ExpectedSellIndexPrice", "RevenuePlan/Sell2"); string expectedSellIndexPrice3_1 = xmlUtil.GetElementValue(0, "ExpectedSellIndexPrice", "RevenuePlan/Sell3"); string expectedSellIndexPrice3_2 = xmlUtil.GetElementValue(1, "ExpectedSellIndexPrice", "RevenuePlan/Sell3"); string expectedSellIndexPrice3_3 = xmlUtil.GetElementValue(2, "ExpectedSellIndexPrice", "RevenuePlan/Sell3"); string expectedAllSellIndexPrice1 = xmlUtil.GetElementValue("ExpectedAllSellIndexPrice", "RevenuePlan/Sell1"); string expectedAllSellIndexPrice2 = xmlUtil.GetElementValue("ExpectedAllSellIndexPrice", "RevenuePlan/Sell2"); string expectedAllSellIndexPrice3 = xmlUtil.GetElementValue("ExpectedAllSellIndexPrice", "RevenuePlan/Sell3"); string etc1 = xmlUtil.GetElementValue("Etc", "RevenuePlan/Sell1"); string etc2 = xmlUtil.GetElementValue("Etc", "RevenuePlan/Sell2"); string etc3 = xmlUtil.GetElementValue("Etc", "RevenuePlan/Sell3"); string reBuyMethod = xmlUtil.GetElementValue("ReBuyMethod", "RevenuePlan"); tbExpectedSellIndexPrice1_1.Text = expectedSellIndexPrice1_1; tbExpectedSellIndexPrice1_2.Text = expectedSellIndexPrice1_2; tbExpectedSellIndexPrice1_3.Text = expectedSellIndexPrice1_3; tbExpectedSellIndexPrice2_1.Text = expectedSellIndexPrice2_1; tbExpectedSellIndexPrice2_2.Text = expectedSellIndexPrice2_2; tbExpectedSellIndexPrice2_3.Text = expectedSellIndexPrice2_3; tbExpectedSellIndexPrice3_1.Text = expectedSellIndexPrice3_1; tbExpectedSellIndexPrice3_2.Text = expectedSellIndexPrice3_2; tbExpectedSellIndexPrice3_3.Text = expectedSellIndexPrice3_3; tbExpectedAllSellIndexPrice1.Text = expectedAllSellIndexPrice1; tbExpectedAllSellIndexPrice2.Text = expectedAllSellIndexPrice2; tbExpectedAllSellIndexPrice3.Text = expectedAllSellIndexPrice3; tbEtc1.Text = etc1; tbEtc2.Text = etc2; tbEtc3.Text = etc3; if (reBuyMethod.StartsWith("수익포함")) { rdoReBuyMethod1.Checked = true; } else { rdoReBuyMethod2.Checked = true; } }
private void btnSave_Click(object sender, EventArgs e) { string expectedSellIndexPrice1_1 = tbExpectedSellIndexPrice1_1.Text; string expectedSellIndexPrice1_2 = tbExpectedSellIndexPrice1_2.Text; string expectedSellIndexPrice1_3 = tbExpectedSellIndexPrice1_3.Text; string expectedSellIndexPrice2_1 = tbExpectedSellIndexPrice2_1.Text; string expectedSellIndexPrice2_2 = tbExpectedSellIndexPrice2_2.Text; string expectedSellIndexPrice2_3 = tbExpectedSellIndexPrice2_3.Text; string expectedSellIndexPrice3_1 = tbExpectedSellIndexPrice3_1.Text; string expectedSellIndexPrice3_2 = tbExpectedSellIndexPrice3_2.Text; string expectedSellIndexPrice3_3 = tbExpectedSellIndexPrice3_3.Text; string expectedAllSellIndexPrice1 = tbExpectedAllSellIndexPrice1.Text; string expectedAllSellIndexPrice2 = tbExpectedAllSellIndexPrice2.Text; string expectedAllSellIndexPrice3 = tbExpectedAllSellIndexPrice3.Text; string etc1 = tbEtc1.Text; string etc2 = tbEtc2.Text; string etc3 = tbEtc3.Text; string reBuyMethod = rdoReBuyMethod1.Checked ? rdoReBuyMethod1.Text : rdoReBuyMethod2.Text; XmlNode selectedNode = ShareData.Instance.XmlUtil.GetElement(selectedIndex, "FinancialInvestmentPlan"); XmlNodeUtility xmlUtil = new XmlNodeUtility(selectedNode); xmlUtil.SetElementValue(0, "ExpectedSellIndexPrice", expectedSellIndexPrice1_1, "RevenuePlan/Sell1"); xmlUtil.SetElementValue(1, "ExpectedSellIndexPrice", expectedSellIndexPrice1_2, "RevenuePlan/Sell1"); xmlUtil.SetElementValue(2, "ExpectedSellIndexPrice", expectedSellIndexPrice1_3, "RevenuePlan/Sell1"); xmlUtil.SetElementValue(0, "ExpectedSellIndexPrice", expectedSellIndexPrice2_1, "RevenuePlan/Sell2"); xmlUtil.SetElementValue(1, "ExpectedSellIndexPrice", expectedSellIndexPrice2_2, "RevenuePlan/Sell2"); xmlUtil.SetElementValue(2, "ExpectedSellIndexPrice", expectedSellIndexPrice2_3, "RevenuePlan/Sell2"); xmlUtil.SetElementValue(0, "ExpectedSellIndexPrice", expectedSellIndexPrice3_1, "RevenuePlan/Sell3"); xmlUtil.SetElementValue(1, "ExpectedSellIndexPrice", expectedSellIndexPrice3_2, "RevenuePlan/Sell3"); xmlUtil.SetElementValue(2, "ExpectedSellIndexPrice", expectedSellIndexPrice3_3, "RevenuePlan/Sell3"); xmlUtil.SetElementValue("ExpectedAllSellIndexPrice", expectedAllSellIndexPrice1, "RevenuePlan/Sell1"); xmlUtil.SetElementValue("ExpectedAllSellIndexPrice", expectedAllSellIndexPrice2, "RevenuePlan/Sell2"); xmlUtil.SetElementValue("ExpectedAllSellIndexPrice", expectedAllSellIndexPrice3, "RevenuePlan/Sell3"); xmlUtil.SetElementValue("Etc", etc1, "RevenuePlan/Sell1"); xmlUtil.SetElementValue("Etc", etc2, "RevenuePlan/Sell2"); xmlUtil.SetElementValue("Etc", etc3, "RevenuePlan/Sell3"); xmlUtil.SetElementValue("ReBuyMethod", reBuyMethod, "RevenuePlan"); ShareData.Instance.XmlUtil.Save(); ShareData.Instance.XmlUtil.Reload(); MessageBox.Show("저장되었습니다."); }
private void btnSave_Click(object sender, EventArgs e) { string expectedBuyIndexPrice1_1 = tbExpectedBuyIndexPrice1_1.Text; string expectedBuyIndexPrice1_2 = tbExpectedBuyIndexPrice1_2.Text; string expectedBuyIndexPrice1_3 = tbExpectedBuyIndexPrice1_3.Text; string expectedBuyIndexPrice2_1 = tbExpectedBuyIndexPrice2_1.Text; string expectedBuyIndexPrice2_2 = tbExpectedBuyIndexPrice2_2.Text; string expectedBuyIndexPrice2_3 = tbExpectedBuyIndexPrice2_3.Text; string expectedBuyIndexPrice3_1 = tbExpectedBuyIndexPrice3_1.Text; string expectedBuyIndexPrice3_2 = tbExpectedBuyIndexPrice3_2.Text; string expectedBuyIndexPrice3_3 = tbExpectedBuyIndexPrice3_3.Text; string expectedLosscutIndexPrice1 = tbExpectedLosscutIndexPrice1.Text; string expectedLosscutIndexPrice2 = tbExpectedLosscutIndexPrice2.Text; string expectedLosscutIndexPrice3 = tbExpectedLosscutIndexPrice3.Text; string etc1 = tbEtc1.Text; string etc2 = tbEtc2.Text; string etc3 = tbEtc3.Text; XmlNode selectedNode = ShareData.Instance.XmlUtil.GetElement(selectedIndex, "FinancialInvestmentPlan"); XmlNodeUtility xmlUtil = new XmlNodeUtility(selectedNode); xmlUtil.SetElementValue(0, "ExpectedBuyIndexPrice", expectedBuyIndexPrice1_1, "BuyAndLosscutPlan/Buy1"); xmlUtil.SetElementValue(1, "ExpectedBuyIndexPrice", expectedBuyIndexPrice1_2, "BuyAndLosscutPlan/Buy1"); xmlUtil.SetElementValue(2, "ExpectedBuyIndexPrice", expectedBuyIndexPrice1_3, "BuyAndLosscutPlan/Buy1"); xmlUtil.SetElementValue(0, "ExpectedBuyIndexPrice", expectedBuyIndexPrice2_1, "BuyAndLosscutPlan/Buy2"); xmlUtil.SetElementValue(1, "ExpectedBuyIndexPrice", expectedBuyIndexPrice2_2, "BuyAndLosscutPlan/Buy2"); xmlUtil.SetElementValue(2, "ExpectedBuyIndexPrice", expectedBuyIndexPrice2_3, "BuyAndLosscutPlan/Buy2"); xmlUtil.SetElementValue(0, "ExpectedBuyIndexPrice", expectedBuyIndexPrice3_1, "BuyAndLosscutPlan/Buy3"); xmlUtil.SetElementValue(1, "ExpectedBuyIndexPrice", expectedBuyIndexPrice3_2, "BuyAndLosscutPlan/Buy3"); xmlUtil.SetElementValue(2, "ExpectedBuyIndexPrice", expectedBuyIndexPrice3_3, "BuyAndLosscutPlan/Buy3"); xmlUtil.SetElementValue("ExpectedLosscutIndexPrice", expectedLosscutIndexPrice1, "BuyAndLosscutPlan/Losscut1"); xmlUtil.SetElementValue("ExpectedLosscutIndexPrice", expectedLosscutIndexPrice2, "BuyAndLosscutPlan/Losscut2"); xmlUtil.SetElementValue("ExpectedLosscutIndexPrice", expectedLosscutIndexPrice3, "BuyAndLosscutPlan/Losscut3"); xmlUtil.SetElementValue("Etc1", etc1, "BuyAndLosscutPlan"); xmlUtil.SetElementValue("Etc2", etc2, "BuyAndLosscutPlan"); xmlUtil.GetElementValue("Etc3", etc3, "BuyAndLosscutPlan"); ShareData.Instance.XmlUtil.Save(); ShareData.Instance.XmlUtil.Reload(); MessageBox.Show("저장되었습니다."); }
private void btnSave_Click(object sender, EventArgs e) { string basicChart1 = tbBasicChart1.Text; string basicChart2 = tbBasicChart2.Text; string basicChart3 = tbBasicChart3.Text; string basicChart4 = tbBasicChart4.Text; string basicChart5 = tbBasicChart5.Text; string basicChart6 = tbBasicChart6.Text; string basicChart7 = tbBasicChart7.Text; string basicChart8 = tbBasicChart8.Text; string basicSummary = tbBasicSummary.Text; string indicator1 = tbIndicator1.Text; string indicator2 = tbIndicator2.Text; string indicator3 = tbIndicator3.Text; string indicator4 = tbIndicator4.Text; string indicator5 = tbIndicator5.Text; string indicatorSummary = tbIndicatorSummary.Text; XmlNode selectedNode = ShareData.Instance.XmlUtil.GetElement(selectedIndex, "FinancialInvestmentPlan"); XmlNodeUtility xmlUtil = new XmlNodeUtility(selectedNode); xmlUtil.SetElementValue(0, "BasicChart", basicChart1, "IndexTrendCheck/BasicCharts"); xmlUtil.SetElementValue(1, "BasicChart", basicChart2, "IndexTrendCheck/BasicCharts"); xmlUtil.SetElementValue(2, "BasicChart", basicChart3, "IndexTrendCheck/BasicCharts"); xmlUtil.SetElementValue(3, "BasicChart", basicChart4, "IndexTrendCheck/BasicCharts"); xmlUtil.SetElementValue(4, "BasicChart", basicChart5, "IndexTrendCheck/BasicCharts"); xmlUtil.SetElementValue(5, "BasicChart", basicChart6, "IndexTrendCheck/BasicCharts"); xmlUtil.SetElementValue(6, "BasicChart", basicChart7, "IndexTrendCheck/BasicCharts"); xmlUtil.SetElementValue(7, "BasicChart", basicChart8, "IndexTrendCheck/BasicCharts"); xmlUtil.SetElementValue("Summary", basicSummary, "IndexTrendCheck/BasicCharts"); xmlUtil.SetElementValue(0, "Indicator", indicator1, "IndexTrendCheck/Indicators"); xmlUtil.SetElementValue(1, "Indicator", indicator2, "IndexTrendCheck/Indicators"); xmlUtil.SetElementValue(2, "Indicator", indicator3, "IndexTrendCheck/Indicators"); xmlUtil.SetElementValue(3, "Indicator", indicator4, "IndexTrendCheck/Indicators"); xmlUtil.SetElementValue(4, "Indicator", indicator5, "IndexTrendCheck/Indicators"); xmlUtil.SetElementValue("Summary", indicatorSummary, "IndexTrendCheck/Indicators"); ShareData.Instance.XmlUtil.Save(); ShareData.Instance.XmlUtil.Reload(); MessageBox.Show("저장되었습니다."); }
private void bindData() { XmlNode selectedNode = ShareData.Instance.XmlUtil.GetElement(selectedIndex, "FinancialInvestmentPlan"); XmlNodeUtility xmlUtil = new XmlNodeUtility(selectedNode); string expectedBuyIndexPrice1_1 = xmlUtil.GetElementValue(0, "ExpectedBuyIndexPrice", "BuyAndLosscutPlan/Buy1"); string expectedBuyIndexPrice1_2 = xmlUtil.GetElementValue(1, "ExpectedBuyIndexPrice", "BuyAndLosscutPlan/Buy1"); string expectedBuyIndexPrice1_3 = xmlUtil.GetElementValue(2, "ExpectedBuyIndexPrice", "BuyAndLosscutPlan/Buy1"); string expectedBuyIndexPrice2_1 = xmlUtil.GetElementValue(0, "ExpectedBuyIndexPrice", "BuyAndLosscutPlan/Buy2"); string expectedBuyIndexPrice2_2 = xmlUtil.GetElementValue(1, "ExpectedBuyIndexPrice", "BuyAndLosscutPlan/Buy2"); string expectedBuyIndexPrice2_3 = xmlUtil.GetElementValue(2, "ExpectedBuyIndexPrice", "BuyAndLosscutPlan/Buy2"); string expectedBuyIndexPrice3_1 = xmlUtil.GetElementValue(0, "ExpectedBuyIndexPrice", "BuyAndLosscutPlan/Buy3"); string expectedBuyIndexPrice3_2 = xmlUtil.GetElementValue(1, "ExpectedBuyIndexPrice", "BuyAndLosscutPlan/Buy3"); string expectedBuyIndexPrice3_3 = xmlUtil.GetElementValue(2, "ExpectedBuyIndexPrice", "BuyAndLosscutPlan/Buy3"); string expectedLosscutIndexPrice1 = xmlUtil.GetElementValue("ExpectedLosscutIndexPrice", "BuyAndLosscutPlan/Losscut1"); string expectedLosscutIndexPrice2 = xmlUtil.GetElementValue("ExpectedLosscutIndexPrice", "BuyAndLosscutPlan/Losscut2"); string expectedLosscutIndexPrice3 = xmlUtil.GetElementValue("ExpectedLosscutIndexPrice", "BuyAndLosscutPlan/Losscut3"); string etc1 = xmlUtil.GetElementValue("Etc1", "BuyAndLosscutPlan"); string etc2 = xmlUtil.GetElementValue("Etc2", "BuyAndLosscutPlan"); string etc3 = xmlUtil.GetElementValue("Etc3", "BuyAndLosscutPlan"); tbExpectedBuyIndexPrice1_1.Text = expectedBuyIndexPrice1_1; tbExpectedBuyIndexPrice1_2.Text = expectedBuyIndexPrice1_2; tbExpectedBuyIndexPrice1_3.Text = expectedBuyIndexPrice1_3; tbExpectedBuyIndexPrice2_1.Text = expectedBuyIndexPrice2_1; tbExpectedBuyIndexPrice2_2.Text = expectedBuyIndexPrice2_2; tbExpectedBuyIndexPrice2_3.Text = expectedBuyIndexPrice2_3; tbExpectedBuyIndexPrice3_1.Text = expectedBuyIndexPrice3_1; tbExpectedBuyIndexPrice3_2.Text = expectedBuyIndexPrice3_2; tbExpectedBuyIndexPrice3_3.Text = expectedBuyIndexPrice3_3; tbExpectedLosscutIndexPrice1.Text = expectedLosscutIndexPrice1; tbExpectedLosscutIndexPrice2.Text = expectedLosscutIndexPrice2; tbExpectedLosscutIndexPrice3.Text = expectedLosscutIndexPrice3; tbEtc1.Text = etc1; tbEtc2.Text = etc2; tbEtc3.Text = etc3; }
private void bindData() { XmlNode selectedNode = ShareData.Instance.XmlUtil.GetElement(selectedIndex, "FinancialInvestmentPlan"); XmlNodeUtility xmlUtil = new XmlNodeUtility(selectedNode); string basicChart1 = xmlUtil.GetElementValue(0, "BasicChart", "IndexTrendCheck/BasicCharts"); string basicChart2 = xmlUtil.GetElementValue(1, "BasicChart", "IndexTrendCheck/BasicCharts"); string basicChart3 = xmlUtil.GetElementValue(2, "BasicChart", "IndexTrendCheck/BasicCharts"); string basicChart4 = xmlUtil.GetElementValue(3, "BasicChart", "IndexTrendCheck/BasicCharts"); string basicChart5 = xmlUtil.GetElementValue(4, "BasicChart", "IndexTrendCheck/BasicCharts"); string basicChart6 = xmlUtil.GetElementValue(5, "BasicChart", "IndexTrendCheck/BasicCharts"); string basicChart7 = xmlUtil.GetElementValue(6, "BasicChart", "IndexTrendCheck/BasicCharts"); string basicChart8 = xmlUtil.GetElementValue(7, "BasicChart", "IndexTrendCheck/BasicCharts"); string basicSummary = xmlUtil.GetElementValue("Summary", "IndexTrendCheck/BasicCharts"); string indicator1 = xmlUtil.GetElementValue(0, "Indicator", "IndexTrendCheck/Indicators"); string indicator2 = xmlUtil.GetElementValue(1, "Indicator", "IndexTrendCheck/Indicators"); string indicator3 = xmlUtil.GetElementValue(2, "Indicator", "IndexTrendCheck/Indicators"); string indicator4 = xmlUtil.GetElementValue(3, "Indicator", "IndexTrendCheck/Indicators"); string indicator5 = xmlUtil.GetElementValue(4, "Indicator", "IndexTrendCheck/Indicators"); string indicatorSummary = xmlUtil.GetElementValue("Summary", "IndexTrendCheck/Indicators"); tbBasicChart1.Text = basicChart1; tbBasicChart2.Text = basicChart2; tbBasicChart3.Text = basicChart3; tbBasicChart4.Text = basicChart4; tbBasicChart5.Text = basicChart5; tbBasicChart6.Text = basicChart6; tbBasicChart7.Text = basicChart7; tbBasicChart8.Text = basicChart8; tbBasicSummary.Text = basicSummary; tbIndicator1.Text = indicator1; tbIndicator2.Text = indicator2; tbIndicator3.Text = indicator3; tbIndicator4.Text = indicator4; tbIndicator5.Text = indicator5; tbIndicatorSummary.Text = indicatorSummary; }