private void InitGithub()
        {
            _githubAdapter          = new GitHubAdapter();
            _githubAdapter.RepoUser = "******";
            _githubAdapter.User     = Properties.Settings.Default.User;
            _githubAdapter.Password = Properties.Settings.Default.Password;
            _githubAdapter.LogUser();

            GitHubIssue gitHubIssue = new GitHubIssue(this);

            gitHubIssue.Repositories = new List <string>()
            {
                "Booking", "Financial", "People", "Infra"
            };
            _viewGithubIssue      = new PanelCustom(gitHubIssue);
            _viewGithubIssue.Name = "CurrentView";

            GitHubUserDetail githubUserDetail = new GitHubUserDetail(this);

            _viewGithubUserDetail      = new PanelCustom(githubUserDetail);
            _viewGithubUserDetail.Name = "CurrentView";

            GithubManage githubManage = new GithubManage(this);

            _viewGithubManage      = new PanelCustom(githubManage);
            _viewGithubManage.Name = "CurrentView";
        }
        private void Init()
        {
            _sheet                       = new PanelScrollableCustom();
            _sheet.Name                  = "SheetBooking";
            _sheet.BackColor             = System.Drawing.Color.DimGray;
            _sheet.Dock                  = DockStyle.Fill;
            _sheet.BackgroundImage       = Properties.Resources.ShieldTileBg;
            _sheet.BackgroundImageLayout = ImageLayout.Tile;
            _sheet.Resize               += _sheet_Resize;

            BuildToolBar();
            InitData();

            _viewCalendar        = new ViewCalendar(this);
            _viewCalendar.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right)));
            _viewCalendar.Name   = "CurrentView";

            _viewAreaSearch       = new PanelCustom(new ViewAreaSearch(this));
            _viewAreaSearch.Title = "Search area";
            _viewAreaSearch.Name  = "CurrentView";

            _viewAreaEdit       = new PanelCustom(new ViewAreaEdit(this));
            _viewAreaEdit.Title = "Edit area";
            _viewAreaEdit.Name  = "CurrentView";

            ViewBookSearch vbs = new ViewBookSearch(this);

            vbs.RequestBookDetail  += _viewBookSearch_RequestBookDetail;
            vbs.RequestBookEdition += _viewBookSearch_RequestBookEdition;
            _viewBookSearch         = new PanelCustom(vbs);
            _viewBookSearch.Title   = "Search booking";
            _viewBookSearch.Name    = "CurrentView";

            ViewBookEdit vbe = new ViewBookEdit(this);

            vbe.CreatePersonRequested += Vbe_CreatePersonRequested;
            vbe.OpenFinanceProject    += Vbe_OpenFinanceProject;
            _viewBookEdit              = new PanelCustom(vbe);
            _viewBookEdit.Title        = "Edit booking";
            _viewBookEdit.Name         = "CurrentView";

            _viewSetting       = new PanelCustom(new ViewSettings(this));
            _viewSetting.Title = "Settings";
            _viewSetting.Name  = "CurrentView";

            _viewCheckIn      = new ViewCheckIn(this);
            _viewCheckIn.Name = "CurrentView";

            _viewCheckOut      = new ViewCheckOut(this);
            _viewCheckOut.Name = "CurrentView";

            _viewPrice       = new PanelCustom(new ViewPrice(this));
            _viewPrice.Title = "Prices";
            _viewPrice.Name  = "CurrentView";

            _viewWelcome      = new ViewWelcome(this);
            _viewWelcome.Name = "CurrentView";

            LaunchViewWelcome();
        }
 private void LaunchSyncanyRepositories()
 {
     if (_viewSyncanyRepositories == null)
     {
         _viewSyncanyRepositories = new PanelCustom(new CloudRepositories(_infraSyncany, _workingDirectory));
     }
     LaunchSheet(_viewSyncanyRepositories);
 }
        private void InitSyncany()
        {
            _infraSyncany = new SyncanyAdapter();

            _viewSyncanyRepositories      = new PanelCustom(new CloudRepositories(_infraSyncany, _workingDirectory));
            _viewSyncanyRepositories.Name = "CurrentView";

            _viewSyncanyCreate      = new PanelCustom(new CloudCreate(_infraSyncany, _workingDirectory));
            _viewSyncanyCreate.Name = "CurrentView";

            _viewSyncanyManage      = new PanelCustom(new CloudManage(_infraSyncany, _workingDirectory));
            _viewSyncanyManage.Name = "CurrentView";
        }
        private void DisplayControl(PanelCustom pc)
        {
            _sheet.Controls.Clear();

            pc.Top = TOP_OFFSET;
            pc.RefreshData();
            pc.Left = (_sheet.Width / 2) - (pc.Width / 2);
            pc.ChangeLanguage();
            _sheet.Controls.Add(pc);
            if (SheetDisplayRequested != null)
            {
                SheetDisplayRequested();
            }
        }