private void LaunchViewWelcome() { if (_viewWelcome == null) { _viewWelcome = new ViewWelcome(this); } LaunchSheet(_viewWelcome, fullSize: true); }
private void Init() { if (!Directory.Exists(WORKING_DIRECTORY)) { Directory.CreateDirectory(WORKING_DIRECTORY); } _activities = new List <FinancialActivity>(); _entities = new List <Person>(); //if (!string.IsNullOrEmpty(_pathFile)) { OpenProject(); } _sheet = new PanelScrollableCustom(); _sheet.Name = "SheetFinance"; _sheet.BackColor = System.Drawing.Color.DimGray; _sheet.Dock = DockStyle.Fill; _sheet.BackgroundImage = Properties.Resources.ShieldTileBg; _sheet.BackgroundImageLayout = ImageLayout.Tile; _sheet.Resize += _sheet_Resize; _viewWelcome = new ViewWelcome(this); _viewWelcome.Top = TOP_OFFSET; _viewWelcome.Left = (_sheet.Width / 2) - (_viewWelcome.Width / 2); _viewWelcome.Name = "CurrentView"; _sheet.Controls.Add(_viewWelcome); //_panfin = new PanelFinance(this); //_panfin.BackgroundImage = _tsm.Gui.BackgroundImage; //_panfin.BackgroundImageLayout = _tsm.Gui.BackgroundImageLayout; //_panfin.Text = "Financial"; //_panfin.Width = 600; //_panfin.Height = 400; //_panfin.Top = TOP_OFFSET; //_panfin.Left = (_sheet.Width / 2) - (_viewWelcome.Width / 2); //_panfin.Name = "CurrentView"; //_sheet.Controls.Add(_panfin); }