public MainForm() { InitializeComponent(); Icon = Properties.Resources.Wamby_App_Icon; ViewModel = new ViewModels.MainFormViewModel(new FileSystemScanService()); setEventHandlers(); }
public MainRibbonForm() { //holi InitializeComponent(); LoadSkin(); tabControl.ShowTabHeader = DevExpress.Utils.DefaultBoolean.False; Text = Application.ProductName; var scanService = new FileSystemScanService() { UserName = System.Security.Principal.WindowsIdentity.GetCurrent().Name, ComputerName = Environment.MachineName, OSVersionName = Environment.OSVersion.ToString(), ScanDate = DateTime.Now, DetailType = API.Enums.ScanDetailTypeEnum.Fast }; var storageService = new FileSystemStorageService(); ViewModel = new ViewModels.MainFormViewModel(scanService, storageService); SetEventHandlers(); }