Exemplo n.º 1
0
        private void materialToolStripMenuItem_Click(object sender, EventArgs e)
        {
            MaterialRef.MaterialServiceClient service = new MaterialRef.MaterialServiceClient();
            ModelMaterial model = new ModelMaterial(service);
            Form1         form1 = new Form1(service, model);

            form1.MdiParent = this;
            form1.Controls[2].Show();
            form1.Show();
        }
Exemplo n.º 2
0
        public ModelMaterial(MaterialRef.MaterialServiceClient service)
        {
            this.service = service;

            types              = new BindingList <CMaterial>();
            toSave             = new List <CMaterial>();
            toDelete           = new List <int>();
            converter          = new TestTypeApp.Client.Converter <MaterialRef.material, CMaterial>();
            types.ListChanged += types_ListChanged;
        }
Exemplo n.º 3
0
        public Form1(MaterialRef.MaterialServiceClient service, ModelMaterial model)
        {
            InitializeComponent();

            MaterialPresenter presenter = new MaterialPresenter(model, materialSetupControl1);
        }