Beispiel #1
0
        public Form1(TypeRef.TypeServiceClient service, ModelType model)
        {
            InitializeComponent();

            TypePresenter presenter = new TypePresenter(model, typeSetupControl1);

            //TestRestClient client = new TestRestClient();
            // MessageBox.Show(client.DbTest("some text"));
        }
Beispiel #2
0
 public ModelType(TypeRef.TypeServiceClient service)
 {
     this.service       = service;
     types              = new BindingList <CType>();
     toSave             = new List <CType>();
     toDelete           = new List <int>();
     converter          = new TestTypeApp.Client.Converter <TypeRef.type, CType>();
     types.ListChanged += types_ListChanged;
 }
Beispiel #3
0
        private void typesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TypeRef.TypeServiceClient service = new TypeRef.TypeServiceClient();
            ModelType model = new ModelType(service);
            Form1     form1 = new Form1(service, model);

            form1.MdiParent = this;
            form1.Controls[0].Show();
            form1.Show();
        }