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 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 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 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; }
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 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; } }