Ejemplo n.º 1
0
        public override void ViewDidAppear(bool animated)
        {
            NSIndexPath index = NSIndexPath.FromRowSection(this.application.index, 0);

            Console.WriteLine("Index: " + index.Row);
            if (this.application.tabBarID == 1)
            {
                Console.WriteLine("wtf?");
                this.TableView.ScrollToRow(index, UITableViewScrollPosition.Top, true);
                this.TableView.SelectRow(index, true, UITableViewScrollPosition.Top);

                BatteryMonitor AI = new BatteryMonitor();
                AI.frenchPhraseBookAI(this.familyTranslatedDict[index.Row]);
            }
            else if (this.application.tabBarID == 0)
            {
                if (this.application.localizedTextFamily.Count == 1)
                {
                    this.application.cellFamily.AccessoryView        = this.favouritesIndicator;
                    this.application.cellFamily.EditingAccessoryView = this.favouritesIndicator;
                    this.TableView.ReloadData();
                }
            }

            if (this.application.localizedTextFamily.Count == 1)
            {
                this.application.cellFamily.AccessoryView        = this.favouritesIndicator;
                this.application.cellFamily.EditingAccessoryView = this.favouritesIndicator;
                this.TableView.ReloadData();
            }
        }
Ejemplo n.º 2
0
        public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
        {
            BatteryMonitor AI = new BatteryMonitor();

            AI.frenchPhraseBookAI(tableView.CellAt(indexPath).DetailTextLabel.Text);
            tableView.DeselectRow(indexPath, true);
        }
