Example #1
0
 private void editButton_Click(object sender, EventArgs e)
 {
     BSHandler.Handle(this, localityBindingSource, () =>
     {
         localityGroupBox.Enabled = true;
     });
 }
Example #2
0
 private void editButton_Click(object sender, EventArgs e)
 {
     BSHandler.Handle(this, shopViewBindingSource, () =>
     {
         shopInfoGroupBox.Enabled = true;
     });
 }
Example #3
0
 private void editButton_Click(object sender, EventArgs e)
 {
     BSHandler.Handle(this, car_typeBindingSource, () =>
     {
         carTypeGroupBox.Enabled = true;
     });
 }
Example #4
0
 private void editButton_Click(object sender, EventArgs e)
 {
     BSHandler.Handle(this, markBindingSource, () =>
     {
         markGroupBox.Enabled = false;
     });
 }
Example #5
0
 private void deleteButton_Click(object sender, EventArgs e)
 {
     BSHandler.Handle(this, shopViewBindingSource, () =>
     {
         shopViewBindingSource.RemoveCurrent();
         shopViewTableAdapter.Update(milkWorkDataSet.ShopView);
     });
 }
Example #6
0
 private void removeButton_Click(object sender, EventArgs e)
 {
     BSHandler.Handle(this, car_typeBindingSource, () =>
     {
         car_typeBindingSource.RemoveCurrent();
         car_typeTableAdapter.Update(milkWorkDataSet.Car_type);
     });
 }
Example #7
0
 private void removeButton_Click(object sender, EventArgs e)
 {
     BSHandler.Handle(this, unitBindingSource, () =>
     {
         unitBindingSource.RemoveCurrent();
         unitTableAdapter.Update(milkWorkDataSet.Unit);
     });
 }
Example #8
0
 private void removeButton_Click(object sender, EventArgs e)
 {
     BSHandler.Handle(this, regionBindingSource, () =>
     {
         regionBindingSource.RemoveCurrent();
         regionTableAdapter.Update(milkWorkDataSet.Region);
     });
 }
Example #9
0
 private void removeButton_Click(object sender, EventArgs e)
 {
     BSHandler.Handle(this, modelBindingSource, () =>
     {
         modelBindingSource.RemoveCurrent();
         modelTableAdapter.Update(milkWorkDataSet.Model);
     });
 }
Example #10
0
 private void removeButton_Click(object sender, EventArgs e)
 {
     BSHandler.Handle(this, localityBindingSource, () =>
     {
         localityBindingSource.RemoveCurrent();
         localityTableAdapter.Update(milkWorkDataSet.Locality);
         localityTableAdapter.Fill(milkWorkDataSet.Locality);
     });
 }
Example #11
0
 private void removeButton_Click(object sender, EventArgs e)
 {
     BSHandler.Handle(this, streetBindingSource, () =>
     {
         streetBindingSource.RemoveCurrent();
         streetTableAdapter.Update(milkWorkDataSet.Street);
         streetTableAdapter.Fill(milkWorkDataSet.Street);
     });
 }
Example #12
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Page.IsPostBack)
        {
            return;
        }

        SetTitle(commonCulture.ElementValues.getResourceXPathString("/Products/ClubDivino/Label", commonVariables.ProductsXML));

        var opSettings = new OperatorSettings(System.Configuration.ConfigurationManager.AppSettings.Get("Operator"));
        var addGpi     = Convert.ToBoolean(opSettings.Values.Get("GPIAddOtheClubs"));
        var sbGames    = new StringBuilder();

        var bsHandler  = new BSHandler(commonVariables.CurrentMemberSessionId, "ClubDivino", "FundTransfer", GetDevice());
        var bsCategory = bsHandler.Process();

        var cxHandler  = new CTXMHandler(commonVariables.CurrentMemberSessionId);
        var cxCategory = cxHandler.Process();

        var uc8Handler  = new UC8Handler(commonVariables.CurrentMemberSessionId, "ClubDivino", "FundTransfer");
        var uc8Category = uc8Handler.Process();

        IEnumerable <IGrouping <string, GameCategoryInfo> > games;

        if (addGpi)
        {
            var gpiHandler  = new GPIHandler(commonVariables.CurrentMemberSessionId);
            var gpiCategory = gpiHandler.Process(true);
            cxCategory[0].Current = gpiHandler.InsertInjectedGames(gpiCategory, cxCategory[0].Current);

            games = bsCategory.Union(cxCategory).Union(uc8Category).Union(gpiCategory).GroupBy(x => x.Title);
        }
        else
        {
            games = bsCategory.Union(cxCategory).Union(uc8Category).GroupBy(x => x.Title);
        }

        foreach (var group in games)
        {
            AddGamesPerDevice(sbGames, group);
        }

        divContainer.InnerHtml = Convert.ToString(sbGames);
    }
Example #13
0
 private void editButton_Click(object sender, EventArgs e)
 {
     BSHandler.Handle(this, areaBindingSource, () => areaGroupBox.Enabled = true);
 }