Example #1
0
    public void Disable()
    {
        isDisabled = true;
        foreach (var VARIABLE in this.GetComponentsInChildren <SpriteRenderer>())
        {
            VARIABLE.DOFade(0, GameplayConstants.KilledCardFadeOutDuration);
        }

        foreach (TextMeshPro textMeshPro in this.GetComponentsInChildren <TextMeshPro>())
        {
            textMeshPro.DOFade(0, GameplayConstants.KilledCardFadeOutDuration);
        }
    }
        public void SortStudentByName()
        {
            Console.WriteLine("Nhap Name de tim kiem: ");
            string nameSearch = Console.ReadLine();

            foreach (var VARIABLE in listStudent)
            {
                if (VARIABLE.Name.Equals(nameSearch))
                {
                    VARIABLE.Display();
                    Console.WriteLine("--------------------");
                }
            }
        }
        public string ShowConstantTable()
        {
            string res = "";

            for (int i = 0; i < ConstantTable.Count; i++)
            {
                res += "№: " + i + ", Constant: " + ConstantTable[i] + "\n";
            }
            foreach (var VARIABLE in res)
            {
                Console.Write(VARIABLE.ToString());
            }
            return(res);
        }
Example #4
0
        //set Paymentfrequency
        void Paymentfrequency(string paymentfrequency)
        {
            DdlPaymentFrequancy.Click();
            var lists = Driver.WaitForElementExist(By.XPath("//div[@class='menu transition visible']"), 3)
                        .FindElements(By.TagName("div"));

            foreach (var VARIABLE in lists)
            {
                if (VARIABLE.Text == paymentfrequency)
                {
                    VARIABLE.Click();
                }
            }
        }
Example #5
0
        // Return is the user can edit
        public bool isEditType(string username, string password)
        {
            bool isEditTypeExist = false;

            foreach (var VARIABLE in usersList)
            {
                if (VARIABLE.ToString().Contains(username + "," + password + "," + "Edit"))
                {
                    isEditTypeExist = true;
                }
            }

            return(isEditTypeExist);
        }
Example #6
0
 //设置终点
 void SetEndPoint(int x = 5, int y = 4)
 {
     foreach (var VARIABLE in mg.obj_blocks)
     {
         //寻找到以后就
         if (VARIABLE.GetComponent <astar_node>().point.x == x && VARIABLE.GetComponent <astar_node>().point.y == y)
         {
             //设为蓝色 并且设置起点
             VARIABLE.GetComponent <SpriteRenderer>().color = Color.red;
             //记录终点
             mg.end_point = VARIABLE.GetComponent <astar_node>().point;
         }
     }
 }
Example #7
0
/// <summary>
/// 添加检查连连看
/// </summary>
/// <param name="lianliankan"></param>
    public void AddCheckLianliankan(Lianliankan lianliankan)
    {
        if (IsFinish)
        {
            return;
        }
        if (string.IsNullOrWhiteSpace(lianliankan.LianliankanName))
        {
            Debug.LogError("连连看模块名称为空");
            return;
        }

        if (lianliankan.LianliankanName != NowLianLianKanName && !String.IsNullOrWhiteSpace(NowLianLianKanName))//连连看名称和当前选中的名称不匹配,并且不为空
        {
            lianliankan.OnReset();
            foreach (var VARIABLE in CheckList)
            {
                VARIABLE.OnReset();
            }
            ClearAllAddLianLianKan();
            return;
        }
        if (String.IsNullOrWhiteSpace(NowLianLianKanName))//当前没有选中任何连连看拼图
        {
            CheckList.Clear();
            NowLianLianKanCount = 0;
            ////统计该名称连连看的数量
            if (NowLianLianKanCount == 0)
            {
                foreach (var VARIABLE in Lianliankans)
                {
                    if (VARIABLE.LianliankanName == lianliankan.LianliankanName)
                    {
                        NowLianLianKanCount++;
                    }
                }
            }
            ////
            NowLianLianKanName = lianliankan.LianliankanName;
        }
        if (!CheckList.Contains(lianliankan)) //如果连连看检测数组中不存在
        {
            CheckList.Add(lianliankan);       //添加已经检测完毕的连连看
            lianliankan.OnAdd();
        }
        if (CheckList.Count >= NowLianLianKanCount)
        {
            FinishLianLianKan(CheckList);
        }
    }
