private void initLabels() { PersianDate pd = new PersianDate(DateTime.Today); date_Lbl.Content = pd.ToShortDateString(); newId = getNewId(); ID_Lbl.Content = Codes.ApartmanMaskooniForooshi + " - " + newId; }
private void initLabels() { PersianDate pd = new PersianDate(DateTime.Today); Lbl_Date.Content = pd.ToShortDateString(); newId = getNewId(); Lbl_ID.Content = Codes.MaghazeEstijari + " - " + newId; }
private void initLabels() { PersianDate pd = new PersianDate(DateTime.Today); date_Lbl.Content = pd.ToShortDateString(); newId = getNewId(); ID_Lbl.Content = Codes.HouseEstijari + " - " + newId; }
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(); }
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); }
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); }
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); } }
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); } }