void wbOpen(Excel.Workbook Wb) { string shName = CFG.getMasterSheet(); Excel.Worksheet sh = Q1XLS.getSheet(shName); if (sh != null) { Q1Threading t = Q1Threading.getInstance(); t.startTickers(); // Ocultar la opcion de menu } }
private void btnStock_Click(object sender, RibbonControlEventArgs e) { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Q1Ribbon)); CFG.Loading = !CFG.Loading; if (CFG.Loading) { btnStock.Image = ((System.Drawing.Image)(resources.GetObject("btnStockOK.Image"))); btnStock.Label = "Cotizacion\nActivo"; Q1Threading t = Q1Threading.getInstance(); t.startTickers(); } else { btnStock.Image = ((System.Drawing.Image)(resources.GetObject("btnStockKO.Image"))); btnStock.Label = "Cotizacion"; } }