Example #8
0
        public DataTable GroupByYear()
        {
            SessionVariables.RequestProfile.AuditId = 200;
            var dt = ScheduleDataManager.GetList(SessionVariables.RequestProfile);

            var workSummary = from eschedule in dt.AsEnumerable()

                              let WorkDate = eschedule.Field <DateTime>("WorkDate")

                                             group eschedule by new { Year = WorkDate.Year } into wsum

                select new

            {
                Year = wsum.Key.Year,

                Duration = wsum.Sum(eschedule => eschedule.Field <decimal>("TotalHoursWorked")),


                AvgStartTime = wsum.Average(eschedule => decimal.Round(Convert.ToDecimal(eschedule.Field <DateTime>("StartTime").Hour + "." + eschedule.Field <DateTime>("StartTime").Minute), 2)),

                AvgEndTime = wsum.Average(eschedule => decimal.Round(Convert.ToDecimal(eschedule.Field <DateTime>("EndTime").Hour + "." + eschedule.Field <DateTime>("EndTime").Minute), 2)),
            };

            var _dt    = new DataTable();
            var values = new object[4];

            _dt.Columns.Add("Year");
            _dt.Columns.Add("Duration");
            _dt.Columns.Add("AverageStartTime");
            _dt.Columns.Add("AverageEndTime");
            foreach (var VARIABLE in workSummary)
            {
                var year      = VARIABLE.GetType().GetProperty("Year").GetValue(VARIABLE, null).ToString();
                var noofhours = VARIABLE.GetType().GetProperty("Duration").GetValue(VARIABLE, null).ToString();
                var starttime = decimal.Round(decimal.Parse(VARIABLE.GetType().GetProperty("AvgStartTime").GetValue(VARIABLE, null).ToString()), 2).ToString();
                var endtime   = decimal.Round(decimal.Parse(VARIABLE.GetType().GetProperty("AvgEndTime").GetValue(VARIABLE, null).ToString()), 2).ToString();

                values[0] = year;
                values[1] = noofhours;
                values[2] = starttime;
                values[3] = endtime;

                _dt.Rows.Add(values);
            }

            _dt.DefaultView.Sort = "Year ASC";
            return(_dt.DefaultView.ToTable());
        }
Example #9
0
        public string GroupByPerson()
        {
            SessionVariables.RequestProfile.AuditId = 200;
            var dt = ScheduleDataManager.GetList(SessionVariables.RequestProfile);

            var workSummary = from eschedule in dt.AsEnumerable()

                              group eschedule by new { PersonId = eschedule.Field <int>("PersonId") } into wsum

                select new

            {
                PersonId = wsum.Key.PersonId,

                Duration = wsum.Sum(eschedule => eschedule.Field <decimal>("TotalHoursWorked")),

                //AvgStartTime = decimal.Round(wsum.Average(eschedule => eschedule.Field<decimal>("StartTime")), 2),
                AvgStartTime = wsum.Average(eschedule => decimal.Round(Convert.ToDecimal(eschedule.Field <DateTime>("StartTime").Hour + "." + eschedule.Field <DateTime>("StartTime").Minute), 2)),

                //AvgEndTime = decimal.Round(wsum.Average(eschedule => eschedule.Field<decimal>("EndTime")), 2)
                AvgEndTime = wsum.Average(eschedule => decimal.Round(Convert.ToDecimal(eschedule.Field <DateTime>("EndTime").Hour + "." + eschedule.Field <DateTime>("EndTime").Minute), 2)),
            };

            foreach (var VARIABLE in workSummary)
            {
                var personId  = VARIABLE.GetType().GetProperty("PersonId").GetValue(VARIABLE, null).ToString();
                var noofhours = VARIABLE.GetType().GetProperty("Duration").GetValue(VARIABLE, null).ToString();
                var starttime = VARIABLE.GetType().GetProperty("AvgStartTime").GetValue(VARIABLE, null).ToString();
                var endtime   = VARIABLE.GetType().GetProperty("AvgEndTime").GetValue(VARIABLE, null).ToString();


                if (int.Parse(personId) != 0)
                {
                    var personData = ApplicationUserDataManager.GetList(SessionVariables.RequestProfile);
                    var fullname   = (from DataRow dr in personData.Rows
                                      where (int)dr["ApplicationUserId"] == int.Parse(personId)
                                      select(string) dr["FullName"]).FirstOrDefault();

                    var summary = "Person " + fullname + "'s Total Hours Worked: " + noofhours +
                                  "hours,  Average Start Time: " + starttime +
                                  " hours,  Average End Time: " + endtime +
                                  " hours.";
                    RaiseSearch();

                    return(summary);
                }
            }
            return("");
        }
