private void initLabels()
 {
     PersianDate pd = new PersianDate(DateTime.Today);
     date_Lbl.Content = pd.ToShortDateString();
     newId = getNewId();
     ID_Lbl.Content = Codes.ApartmanMaskooniForooshi + " -  " + newId;
 }
Esempio n. 2
0
 private void initLabels()
 {
     PersianDate pd = new PersianDate(DateTime.Today);
     Lbl_Date.Content = pd.ToShortDateString();
     newId = getNewId();
     Lbl_ID.Content = Codes.MaghazeEstijari + " -  " + newId;
 }
Esempio n. 3
0
 private void initLabels()
 {
     PersianDate pd = new PersianDate(DateTime.Today);
     date_Lbl.Content = pd.ToShortDateString();
     newId = getNewId();
     ID_Lbl.Content = Codes.HouseEstijari + " -  " + newId;
 }
Esempio n. 4
0
        private void initLabels()
        {
            PersianDate pd = new PersianDate(DateTime.Today);

            Lbl_Date.Content = pd.ToShortDateString();
            newId            = getNewId();
            Lbl_ID.Content   = Codes.HouseForooshi + " -  " + newId;
        }
        private void initLabels()
        {
            PersianDate pd = new PersianDate(DateTime.Today);

            date_Lbl.Content = pd.ToShortDateString();
            newId            = getNewId();
            ID_Lbl.Content   = Codes.ApartmanEdariForooshi + " -  " + newId;
        }
        private void initLabels()
        {
            PersianDate pd = new PersianDate(DateTime.Today);

            date_Lbl.Content = pd.ToShortDateString();
            newId            = getNewId();
            ID_Lbl.Content   = Codes.ApartmanMaskooniEstijari + " -  " + getNewId();
        }
Esempio n. 7
0
        private void initLabels()
        {
            PersianDate pd = new PersianDate(DateTime.Today);

            date_Lbl.Content = pd.ToShortDateString();
            newId            = getNewId();
            ID_Lbl.Content   = Codes.HouseEstijari + " -  " + newId;
        }
        public BaghVillaF()
        {
            InitializeComponent();
            PersianDate pd = new PersianDate(DateTime.Today);
            date_Lbl.Content = pd.ToShortDateString();

            address_Txt.Focus();

            price = new DispatcherTimer();
            price.Tick += new EventHandler(price_Tick);
            price.Interval = TimeSpan.FromSeconds(1);
            price.Start();

            WndConfig.setConfig4SimpleSearch(this);
        }
Esempio n. 9
0
        public MaghazeS()
        {
            InitializeComponent();
            PersianDate pd = new PersianDate(DateTime.Today);

            date_Lbl.Content = pd.ToShortDateString();

            address_Txt.Focus();

            price          = new DispatcherTimer();
            price.Tick    += new EventHandler(price_Tick);
            price.Interval = TimeSpan.FromSeconds(1);
            price.Start();

            WndConfig.setConfig4SimpleSearch(this);
        }
Esempio n. 10
0
        private void button1_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                PersianDate pd    = new PersianDate(DateTime.Today);
                String      today = pd.ToShortDateString();
                String      sql   = "EXEC AddUser N'" + User_Txt.Text + "',N'" + Pass_Txt.Password + "',N'" + today + "'," +
                                    Insert_CheckBox.IsChecked + "," + Search_CheckBox.IsChecked + "," + Delete_CheckBox.IsChecked + "," + Edit_CheckBox.IsChecked;

                DB.execSql(sql, 0);
                MessageBox.Show("کاربر جدید با موفقیت ثبت گردید", "ثبت کاربر", MessageBoxButton.OK, MessageBoxImage.Information);
            }
            catch (Exception)
            {
                MessageBox.Show("خطا در اتصال و یا اجرای درخواست از پایگاه داده ها", "خطا", MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }
Esempio n. 11
0
        private void button1_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                PersianDate pd = new PersianDate(DateTime.Today);
                String today = pd.ToShortDateString();
                String sql = "EXEC AddUser N'" + User_Txt.Text + "',N'" + Pass_Txt.Password + "',N'" + today + "'," +
                    Insert_CheckBox.IsChecked + "," + Search_CheckBox.IsChecked + "," + Delete_CheckBox.IsChecked + "," + Edit_CheckBox.IsChecked;

                DB.execSql(sql,0);
                MessageBox.Show("کاربر جدید با موفقیت ثبت گردید", "ثبت کاربر", MessageBoxButton.OK, MessageBoxImage.Information);
            }
            catch (Exception)
            {
                MessageBox.Show("خطا در اتصال و یا اجرای درخواست از پایگاه داده ها", "خطا", MessageBoxButton.OK, MessageBoxImage.Error);
            }

        }