Exemple #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            var window   = new Larawag.EarlyBoundStaticDriver.Controls.SettingsForm();
            var connInfo = new TestConnectionInfo()
            {
                DatabaseInfo   = new TestDatabaseInfo(),
                CustomTypeInfo = new TestCustomTypeInfo(),
            };

            ((SettingsFormViewModel)(window.DataContext)).ConnectionInfo = connInfo;
            window.ShowDialog();
        }
Exemple #2
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            var window   = new Larawag.EarlyBoundStaticDriver.Controls.SettingsForm();
            var connInfo = new TestConnectionInfo()
            {
                DatabaseInfo = new TestDatabaseInfo()
                {
                    Server   = "crm server name",
                    Database = "test 1111",
                    UserName = "******"
                },
                CustomTypeInfo = new TestCustomTypeInfo()
                {
                    CustomAssemblyPath = "some path assembly",
                    CustomTypeName     = "context class selcted"
                }
            };

            ((SettingsFormViewModel)(window.DataContext)).ConnectionInfo = connInfo;
            window.ShowDialog();
        }