Example #10
0
        private void AddSiren(Vehicle vehicle)
        {
            if (ELS.isStopped)
            {
                return;
            }
#if DEBUG
            foreach (var VARIABLE in vehicle.Bones)
            {
                Debug.WriteLine("Bones\n" + VARIABLE.ToString());
            }
#endif

            _sirens.Add(new Siren.Siren(vehicle));
        }
Example #11
0
        public void UseAForeachLoopToSelectItemsStartingWithPlCaseSentitive()
        {
            var items         = new[] { "plip", "foo", "bar", "plop", "plup", "Plap" };
            var filteredItems = new List <string>();

            // foreach loop to add
            foreach (string VARIABLE in items)
            {
                if (VARIABLE.StartsWith("pl"))
                {
                    filteredItems.Add(VARIABLE);
                }
            }
            Check.That(filteredItems).ContainsExactly("plip", "plop", "plup");
        }
Example #12
0
        private void button2_Click(object sender, EventArgs e)
        {
            List <Form2> f = new List <Form2>();


            for (int i = 0; i < 10; i++)
            {
                f.Add(new Form2());
            }

            foreach (var VARIABLE in f)
            {
                VARIABLE.Show();
            }
        }
Example #13
0
        public static void GetAllTypeInfo()
        {
            var text    = "";
            var allType = Assembly.GetCallingAssembly().GetTypes();

            foreach (var VARIABLE in allType)
            {
                if (VARIABLE.IsSubclassOf(typeof(AbstractPanel)))
                {
                    text += VARIABLE.Name + "\n";
                }
            }

            Debug.Log(text);
        }
 //--监听“资源即将被保存”事件
 public static string[] OnWillSaveAssets(string[] paths)
 {
     if (paths != null)
     {
         foreach (var VARIABLE in paths)
         {
             if (VARIABLE.Contains(".cs"))
             {
                 UpdateAllScript();
                 break;
             }
         }
     }
     return(paths);
 }
Example #15
0
    public async void setTextures(List <PictureData> pictureDatasList)
    {
        textureDatas = pictureDatasList;
        int    size = textureDatas.Count;
        string url;

        foreach (var VARIABLE in textureDatas)
        {
            url = VARIABLE.getURL();
            VARIABLE.setData(await GetRemoteTexture(url));
            FetchedPictureData.Add(VARIABLE);
        }

        createResultObjects(size);
    }
Example #16
0
        private void AktivatBuildings()
        {
            int Worker = 0;

            foreach (Buildings VARIABLE in Buildings)
            {
                VARIABLE.Work(this);

                Worker += VARIABLE.Worker;
            }

            ResursesList["vilager"].CollectionRate =
                Convert.ToInt32(Math.Round(Convert.ToDouble(ResursesList["vilager"].MaxStorage) / 100));
            ResursesList["vilager"].FreeWorkers = ResursesList["vilager"].Colected - Worker;
        }
Example #17
0
    private bool FoundPlayer()
    {
        Collider[] temp = Physics.OverlapSphere(transform.position, sightRadius);
        foreach (var VARIABLE in temp)
        {
            if (VARIABLE.CompareTag("Player"))
            {
                attackTarget = VARIABLE.gameObject;
                return(true);
            }
        }

        attackTarget = null;
        return(false);
    }
        public static string GetMd5String(string str)
        {
            MD5 md5 = MD5.Create();

            byte[]        buffer    = System.Text.Encoding.UTF8.GetBytes(str);
            byte[]        md5Buffer = md5.ComputeHash(buffer);
            StringBuilder sb        = new StringBuilder();

            foreach (byte VARIABLE in md5Buffer)
            {
                sb.Append(VARIABLE.ToString("x2"));
            }

            return(sb.ToString());
        }
