コード例 #1
0
 public LoadingViewModel(IAfterInitializationCaller initcaller)
 {
     AfterInitCaller  = initcaller;
     _minerDownloader = null;
     _isMinerDownload = false;
     WindowLoaded     = new DelegateCommand <object>((args) =>
     {
         OnShow();
     });
 }
コード例 #2
0
        // init loading stuff
        public Form_Loading(IAfterInitializationCaller initCaller, string loadFormTitle, string startInfoMsg, int totalLoadSteps)
        {
            InitializeComponent();

            label_LoadingText.Text     = loadFormTitle;
            label_LoadingText.Location = new Point((this.Size.Width - label_LoadingText.Size.Width) / 2, label_LoadingText.Location.Y);

            AfterInitCaller = initCaller;

            TotalLoadSteps            = totalLoadSteps;
            this.progressBar1.Maximum = TotalLoadSteps;
            this.progressBar1.Value   = 0;

            SetInfoMsg(startInfoMsg);
        }
コード例 #3
0
        public Form_Loading(IAfterInitializationCaller initCaller, string loadFormTitle, string startInfoMsg, int totalLoadSteps)
        {
            InitializeComponent();

            label_LoadingText.Text = loadFormTitle;
            label_LoadingText.Location = new Point((this.Size.Width - label_LoadingText.Size.Width) / 2, label_LoadingText.Location.Y);

            AfterInitCaller = initCaller;

            TotalLoadSteps = totalLoadSteps;
            this.progressBar1.Maximum = TotalLoadSteps;
            this.progressBar1.Value = 0;

            SetInfoMsg(startInfoMsg);
        }
コード例 #4
0
        // init loading stuff
        public Form_Loading(IAfterInitializationCaller initCaller, string loadFormTitle, string startInfoMsg,
                            int totalLoadSteps)
        {
            InitializeComponent();

            label_LoadingText.Text     = loadFormTitle;
            label_LoadingText.Location = new Point((Size.Width - label_LoadingText.Size.Width) / 2,
                                                   label_LoadingText.Location.Y);

            _afterInitCaller = initCaller;

            _totalLoadSteps      = totalLoadSteps;
            progressBar1.Maximum = _totalLoadSteps;
            progressBar1.Value   = 0;

            SetInfoMsg(startInfoMsg);
            FormHelpers.TranslateFormControls(this);
        }