Ejemplo n.º 3
0
        public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
        {
            BatteryMonitor AI = new BatteryMonitor();

            switch (indexPath.Row)
            {
            case 0:
                AI.frenchPhraseBookAI(familyTranslatedDict[0]);
                break;

            case 1:
                AI.frenchPhraseBookAI(familyTranslatedDict[1]);
                break;

            case 2:
                AI.frenchPhraseBookAI(familyTranslatedDict[2]);
                break;

            case 3:
                AI.frenchPhraseBookAI(familyTranslatedDict[3]);
                break;

            case 4:
                AI.frenchPhraseBookAI(familyTranslatedDict[4]);
                break;

            case 5:
                AI.frenchPhraseBookAI(familyTranslatedDict[5]);
                break;

            case 6:
                AI.frenchPhraseBookAI(familyTranslatedDict[6]);
                break;

            case 7:
                AI.frenchPhraseBookAI(familyTranslatedDict[7]);
                break;

            case 8:
                AI.frenchPhraseBookAI(familyTranslatedDict[8]);
                break;

            case 9:
                AI.frenchPhraseBookAI(familyTranslatedDict[9]);
                break;

            case 10:
                AI.frenchPhraseBookAI(familyTranslatedDict[10]);
                break;

            case 11:
                AI.frenchPhraseBookAI(familyTranslatedDict[11]);
                break;

            case 12:
                AI.frenchPhraseBookAI(familyTranslatedDict[12]);
                break;

            case 13:
                AI.frenchPhraseBookAI(familyTranslatedDict[13]);
                break;

            case 14:
                AI.frenchPhraseBookAI(familyTranslatedDict[14]);
                break;

            case 15:
                AI.frenchPhraseBookAI(familyTranslatedDict[15]);
                break;

            case 16:
                AI.frenchPhraseBookAI(familyTranslatedDict[16]);
                break;

            case 17:
                AI.frenchPhraseBookAI(familyTranslatedDict[17]);
                break;

            case 18:
                AI.frenchPhraseBookAI(familyTranslatedDict[18]);
                break;

            case 19:
                AI.frenchPhraseBookAI(familyTranslatedDict[19]);
                break;

            case 20:
                AI.frenchPhraseBookAI(familyTranslatedDict[20]);
                break;

            case 21:
                AI.frenchPhraseBookAI(familyTranslatedDict[21]);
                break;

            case 22:
                AI.frenchPhraseBookAI(familyTranslatedDict[22]);
                break;

            case 23:
                AI.frenchPhraseBookAI(familyTranslatedDict[23]);
                break;

            case 24:
                AI.frenchPhraseBookAI(familyTranslatedDict[24]);
                break;

            case 25:
                AI.frenchPhraseBookAI(familyTranslatedDict[25]);
                break;

            case 26:
                AI.frenchPhraseBookAI(familyTranslatedDict[26]);
                break;

            case 27:
                AI.frenchPhraseBookAI(familyTranslatedDict[27]);
                break;

            case 28:
                AI.frenchPhraseBookAI(familyTranslatedDict[28]);
                break;

            case 29:
                AI.frenchPhraseBookAI(familyTranslatedDict[29]);
                break;

            case 30:
                AI.frenchPhraseBookAI(familyTranslatedDict[30]);
                break;

            case 31:
                AI.frenchPhraseBookAI(familyTranslatedDict[31]);
                break;

            case 32:
                AI.frenchPhraseBookAI(familyTranslatedDict[32]);
                break;

            case 33:
                AI.frenchPhraseBookAI(familyTranslatedDict[33]);
                break;

            case 34:
                AI.frenchPhraseBookAI(familyTranslatedDict[34]);
                break;

            case 35:
                AI.frenchPhraseBookAI(familyTranslatedDict[35]);
                break;

            case 36:
                AI.frenchPhraseBookAI(familyTranslatedDict[36]);
                break;

            case 37:
                AI.frenchPhraseBookAI(familyTranslatedDict[37]);
                break;

            case 38:
                AI.frenchPhraseBookAI(familyTranslatedDict[38]);
                break;

            case 39:
                AI.frenchPhraseBookAI(familyTranslatedDict[39]);
                break;

            case 40:
                AI.frenchPhraseBookAI(familyTranslatedDict[40]);
                break;

            case 41:
                AI.frenchPhraseBookAI(familyTranslatedDict[41]);
                break;

            case 42:
                AI.frenchPhraseBookAI(familyTranslatedDict[42]);
                break;

            case 43:
                AI.frenchPhraseBookAI(familyTranslatedDict[43]);
                break;

            case 44:
                AI.frenchPhraseBookAI(familyTranslatedDict[44]);
                break;

            case 45:
                AI.frenchPhraseBookAI(familyTranslatedDict[45]);
                break;

            case 46:
                AI.frenchPhraseBookAI(familyTranslatedDict[46]);
                break;

            case 47:
                AI.frenchPhraseBookAI(familyTranslatedDict[47]);
                break;

            case 48:
                AI.frenchPhraseBookAI(familyTranslatedDict[48]);
                break;

            case 49:
                AI.frenchPhraseBookAI(familyTranslatedDict[49]);
                break;

            case 50:
                AI.frenchPhraseBookAI(familyTranslatedDict[50]);
                break;

            case 51:
                AI.frenchPhraseBookAI(familyTranslatedDict[51]);
                break;

            case 52:
                AI.frenchPhraseBookAI(familyTranslatedDict[52]);
                break;

            case 53:
                AI.frenchPhraseBookAI(familyTranslatedDict[53]);
                break;

            case 54:
                AI.frenchPhraseBookAI(familyTranslatedDict[54]);
                break;

            case 55:
                AI.frenchPhraseBookAI(familyTranslatedDict[55]);
                break;

            case 56:
                AI.frenchPhraseBookAI(familyTranslatedDict[56]);
                break;

            case 57:
                AI.frenchPhraseBookAI(familyTranslatedDict[57]);
                break;

            case 58:
                AI.frenchPhraseBookAI(familyTranslatedDict[58]);
                break;

            case 59:
                AI.frenchPhraseBookAI(familyTranslatedDict[59]);
                break;

            case 60:
                AI.frenchPhraseBookAI(familyTranslatedDict[60]);
                break;

            case 61:
                AI.frenchPhraseBookAI(familyTranslatedDict[61]);
                break;

            case 62:
                AI.frenchPhraseBookAI(familyTranslatedDict[62]);
                break;

            case 63:
                AI.frenchPhraseBookAI(familyTranslatedDict[63]);
                break;

            case 64:
                AI.frenchPhraseBookAI(familyTranslatedDict[64]);
                break;

            case 65:
                AI.frenchPhraseBookAI(familyTranslatedDict[65]);
                break;

            case 66:
                AI.frenchPhraseBookAI(familyTranslatedDict[66]);
                break;

            case 67:
                AI.frenchPhraseBookAI(familyTranslatedDict[67]);
                break;

            case 68:
                AI.frenchPhraseBookAI(familyTranslatedDict[68]);
                break;

            case 69:
                AI.frenchPhraseBookAI(familyTranslatedDict[69]);
                break;

            case 70:
                AI.frenchPhraseBookAI(familyTranslatedDict[70]);
                break;

            default:
                Console.WriteLine("No key selected");
                break;
            }
            tableView.DeselectRow(indexPath, true);
        }
        public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
        {
            BatteryMonitor AI = new BatteryMonitor();

            switch (indexPath.Row)
            {
            case 0:
                AI.frenchPhraseBookAI(travelTranslatedDict[0]);
                break;

            case 1:
                AI.frenchPhraseBookAI(travelTranslatedDict[1]);
                break;

            case 2:
                AI.frenchPhraseBookAI(travelTranslatedDict[2]);
                break;

            case 3:
                AI.frenchPhraseBookAI(travelTranslatedDict[3]);
                break;

            case 4:
                AI.frenchPhraseBookAI(travelTranslatedDict[4]);
                break;

            case 5:
                AI.frenchPhraseBookAI(travelTranslatedDict[5]);
                break;

            case 6:
                AI.frenchPhraseBookAI(travelTranslatedDict[6]);
                break;

            case 7:
                AI.frenchPhraseBookAI(travelTranslatedDict[7]);
                break;

            case 8:
                AI.frenchPhraseBookAI(travelTranslatedDict[8]);
                break;

            case 9:
                AI.frenchPhraseBookAI(travelTranslatedDict[9]);
                break;

            case 10:
                AI.frenchPhraseBookAI(travelTranslatedDict[10]);
                break;

            case 11:
                AI.frenchPhraseBookAI(travelTranslatedDict[11]);
                break;

            case 12:
                AI.frenchPhraseBookAI(travelTranslatedDict[12]);
                break;

            case 13:
                AI.frenchPhraseBookAI(travelTranslatedDict[13]);
                break;

            case 14:
                AI.frenchPhraseBookAI(travelTranslatedDict[14]);
                break;

            case 15:
                AI.frenchPhraseBookAI(travelTranslatedDict[15]);
                break;

            case 16:
                AI.frenchPhraseBookAI(travelTranslatedDict[16]);
                break;

            case 17:
                AI.frenchPhraseBookAI(travelTranslatedDict[17]);
                break;

            case 18:
                AI.frenchPhraseBookAI(travelTranslatedDict[18]);
                break;

            case 19:
                AI.frenchPhraseBookAI(travelTranslatedDict[19]);
                break;

            case 20:
                AI.frenchPhraseBookAI(travelTranslatedDict[20]);
                break;

            case 21:
                AI.frenchPhraseBookAI(travelTranslatedDict[21]);
                break;

            case 22:
                AI.frenchPhraseBookAI(travelTranslatedDict[22]);
                break;

            case 23:
                AI.frenchPhraseBookAI(travelTranslatedDict[23]);
                break;

            case 24:
                AI.frenchPhraseBookAI(travelTranslatedDict[24]);
                break;

            case 25:
                AI.frenchPhraseBookAI(travelTranslatedDict[25]);
                break;

            case 26:
                AI.frenchPhraseBookAI(travelTranslatedDict[26]);
                break;

            case 27:
                AI.frenchPhraseBookAI(travelTranslatedDict[27]);
                break;

            case 28:
                AI.frenchPhraseBookAI(travelTranslatedDict[28]);
                break;

            case 29:
                AI.frenchPhraseBookAI(travelTranslatedDict[29]);
                break;

            case 30:
                AI.frenchPhraseBookAI(travelTranslatedDict[30]);
                break;

            case 31:
                AI.frenchPhraseBookAI(travelTranslatedDict[31]);
                break;

            case 32:
                AI.frenchPhraseBookAI(travelTranslatedDict[32]);
                break;

            case 33:
                AI.frenchPhraseBookAI(travelTranslatedDict[33]);
                break;

            case 34:
                AI.frenchPhraseBookAI(travelTranslatedDict[34]);
                break;

            case 35:
                AI.frenchPhraseBookAI(travelTranslatedDict[35]);
                break;

            case 36:
                AI.frenchPhraseBookAI(travelTranslatedDict[36]);
                break;

            case 37:
                AI.frenchPhraseBookAI(travelTranslatedDict[37]);
                break;

            case 38:
                AI.frenchPhraseBookAI(travelTranslatedDict[38]);
                break;

            case 39:
                AI.frenchPhraseBookAI(travelTranslatedDict[39]);
                break;

            case 40:
                AI.frenchPhraseBookAI(travelTranslatedDict[40]);
                break;

            case 41:
                AI.frenchPhraseBookAI(travelTranslatedDict[41]);
                break;
            }
            tableView.DeselectRow(indexPath, true);
        }
