Наследование: Eto.Forms.DynamicLayout
Пример #1
0
        public SessionChooser()
        {
            this.Size = new Size(640, 480);

            _existingPage      = new TabPage();
            _existingPage.Text = Constants.ExistingSessionText;

            _picker = new SessionPicker();
            _picker.SessionChosen += _pickerSessionChosen;
            _existingPage.Content  = _picker;

            _newPage      = new TabPage();
            _newPage.Text = Constants.NewSessionText;

            _creator = new SessionCreator();
            _creator.SessionCreated += _creatorSessionCreated;
            _newPage.Content         = _creator;


            _tabs = new TabControl();
            _tabs.Pages.Add(_existingPage);
            _tabs.Pages.Add(_newPage);


            this.Content = _tabs;
            this.Title   = Constants.ChooseSessionTitle;
        }
Пример #2
0
        public SessionChooser()
        {
            this.Size = new Size(640, 480);

            _existingPage = new TabPage();
            _existingPage.Text = Constants.ExistingSessionText;

            _picker = new SessionPicker();
            _picker.SessionChosen += _pickerSessionChosen;
            _existingPage.Content = _picker;

            _newPage = new TabPage();
            _newPage.Text = Constants.NewSessionText;

            _creator = new SessionCreator();
            _creator.SessionCreated += _creatorSessionCreated;
            _newPage.Content = _creator;

            _tabs = new TabControl();
            _tabs.Pages.Add(_existingPage);
            _tabs.Pages.Add(_newPage);

            this.Content = _tabs;
            this.Title = Constants.ChooseSessionTitle;
        }