private void ChildFormIncomeStatement_Load(object sender, EventArgs e) { financialStatementModelBindingSource.DataSource = FinancialStatementDao.GetFinancialStatements(); diagram = (XYDiagram)IncomeChart.Diagram; IncomeChart.Animate(); }
private void NavigateMenuCloseButton_Click(object sender, EventArgs e) { IncomeChart.Visible = false; IncomeChart.Dispose(); FormEvent = eClose; AnimateTimer.Enabled = true; }
private void kryptonCheckSet2_CheckedButtonChanged(object sender, EventArgs e) { if (IncomeMonth == null) { return; } if (kryptonCheckSet2.CheckedButton.Name == "AllCheckButton") { Thread T = new Thread(delegate() { SplashWindow.CreateSmallSplash(ref TopForm, "Загрузка данных с сервера.\r\nПодождите..."); }); T.Start(); while (!SplashWindow.bSmallCreated) { ; } IncomeMonth.Factory = 0; IncomeMonth.Fill(); IncomeChart.RefreshData(); while (SplashWindow.bSmallCreated) { SmallWaitForm.CloseS = true; } } if (kryptonCheckSet2.CheckedButton.Name == "ProfilCheckButton") { Thread T = new Thread(delegate() { SplashWindow.CreateSmallSplash(ref TopForm, "Загрузка данных с сервера.\r\nПодождите..."); }); T.Start(); while (!SplashWindow.bSmallCreated) { ; } IncomeMonth.Factory = 1; IncomeMonth.Fill(); IncomeChart.RefreshData(); while (SplashWindow.bSmallCreated) { SmallWaitForm.CloseS = true; } } if (kryptonCheckSet2.CheckedButton.Name == "TPSCheckButton") { Thread T = new Thread(delegate() { SplashWindow.CreateSmallSplash(ref TopForm, "Загрузка данных с сервера.\r\nПодождите..."); }); T.Start(); while (!SplashWindow.bSmallCreated) { ; } IncomeMonth.Factory = 2; IncomeMonth.Fill(); IncomeChart.RefreshData(); while (SplashWindow.bSmallCreated) { SmallWaitForm.CloseS = true; } } }