Example #19
0
        public void NewGame()
        {
            MevcutTaslar.Clear();
            Holded = null;
            WhiteAttacks.Clear();
            BlackAttacks.Clear();
            TurnOfBlack = false;
            tasima      = false;
            foreach (ChessButton VARIABLE in Squares)
            {
                VARIABLE.Tas    = null;
                VARIABLE.Dolumu = false;
                VARIABLE.GetBackgroundİmage();
            }
            CreateTas(Squares[7, 0], TasTipi.Kale, true);
            CreateTas(Squares[7, 1], TasTipi.At, true);
            CreateTas(Squares[7, 2], TasTipi.Fil, true);
            CreateTas(Squares[7, 3], TasTipi.Sah, true);
            CreateTas(Squares[7, 4], TasTipi.Vezir, true);
            CreateTas(Squares[7, 5], TasTipi.Fil, true);
            CreateTas(Squares[7, 6], TasTipi.At, true);
            CreateTas(Squares[7, 7], TasTipi.Kale, true);
            CreateTas(Squares[6, 0], TasTipi.Piyon, true);
            CreateTas(Squares[6, 1], TasTipi.Piyon, true);
            CreateTas(Squares[6, 2], TasTipi.Piyon, true);
            CreateTas(Squares[6, 3], TasTipi.Piyon, true);
            CreateTas(Squares[6, 4], TasTipi.Piyon, true);
            CreateTas(Squares[6, 5], TasTipi.Piyon, true);
            CreateTas(Squares[6, 6], TasTipi.Piyon, true);
            CreateTas(Squares[6, 7], TasTipi.Piyon, true);

            CreateTas(Squares[0, 0], TasTipi.Kale, false);
            CreateTas(Squares[0, 1], TasTipi.At, false);
            CreateTas(Squares[0, 2], TasTipi.Fil, false);
            CreateTas(Squares[0, 3], TasTipi.Sah, false);
            CreateTas(Squares[0, 4], TasTipi.Vezir, false);
            CreateTas(Squares[0, 5], TasTipi.Fil, false);
            CreateTas(Squares[0, 6], TasTipi.At, false);
            CreateTas(Squares[0, 7], TasTipi.Kale, false);
            CreateTas(Squares[1, 0], TasTipi.Piyon, false);
            CreateTas(Squares[1, 1], TasTipi.Piyon, false);
            CreateTas(Squares[1, 2], TasTipi.Piyon, false);
            CreateTas(Squares[1, 3], TasTipi.Piyon, false);
            CreateTas(Squares[1, 4], TasTipi.Piyon, false);
            CreateTas(Squares[1, 5], TasTipi.Piyon, false);
            CreateTas(Squares[1, 6], TasTipi.Piyon, false);
            CreateTas(Squares[1, 7], TasTipi.Piyon, false);
        }
Example #20
0
        public void StartRun()
        {
            WebExceptionStatus outS = WebExceptionStatus.UnknownError;

            foreach (var linkExtraction in this.configurationHotProduct.HotProduct_Link.Split(new char[] { ',', '\n', ';' }, StringSplitOptions.RemoveEmptyEntries))
            {
                this.LogData("Get html of cat page");
                string html = downloadHtml.GetHTML(linkExtraction, 45, 2, out outS, this.configurationHotProduct.HotProduct_UseSelenium);
                if (!string.IsNullOrEmpty(html))
                {
                    HtmlDocument htmlDocument = new HtmlDocument();
                    htmlDocument.LoadHtml(html);
                    var nodeLinks = htmlDocument.DocumentNode.SelectNodes(this.configurationHotProduct.HotProduct_Xpath);
                    if (nodeLinks != null)
                    {
                        foreach (var VARIABLE in nodeLinks)
                        {
                            try
                            {
                                string shortLink = VARIABLE.GetAttributeValue("href", "");

                                string fullLink = Common.GetAbsoluteUrl(shortLink, new Uri(this.company.Website));
                                this.LogData(string.Format("Process link product {0}", fullLink));
                                string htmlLinkProduct = this.downloadHtml.GetHTML(fullLink, 45, 2, out outS);

                                HtmlDocument h = new HtmlDocument();
                                h.LoadHtml(htmlLinkProduct);
                                if (!string.IsNullOrEmpty(htmlLinkProduct))
                                {
                                    ProductEntity productEntity = new ProductEntity();
                                    this.producerParser.Analytics(productEntity, h, fullLink, this.configuration, this.company.Domain);
                                    if (productEntity.IsSuccessData(true))
                                    {
                                        this.productAdapter.UpsertProductHot(productEntity);
                                        this.LogData(string.Format("Saved a product to database. {0} {1} {2}", productEntity.ID,
                                                                   productEntity.Name, productEntity.Price));
                                    }
                                }
                            }
                            catch (Exception ex)
                            {
                                LogData(string.Format("Error: {0} {1}", ex.Message, ex.StackTrace));
                            }
                        }
                    }
                }
            }
        }
