Example #1
0
 public ctrlRelatedAreas(int pstateid, string pusercode)
 {
     loginuser = pusercode;
     stateid   = pstateid;
     rs        = new RelatedAreasSource(stateid, loginuser);
     InitializeComponent();
     this.DataContext = rs;
     this.Title       = this.Title + " - " + CommonVariables.WindowTitleInfo;
 }
 public ctrlAvailableAreas(int pstateid, string pusercode, string pproductid, string pcallfrom)
 {
     loginuser = pusercode;
     stateid   = pstateid;
     callfrom  = pcallfrom;
     currentselectedproductid = pproductid;
     rs = new RelatedAreasSource(stateid, loginuser);
     InitializeComponent();
     this.DataContext = rs;
     rs.LoadAvailableAreasForProduct(currentselectedproductid, txtAvailableAreaName.Text, callfrom);
     this.Title = this.Title + " - " + CommonVariables.WindowTitleInfo;
 }