예제 #1
0
        public MainWindow()
        {
            InitializeComponent();

            mainPresenter = new MainPresenter(this);
            this.Loaded  += delegate { mainPresenter.Load(); };

            lvCompany.SelectionChanged  += delegate { mainPresenter.SelectCompany(); };
            lvEmployee.SelectionChanged += delegate { mainPresenter.SelectEmployee(); };

            btnAllEmployee.Click += delegate { mainPresenter.SelectAll(); };

            btnAddCompany.Click      += delegate { mainPresenter.AddCompany(); };
            btnSettingsCompany.Click += delegate { mainPresenter.SettingsCompany(); };
            btnRemoveCompany.Click   += delegate { mainPresenter.RemoveCompany(); };

            btnAddEmployee.Click      += delegate { mainPresenter.AddEmployee(); };
            btnSettingsEmployee.Click += delegate { mainPresenter.SettingsEmployee(); };
            btnRemoveEmployee.Click   += delegate { mainPresenter.RemoveEmployee(); };
        }