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; } }
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; } }