private void btnTableButtonSwap_Click(object sender, RoutedEventArgs e)
        {
            //if(App.Current.Properties["CurrentEmpWorking"] == null)
            //{
            //    MessageBox.Show("You must be start working for this action!");
            //    return;
            //}

            SwapOrMergeTable smt = new SwapOrMergeTable(_unitofwork, currentTableList, 1);

            smt.ShowDialog();

            //foreach(var rec in currentTableList)
            //{
            //    Image img = new Image { Source = new BitmapImage(new Uri(BaseUriHelper.GetBaseUri(this), "..\\Icon\\icons8_Meal_32px.png")) };
            //    img.Width = 32;
            //    img.Height = 32;
            //    Thickness m;
            //    m = img.Margin;
            //    m.Left = rec.TableRec.Margin.Left;
            //    m.Top = rec.TableRec.Margin.Top;
            //    img.Margin = m;
            //    grTable.Children.Add(img);
            //    MessageBox.Show(rec.PosX + ":" + rec.PosY);
            //    MessageBox.Show(img.Margin.Left + ":" + img.Margin.Top);
            //}

            //currentRec.Fill = new ImageBrush { ImageSource = new BitmapImage(new Uri(BaseUriHelper.GetBaseUri(this), "..\\Icon\\icons8_Meal_32px.png")) };
        }
        private void btnTableButtonMerge_Click(object sender, RoutedEventArgs e)
        {
            SwapOrMergeTable smt = new SwapOrMergeTable(_unitofwork, currentTableList, 2);

            smt.ShowDialog();

            isTablesDataChange = true;
            var en  = (Entry)((MainWindow)Window.GetWindow(this)).en;
            var tab = (Table)((MainWindow)Window.GetWindow(this)).b;

            ((MainWindow)Window.GetWindow(this)).myFrame.Navigate(en);
            ((MainWindow)Window.GetWindow(this)).myFrame.Navigate(tab);
        }