CanTheyMeet.LoadingScreen.SetProgress C# (CSharp) Method

SetProgress() public method

public SetProgress ( int act ) : void
act int
return void
        public void SetProgress(int act)
        {
            progressBar1.Value=act;
        }
        public void InitProgressBar(int max)

Usage Example

Exemplo n.º 1
0
        private void FillData(LoadingScreen l)
        {
            string line;
            int    i = 0;

            while ((line = data.ReadLine()) != null)
            {
                Person p = new Person();;
                p.Name  = line.Split('=')[1];
                p.Birth = new Date(data.ReadLine().Split('=')[1]);
                p.Death = new Date(data.ReadLine().Split('=')[1]);
                people.Add(p);
                i += 3;
                l.SetProgress(i);
            }
            l.Dispose();
        }
All Usage Examples Of CanTheyMeet.LoadingScreen::SetProgress