Ejemplo n.º 5
0
        public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
        {
            BatteryMonitor AI = new BatteryMonitor();

            switch (indexPath.Row)
            {
            case 0:
                AI.frenchPhraseBookAI(firstTimeTranslated[0]);
                break;

            case 1:
                AI.frenchPhraseBookAI(firstTimeTranslated[1]);
                break;

            case 2:
                AI.frenchPhraseBookAI(firstTimeTranslated[2]);
                break;

            case 3:
                AI.frenchPhraseBookAI(firstTimeTranslated[3]);
                break;

            case 4:
                AI.frenchPhraseBookAI(firstTimeTranslated[4]);
                break;

            case 5:
                AI.frenchPhraseBookAI(firstTimeTranslated[5]);
                break;

            case 6:
                AI.frenchPhraseBookAI(firstTimeTranslated[6]);
                break;

            case 7:
                AI.frenchPhraseBookAI(firstTimeTranslated[7]);
                break;

            case 8:
                AI.frenchPhraseBookAI(firstTimeTranslated[8]);
                break;

            case 9:
                AI.frenchPhraseBookAI(firstTimeTranslated[9]);
                break;

            case 10:
                AI.frenchPhraseBookAI(firstTimeTranslated[10]);
                break;

            case 11:
                AI.frenchPhraseBookAI(firstTimeTranslated[11]);
                break;

            case 12:
                AI.frenchPhraseBookAI(firstTimeTranslated[12]);
                break;

            case 13:
                AI.frenchPhraseBookAI(firstTimeTranslated[13]);
                break;

            case 14:
                AI.frenchPhraseBookAI(firstTimeTranslated[14]);
                break;

            case 15:
                AI.frenchPhraseBookAI(firstTimeTranslated[15]);
                break;

            case 16:
                AI.frenchPhraseBookAI(firstTimeTranslated[16]);
                break;

            case 17:
                AI.frenchPhraseBookAI(firstTimeTranslated[17]);
                break;

            case 18:
                AI.frenchPhraseBookAI(firstTimeTranslated[18]);
                break;

            case 19:
                AI.frenchPhraseBookAI(firstTimeTranslated[19]);
                break;

            case 20:
                AI.frenchPhraseBookAI(firstTimeTranslated[20]);
                break;

            case 21:
                AI.frenchPhraseBookAI(firstTimeTranslated[21]);
                break;

            case 22:
                AI.frenchPhraseBookAI(firstTimeTranslated[22]);
                break;

            case 23:
                AI.frenchPhraseBookAI(firstTimeTranslated[23]);
                break;

            case 24:
                AI.frenchPhraseBookAI(firstTimeTranslated[24]);
                break;

            case 25:
                AI.frenchPhraseBookAI(firstTimeTranslated[25]);
                break;

            case 26:
                AI.frenchPhraseBookAI(firstTimeTranslated[26]);
                break;

            case 27:
                AI.frenchPhraseBookAI(firstTimeTranslated[27]);
                break;

            case 28:
                AI.frenchPhraseBookAI(firstTimeTranslated[28]);
                break;

            case 29:
                AI.frenchPhraseBookAI(firstTimeTranslated[29]);
                break;

            case 30:
                AI.frenchPhraseBookAI(firstTimeTranslated[30]);
                break;

            case 31:
                AI.frenchPhraseBookAI(firstTimeTranslated[31]);
                break;

            case 32:
                AI.frenchPhraseBookAI(firstTimeTranslated[32]);
                break;

            case 33:
                AI.frenchPhraseBookAI(firstTimeTranslated[33]);
                break;

            case 34:
                AI.frenchPhraseBookAI(firstTimeTranslated[34]);
                break;

            case 35:
                AI.frenchPhraseBookAI(firstTimeTranslated[35]);
                break;

            case 36:
                AI.frenchPhraseBookAI(firstTimeTranslated[36]);
                break;

            case 37:
                AI.frenchPhraseBookAI(firstTimeTranslated[37]);
                break;

            case 38:
                AI.frenchPhraseBookAI(firstTimeTranslated[38]);
                break;

            case 39:
                AI.frenchPhraseBookAI(firstTimeTranslated[39]);
                break;

            case 40:
                AI.frenchPhraseBookAI(firstTimeTranslated[40]);
                break;

            case 41:
                AI.frenchPhraseBookAI(firstTimeTranslated[41]);
                break;

            case 42:
                AI.frenchPhraseBookAI(firstTimeTranslated[42]);
                break;

            case 43:
                AI.frenchPhraseBookAI(firstTimeTranslated[43]);
                break;

            case 44:
                AI.frenchPhraseBookAI(firstTimeTranslated[44]);
                break;

            default:
                Console.WriteLine("No key selected");
                break;
            }
            tableView.DeselectRow(indexPath, true);
        }