[Quantproject-developers] QuantDownloader/Downloader Main.cs,1.6,1.7
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2004-03-21 16:50:44
|
Update of /cvsroot/quantproject/QuantDownloader/Downloader In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv503/Downloader Modified Files: Main.cs Log Message: Added the menu item to invoke the QuotesEditor Index: Main.cs =================================================================== RCS file: /cvsroot/quantproject/QuantDownloader/Downloader/Main.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Main.cs 4 Feb 2004 19:27:10 -0000 1.6 --- Main.cs 21 Mar 2004 16:39:58 -0000 1.7 *************** *** 27,30 **** --- 27,31 ---- private System.Windows.Forms.MenuItem menuItemTickerViewer; private System.Windows.Forms.MenuItem menuItemTickerGroupsViewer; + private System.Windows.Forms.MenuItem menuItemQuotesEditor; /// <summary> /// Required designer variable. *************** *** 81,91 **** this.menuItem6 = new System.Windows.Forms.MenuItem(); this.menuItem7 = new System.Windows.Forms.MenuItem(); // // mainMenu1 // this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { ! this.menuItemOpen, ! this.menuImport, ! this.menuValidate}); // // menuItemOpen --- 82,93 ---- this.menuItem6 = new System.Windows.Forms.MenuItem(); this.menuItem7 = new System.Windows.Forms.MenuItem(); + this.menuItemQuotesEditor = new System.Windows.Forms.MenuItem(); // // mainMenu1 // this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { ! this.menuItemOpen, ! this.menuImport, ! this.menuValidate}); // // menuItemOpen *************** *** 93,98 **** this.menuItemOpen.Index = 0; this.menuItemOpen.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { ! this.menuItemTickerViewer, ! this.menuItemTickerGroupsViewer}); this.menuItemOpen.Text = "Open"; // --- 95,101 ---- this.menuItemOpen.Index = 0; this.menuItemOpen.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { ! this.menuItemTickerViewer, ! this.menuItemTickerGroupsViewer, ! this.menuItemQuotesEditor}); this.menuItemOpen.Text = "Open"; // *************** *** 113,117 **** this.menuImport.Index = 1; this.menuImport.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { ! this.subMenuFromTheWeb}); this.menuImport.Text = "Import"; // --- 116,120 ---- this.menuImport.Index = 1; this.menuImport.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { ! this.subMenuFromTheWeb}); this.menuImport.Text = "Import"; // *************** *** 126,130 **** this.menuValidate.Index = 2; this.menuValidate.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { ! this.subMenuValidateGo}); this.menuValidate.Text = "Validate"; // --- 129,133 ---- this.menuValidate.Index = 2; this.menuValidate.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { ! this.subMenuValidateGo}); this.menuValidate.Text = "Validate"; // *************** *** 170,173 **** --- 173,182 ---- this.menuItem7.Text = ""; // + // menuItemQuotesEditor + // + this.menuItemQuotesEditor.Index = 2; + this.menuItemQuotesEditor.Text = "Quotes Editor"; + this.menuItemQuotesEditor.Click += new System.EventHandler(this.menuItemQuotesEditor_Click); + // // Principale // *************** *** 205,210 **** //try { ! Application.Run(new Principale()); //togli il commento per riavere la windows application ! //new RunMSFTsimpleTest().Run(); } //catch ( Exception ex ) --- 214,220 ---- //try { ! Application.Run(new Principale()); //togli il commento per riavere il downloader ! // Application.Run(new QuotesEditor( "RYVYX" )); ! // Application.Run(new TestScpl()); } //catch ( Exception ex ) *************** *** 239,242 **** --- 249,258 ---- } + private void menuItemQuotesEditor_Click(object sender, System.EventArgs e) + { + QuotesEditor quotesEditor = new QuotesEditor( "MSFT" ); + quotesEditor.ShowDialog(); + } + } } |