예제 #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"));
        }
예제 #2
0
파일: ModelType.cs 프로젝트: alls77/TypeApp
 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;
 }
예제 #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();
        }