private void BtnModifyBuyingMedicine_Click(object sender, RoutedEventArgs e)
        {
            LblTitle.Text = "Modify Medicine";

            Overlay1.Visibility       = Visibility.Visible;
            Overlay2.Visibility       = Visibility.Visible;
            PanelAddModify.Visibility = Visibility.Visible;

            BtnAddThisBuying.Visibility     = Visibility.Collapsed;
            BtnModifyThisBuying.Visibility  = Visibility.Visible;
            BtnAddThisSelling.Visibility    = Visibility.Collapsed;
            BtnModifyThisSelling.Visibility = Visibility.Collapsed;

            BtnAddBuyingCancel.Visibility  = Visibility.Visible;
            BtnAddSellingCancel.Visibility = Visibility.Collapsed;

            Medicine selectedMed = (Medicine)BuyingListView.SelectedItem;

            TxtName.Text  = selectedMed.name;
            TxtPrice.Text = selectedMed.price + "";
        }
        private void BtnModify_Click(object sender, RoutedEventArgs e)
        {
            LblTitle.Text = "Modify Stock";

            PanelDetails.Visibility     = Visibility.Collapsed;
            PanelAddModify.Visibility   = Visibility.Visible;
            BtnCancel.Visibility        = Visibility.Collapsed;
            NoSelectionPanel.Visibility = Visibility.Collapsed;

            BtnAdd.Visibility            = Visibility.Collapsed;
            BtnModifyMedicine.Visibility = Visibility.Visible;

            Medicine medicine = (Medicine)ListViewStock.SelectedItem;

            TxtName.Text  = medicine.name;
            TxtPrice.Text = medicine.price + "";
            TxtQty.Text   = medicine.quantity + "";

            ListViewStock.IsEnabled  = false;
            BtnAddMedicine.IsEnabled = false;
            TxtSearch.IsEnabled      = false;
        }