Example #21
0
        public void Zoo_TimerTick(EventArgs e)
        {
            foreach (var VAR in arr.ToArray())
            {
                if (VAR.Inside == false && (bool)VAR.GetIn == false)
                {
                    VAR.Move((Program.rnd.Next(1, 4) - 2) * (Penguin.imagewx / 8),
                             (Program.rnd.Next(1, 4) - 2) * (Penguin.imagewy / 8));
                    foreach (var VARIABLE in arr.ToArray())
                    {
                        if ((VARIABLE / VAR) && VARIABLE.Inside == false)
                        {
                            if (VARIABLE is Killer == true && VAR.speed == 1)
                            {
                                arr.Remove(VAR);
                                VARIABLE.Kills[0]++;
                                VARIABLE.energy -= 2;
                                VARIABLE.weight -= 0.2;
                            }

                            if (VARIABLE.speed == 2)
                            {
                                VAR.Move(-100, -100);
                                VAR.energy -= 2;
                                VAR.weight -= 0.2;
                                VARIABLE.Move(100, 100);
                                VARIABLE.energy -= 2;
                                VARIABLE.weight -= 0.2;
                            }
                        }
                    }
                    foreach (var i in arra.ToArray())
                    {
                        if (i.CheckInside(VAR))
                        {
                            i.empty    = false;
                            VAR.Inside = true;
                            VAR.x      = i.ax + 25;
                            VAR.y      = i.ay + 25;
                            i.AddPenguin(VAR);
                            arr.Remove(VAR);
                            timer1.Enabled = true;
                            timer1.Start();
                        }
                    }
                }
            }
        }
Example #22
0
        public void Replace()
        {
            string s = "{List_Prodution}";

            foreach (var VARIABLE in GetType().GetProperties())
            {
                s = s.Replace(
                    ((DescriptionAttribute)GetType().GetProperty(VARIABLE.Name)
                     .GetCustomAttributes(typeof(DescriptionAttribute), true)[0]).Description,
                    VARIABLE.GetValue(this).ToString());
            }



            Debug.WriteLine(s);
        }
Example #23
0
        /// <summary>
        /// int[]转string
        /// </summary>
        /// <param name="IntArray"></param>
        /// <returns>如:1,2,3,4</returns>
        public static string IntArrayTostring(int[] IntArray)
        {
            StringBuilder stringBuilder = new StringBuilder();
            int           i             = 1;

            foreach (int VARIABLE in IntArray)
            {
                stringBuilder.Append(VARIABLE.ToString());
                if (i < IntArray.Length)
                {
                    stringBuilder.Append(",");
                }
                i++;
            }
            return(stringBuilder.ToString());
        }
Example #24
0
        static void GetClientsFromFile()
        {
            fileDate = File.ReadAllLines(@"D:\Clients.txt");

            foreach (var VARIABLE in fileDate)
            {
                clientsFromFile.Add(new Client <XiaomiRedmiNote4X>(
                                        decimal.Parse(VARIABLE.Split(',')[0]),
                                        VARIABLE.Split(',')[1],
                                        VARIABLE.Split(',')[2],
                                        DateTime.Parse(VARIABLE.Split(',')[3]),
                                        new Port(),
                                        new Phone <XiaomiRedmiNote4X>(),
                                        new Tariff1()));
            }
        }
Example #25
0
        public static void NextVehicleExpirationdateMonth(List <Vehicles> MyVehicles)
        {
            DateTime NextMonth = DateTime.Now;

            foreach (var VARIABLE in MyVehicles)
            {
                if (VARIABLE.RegistrationExpirationDate.Month == 1 && NextMonth.Month == 12)
                {
                    VARIABLE.PrintAll();
                }
                if (VARIABLE.RegistrationExpirationDate.Month - 1 == NextMonth.Month)
                {
                    VARIABLE.PrintAll();
                }
            }
        }
Example #26
0
    public void setActiveTextures(List <int> keys)
    {
        List <PictureData> Newtexture = new List <PictureData>();

        foreach (var VARIABLE in FetchedPictureData)
        {
            if (keys.Contains(VARIABLE.getID()))
            {
                Newtexture.Add(VARIABLE);
            }
        }

        textureDatas = Newtexture;

        createResultObjects(textureDatas.Count);
    }
