Beispiel #1
0
        private void lvl1_grams(object sender, EventArgs e)
        {
            Button lb = (Button)sender; binding2.Dispose();

            panel1.Hide(); panel2.Visible = false;
            int a = int.Parse(lb.Tag.ToString().Split(',')[0]), b = int.Parse(lb.Tag.ToString().Split(',')[1]);

            binding2 = new binding(lb.Tag.ToString().Split(',')[5], int.Parse(lb.Tag.ToString().Split(',')[3]), int.Parse(lb.Tag.ToString().Split(',')[2]), panconv, ComMethodes.Generate(a, b)); userconv = binding2;
            //binding2.rand = ComMethodes.Generate(a, b); binding2.dest = int.Parse(lb.Tag.ToString().Split(',')[3]);
            //binding2.depart = int.Parse(lb.Tag.ToString().Split(',')[2]); binding2.lecon = lb.Tag.ToString().Split(',')[5]; binding2.Location = new Point(200, 150);binding2.panl = panconv;
            binding2.Location = new Point(200, 150); this.Controls.Add(binding2);
            userconv.Visible  = true;
        }
    public override Channel CreateChannel(binding, endpoint)
    {
        var channelFactory = new ChannelFactory <WebServiceWRG>(binding, endpoint);

        return(channelFactory.CreateChannel());
    }
Beispiel #3
0
 public BindingViewModel(binding binding)
 {
     _binding = binding;
 }