Exemple #1
0
        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
            }
        }
Exemple #2
0
 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";
     }
 }