public PriceControl(PricepoolDisplayer ppd)
 {
     this.ppd = ppd;
     InitializeComponent();
     if (ppd == null)
         selectBtn.Enabled = false;
 }
 private void buttonEdit_Click(object sender, EventArgs e)
 {
     PricepoolDisplayer ed = new PricepoolDisplayer();
     ed.Show();
     ed.Display(pricePool);
     PricePoolSelector.instance.Close();
 }
        public PriceSelector(PricepoolDisplayer ppd)
        {
            instance = this;
            this.ppd = ppd;
            InitializeComponent();

            es.GetPricesCompleted += es_GetPricesCompleted;
            es.DeletePriceCompleted += es_DeletePriceCompleted;
            es.GetPricesAsync();
        }
 private void createPricepoolBtn_Click(object sender, EventArgs e)
 {
     PricepoolDisplayer ppd = new PricepoolDisplayer();
     ppd.Show();
 }