public LoadingViewModel(IAfterInitializationCaller initcaller) { AfterInitCaller = initcaller; _minerDownloader = null; _isMinerDownload = false; WindowLoaded = new DelegateCommand <object>((args) => { OnShow(); }); }
// 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); }
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); }
// 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); }