Example #27
0
        //парсинг строки
        public void ParseDataString()
        {
            PointsS = new List <myPoint>();

            string[] ss = textBox1.Text.Split((char)13);


            foreach (string VARIABLE in ss)
            {
                string[] newSS = VARIABLE.Split(';');
                if (newSS.Length != 2)
                {
                    continue;
                }

                int p1 = 0;
                int p2 = 0;

                int.TryParse(newSS[0], out p1);
                int.TryParse(newSS[1], out p2);

                PointsS.Add(new myPoint(p1, p2));
            }


            PointsF = new List <myPoint>();

            string[] ss2 = textBox2.Text.Split((char)13);


            foreach (string VARIABLE in ss2)
            {
                string[] newSS = VARIABLE.Split(';');
                if (newSS.Length != 2)
                {
                    continue;
                }

                int p1 = 0;
                int p2 = 0;

                int.TryParse(newSS[0], out p1);
                int.TryParse(newSS[1], out p2);

                PointsF.Add(new myPoint(p1, p2));
            }
        }
Example #28
0
        public void PopulateTeams()
        {
            string[] teams = new string[]
            {
                "Scoala Gimnaziala Horea - Houston Rockets",
                "Scoala Gimnaziala Octavian Goga - Los Angeles Lakers",
                "Liceul Teoretic Lucian Blaga - LA Clippers",
                "Scoala Gimnaziala Ioan Bob - Chicago Bulls",
                "Scoala Gimnaziala Ion Creanga - Cleveland Cavaliers",
                "Colegiul National Pedagogic Gheorghe Lazar - Utah Jazz",
                "Scoala Gimnaziala Internationala SPECTRUM - Brooklyn Nets",
                "Colegiul National „Emil Racovita” - New Orleans Pelicans",
                "Colegiul National George Cosbuc - Indiana Pacers",
                "Scoala Gimnaziala Ion Agarbiceanu - Toronto Raptors",
                "Liceul Teoretic Avram Iancu - Charlotte Hornets",
                "Scoala Gimnaziala Constantin Brancusi - Phoenix Suns",
                "Liceul Teoretic Onisifor Ghibu - Portland TrailBlazers",
                "Liceul Teoretic Onisifor Ghibu - Golden State Warriors",
                "Liceul cu Program Sportiv Cluj-Napoca - Washington Wizards",
                "Liceul Teoretic Nicolae Balcescu - San Antonio Spurs",
                "Liceul Teoretic Gheorghe Sincai - Orlando Magic",
                "Scoala Nicolae Titulescu - Denver Nuggets",
                "Scoala Gimnaziala Liviu Rebreanu - Detroit Pistons",
                "Scoala Gimnaziala Iuliu Hatieganu - Atlanta Hawks",
                "Liceul Teoretic Bathory Istvan - Dallas Mavericks",
                "Colegiul National George Baritiu - Sacramento Kings",
                "Liceul Teoretic Apaczai Csere Janos - Oklahoma City Thunder",
                "Seminarul Teologic Ortodox - Boston Celtics",
                "Liceul de Informatica Tiberiu Popoviciu - New York Knicks",
                "Scoala Gimnaziala „Alexandru Vaida – Voevod - Minnesota Timberwolves",
                "Liceul Teoretic ELF - Miami Heat",
                "Scoala Gimnaziala Gheorghe Sincai Floresti - Milwaukee Bucks"
            };

            foreach (var VARIABLE in teams)
            {
                string[] names = VARIABLE.Split('-');
                School   sch   = new School();
                sch.Name = names[0].Trim();
                _schoolGateway.InsertOne(sch);
                Team aux = new Team();
                aux.Name     = names[1].Trim();
                sch          = _schoolGateway.FindOne(sch);
                aux.SchoolId = sch.Id;
                InsertOne(aux);
            }
        }
Example #29
0
 public void Zoo_TimeTick1(object sender, EventArgs e)
 {
     foreach (var VAR in arra.ToArray())
     {
         if (VAR.pen.Count != 0)
         {
             foreach (var VARIABLE in VAR.pen.ToArray())
             {
                 VARIABLE.GetOut();
                 arr.Add(VARIABLE);
                 VAR.pen.Remove(VARIABLE);
                 VAR.empty = true;
                 //timer1.Stop();
             }
         }
     }
 }
Example #30
0
        //TODO Dodaj provjeru podataka
        public static List <string> UcitajEmisijePrograma(string putanjaDatoteke)
        {
            var emisijePrograma = new List <string>();

            emisijePrograma = File.ReadAllLines(putanjaDatoteke).ToList();
            emisijePrograma = emisijePrograma.Skip(1).Distinct().ToList();
            foreach (var VARIABLE in emisijePrograma.ToList())
            {
                var count = VARIABLE.Split(';').Length - 1;
                if (count != 3)
                {
                    emisijePrograma.Remove(VARIABLE);
                }
            }

            return(emisijePrograma);
        }