コード例 #1
0
ファイル: DialogForm.cs プロジェクト: kiple/gitter
        private DialogForm(DialogBase content)
            : this()
        {
            _dialog = content;
            if (content != null)
            {
                UpdateSize();
                ShowContent();

                content.SizeChanged += OnContentSizeChanged;

                _expandable = content as IExpandableDialog;
                if (_expandable != null)
                {
                    _expanded = true;
                    var exDialog = (IExpandableDialog)content;
                    CreateBitmaps(exDialog.ExpansionName);
                    _picAdvanced.Visible = true;
                    _expansionControl    = exDialog.ExpansionControl;
                }
                _elevated   = content as IElevatedExecutableDialog;
                _executable = content as IExecutableDialog;
            }
        }
コード例 #2
0
ファイル: DialogForm.cs プロジェクト: Kuzq/gitter
        private DialogForm(DialogBase content)
            : this()
        {
            _dialog = content;
            if(content != null)
            {
                UpdateSize();
                ShowContent();

                content.SizeChanged += OnContentSizeChanged;

                _expandable = content as IExpandableDialog;
                if(_expandable != null)
                {
                    _expanded = true;
                    var exDialog = (IExpandableDialog)content;
                    CreateBitmaps(exDialog.ExpansionName);
                    _picAdvanced.Visible = true;
                    _expansionControl = exDialog.ExpansionControl;
                }
                _elevated = content as IElevatedExecutableDialog;
                _executable = content as IExecutableDialog;
            }
        }