Amoeba.Windows.ProgressWindow.ProgressWindow C# (CSharp) Метод

ProgressWindow() публичный Метод

public ProgressWindow ( bool closeIsEnabled ) : System
closeIsEnabled bool
Результат System
        public ProgressWindow(bool closeIsEnabled)
        {
            _closeIsEnabled = closeIsEnabled;

            InitializeComponent();

            {
                var icon = new BitmapImage();

                icon.BeginInit();
                icon.StreamSource = new FileStream(Path.Combine(_serviceManager.Paths["Icons"], "Amoeba.ico"), FileMode.Open, FileAccess.Read, FileShare.Read);
                icon.EndInit();
                if (icon.CanFreeze) icon.Freeze();

                this.Icon = icon;
            }

            _button.IsEnabled = _closeIsEnabled;
        }