private void BtnConfirm_Click(object sender, RoutedEventArgs e)
 {
     RestaurantInfoManager.getInstance().setName(TextBoxName.Text, false);
     RestaurantInfoManager.getInstance().setPhone(TextBoxPhone.Text, false);
     RestaurantInfoManager.getInstance().setAddess(TextBoxAddress.Text);
     WindownsManager.getInstance().showMessageBoxConfirm("Đổi thông tin thành công", "Chúc mừng");
 }
 public ExportBillWindow(List <Order> orderList, Action afterConfirm)
 {
     InitializeComponent();
     _orderList          = orderList;
     _afterConfirm       = afterConfirm;
     TextBoxAddress.Text = RestaurantInfoManager.getInstance().Info.Path;
 }
        private void setupUI()
        {
            var info = RestaurantInfoManager.getInstance().Info;

            TextBoxName.Text    = info.Name;
            TextBoxPhone.Text   = info.Phone;
            TextBoxAddress.Text = info.Address;
        }
        private void BtnSelect_Click(object sender, RoutedEventArgs e)
        {
            var dialog = new FolderBrowserDialog();

            dialog.ShowDialog();
            var path = dialog.SelectedPath;

            TextBoxAddress.Text = path;
            bool exist = checkAndUpdateUI(path);

            if (exist)
            {
                RestaurantInfoManager.getInstance().setPath(path);
            }
        }