Exemple #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();
        }
Exemple #2
0
        public Form1(MaterialRef.MaterialServiceClient service, ModelMaterial model)
        {
            InitializeComponent();

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