private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            MemberCharge m = new MemberCharge();

            aa.Focus();
            ID.Text = m.txt_username.Text;
        }
Beispiel #2
0
        private void Show_ChargePage(object sender, RoutedEventArgs e)
        {
            object item = DataGrid_User.SelectedItem;

            PublicVar.GUserName   = (DataGrid_User.SelectedCells[1].Column.GetCellContent(item) as TextBlock).Text;
            PublicVar.GUserFamily = (DataGrid_User.SelectedCells[2].Column.GetCellContent(item) as TextBlock).Text;
            PublicVar.GUserID     = Convert.ToInt32((DataGrid_User.SelectedCells[0].Column.GetCellContent(item) as TextBlock).Text);

            profile_user w_charge  = new profile_user();
            MemberCharge memcharge = new MemberCharge();
            ErrorPage    pageerror = new ErrorPage();

            if (DataGrid_User.SelectedItem != null)
            {
                w_charge.memberfamily = (DataGrid_User.SelectedCells[2].Column.GetCellContent(item) as TextBlock).Text;
                w_charge.memberid     = Convert.ToInt32((DataGrid_User.SelectedCells[0].Column.GetCellContent(item) as TextBlock).Text);
                w_charge.membername   = (DataGrid_User.SelectedCells[1].Column.GetCellContent(item) as TextBlock).Text;
                this.Opacity          = 0.2;
                w_charge.Show();
            }
            else
            {
                pageerror.Show();
            }
        }
        private void aaa_Click(object sender, RoutedEventArgs e)
        {
            SucFul       s = new SucFul();
            ErrorPage    E = new ErrorPage();
            MemberCharge m = new MemberCharge();

            try
            {
                ControlID.TextData = a.Text;
            }
            catch
            {
                E.Error_Lable.Content = "در ثبت بدهی مشتری مشکلی به وجود آمده است";
            }
            finally
            {
                this.Hide();
            }
        }
Beispiel #4
0
        private void Show_ReChargePage(object sender, RoutedEventArgs e)
        {
            object itemOne = DataGrid_User.SelectedItem;

            MemberCharge ChargePage = new MemberCharge();
            ErrorPage    pageerror  = new ErrorPage();

            if (DataGrid_User.SelectedItem != null)
            {
                ChargePage.MemberName   = (DataGrid_User.SelectedCells[1].Column.GetCellContent(itemOne) as TextBlock).Text;
                ChargePage.MemberFamily = (DataGrid_User.SelectedCells[2].Column.GetCellContent(itemOne) as TextBlock).Text;
                ChargePage.memberid     = ((DataGrid_User.SelectedCells[0].Column.GetCellContent(itemOne) as TextBlock).Text);
                ChargePage.Show();
                this.Opacity = 0.2;
            }
            else
            {
                pageerror.Show();
            }
        }