Наследование: System.Windows.Forms.Form
Пример #1
0
        private void ctxPortfolios_AddNew_Click(object sender, EventArgs e)
        {
            NewPortfolioForm newPortfolioForm = new NewPortfolioForm();

            if (newPortfolioForm.ShowDialog((IWin32Window)this) == DialogResult.OK)
            {
                this.framework.PortfolioManager.Add(new SmartQuant.Portfolio(this.framework, newPortfolioForm.PortfolioName), true);
            }
            newPortfolioForm.Dispose();
        }
Пример #2
0
 private void ctxPortfolios_AddNew_Click(object sender, EventArgs e)
 {
   NewPortfolioForm newPortfolioForm = new NewPortfolioForm();
   if (newPortfolioForm.ShowDialog((IWin32Window) this) == DialogResult.OK)
     this.framework.PortfolioManager.Add(new SmartQuant.Portfolio(this.framework, newPortfolioForm.PortfolioName), true);
   newPortfolioForm.Dispose();
 }