private void CompanyAddEdit_Click(object sender, RoutedEventArgs e)
        {
            AddEditCompanyWindow addEditCompanyWindow = new AddEditCompanyWindow()
            {
                DataContext = DataContext
            };

            _viewModel.Company = new Company();
            //var Company = ((Control)sender).DataContext as Company;
            //if (Company == null)
            //    addEditCompanyWindow = new AddEditCompanyWindow() { };
            //else
            //    addEditCompanyWindow = new AddEditCompanyWindow() { Company = ((Control)sender).DataContext as Company };

            addEditCompanyWindow.OkClicked += () =>
            {
                ((CompanyListViewModel)DataContext).Companies.Add(addEditCompanyWindow.Company);
            };
            addEditCompanyWindow.Width    = 1024;
            addEditCompanyWindow.Height   = 768;
            addEditCompanyWindow.CanClose = true;
            addEditCompanyWindow.Owner    = Window.GetWindow(this);
            addEditCompanyWindow.Owner    = Window.GetWindow(this);
            addEditCompanyWindow.Show();
        }
        private void CompanyEdit_Click(object sender, RoutedEventArgs e)
        {
            AddEditCompanyWindow addEditCompanyWindow = new AddEditCompanyWindow()
            {
                DataContext = DataContext
            };

            _viewModel.LoadCompanies();
            _viewModel.Company = ((Control)sender).DataContext as Company;
            addEditCompanyWindow.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            addEditCompanyWindow.Width    = 768;
            addEditCompanyWindow.Height   = 500;
            addEditCompanyWindow.CanClose = true;
            addEditCompanyWindow.Owner    = Window.GetWindow(this);
            addEditCompanyWindow.Show();
        }