示例#1
0
 public WindowPlaces(WindowOpenMode mode, DBManager dBManager, DataGrid dataGridPlaces)
 {
     InitializeComponent();
     this.mode           = mode;
     this.dBManager      = dBManager;
     this.dataGridPlaces = dataGridPlaces;
     initWindow();
 }
示例#2
0
 public WindowShooters(WindowOpenMode mode, DBManager dBManager, DataGrid dataGridShooters, DataGrid dataGridClubs)
 {
     InitializeComponent();
     this.mode             = mode;
     this.dBManager        = dBManager;
     this.dataGridShooters = dataGridShooters;
     this.dataGridClubs    = dataGridClubs;
     initWindow();
 }
示例#3
0
 public WindowCompetitions(WindowOpenMode mode, DBManager dBManager, DataGrid dataGridPCompetitions, DataGrid dataGridRanges)
 {
     InitializeComponent();
     this.mode                  = mode;
     this.dBManager             = dBManager;
     this.dataGridPCompetitions = dataGridPCompetitions;
     this.dataGridRanges        = dataGridRanges;
     initWindow();
 }
 public TreeItemParams(string entityName, WindowOpenMode mode)
 {
     this.entityName = entityName;
     this.windowOpenMode = mode;
 }
 private ContactMainPage GetContactForm(WindowOpenMode mode, string entityName)
 {
     var datacontext = StudioRepository.GetContactDetails(entityName);
     ContactMainPage contactForm = new ContactMainPage(entityName);
     contactForm.DataContext = datacontext;
     return contactForm;
 }
 private CustomerMainPage GetCustomerForm(WindowOpenMode mode,string entityName)
 {
     var datacontext = StudioRepository.GetCustomerDetails(entityName);           
     CustomerMainPage customerForm = new CustomerMainPage(entityName);
     customerForm.DataContext = datacontext;
     return customerForm;
 }