Пример #1
0
        public ConnectionsDialog(ConnectionsConfigurationModel model)
        {
            Title        = TextResources.MainDialog_Title;
            Modal        = true;
            AllowGrow    = false;
            AllowShrink  = false;
            Parent       = IdeApp.Workbench.RootWindow;
            TransientFor = IdeApp.Workbench.RootWindow;
            ParentWindow = IdeApp.Workbench.RootWindow.GdkWindow;

            SetPosition(WindowPosition.CenterOnParent);
            SetupWidgets();
            ShowAll();

            _connectionsPresenter = new ConnectionsPresenter(this, model);
        }
 public ConnectionsDialog(ConnectionsConfigurationModel model)
 {
     InitializeComponent();
     Owner      = Application.Current.MainWindow;
     _presenter = new ConnectionsPresenter(this, model);
 }