Exemple #1
0
 public MainWindow(ServerConnection connection, TFlex.DOCs.Model.References.ReferenceObject currentTechnicalSolution, string nameServer = "TFLEX")
 {
     InitializeComponent();
     InitializeListBox();
     if (Presenter == null)
     {
         Presenter = new Presenter(connection, this, currentTechnicalSolution, nameServer);
     }
 }
Exemple #2
0
        // Выбор_пользователя dialogUserSelection { get; set; }
        public Presenter(ServerConnection connection, MainWindow mainWindow, TFlex.DOCs.Model.References.ReferenceObject currentTechnicalSolution, string nameServer = "TFLEX")
        {
            if (this.mainWindow == null)
            {
                this.mainWindow = mainWindow;
            }


            if (model == null)
            {
                this.model = new Model(connection, currentTechnicalSolution, nameServer);
            }

            this.mainWindow.FindEmployeeAtPostEvent   += mainWindow_FindEmployeeAtPostEvent;
            this.mainWindow.GetAllUserEvent           += mainWindow_GetAllUsersEvent;
            this.mainWindow.SelectProgramManagerEvent += mainWindow_SelectProgramManagerEvent;
            this.mainWindow.OKEvent             += mainWindow_OKEvent;
            this.mainWindow.ClearComboBoxEvent  += mainWindow_ClearComboBoxEvent;
            this.mainWindow.SelectEmployeeEvent += mainWindow_SelectEmployeeEvent;
        }