示例#1
0
        static void Main(string[] args)
        {
            //See another project in this solution for actual code
            Console.WriteLine("1Enter a path to directory");
            string path = Console.ReadLine();

            AnimateHelper.AnimateProgress(ZipHelpers.DecompressDirectoryContents(path));

            Console.WriteLine("\nReady");
            Console.ReadLine();
        }
            public TestForm()
            {
                var label = new Label {
                    Parent = this, AutoSize = true, Top = 8, Left = 8
                };

                animateHelper = new AnimateHelper(label);
                int left = 8;

                foreach (var action in (ButtonAction[])Enum.GetValues(typeof(ButtonAction)))
                {
                    var button = new Button {
                        Parent = this, AutoSize = true, Text = action.ToString(), Left = left
                    };
                    button.Top    = DisplayRectangle.Bottom - button.Height - 8;
                    button.Click += (sender, e) => Execute(action);
                    left         += button.Width + 8;
                }
            }