Example #1
0
 private void NewFormOpen(object sender, EventArgs e)
 {
     var o = new DataObj();
     o.Model = this.DataViewProvider.ActivateEmptyModel();
     var newFormBlock = sender as FormCC;
     newFormBlock.DataContext = o;
 }
Example #2
0
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if (value != null)
            {
                if (value is DataObj)
                    return value;

                var o = new DataObj();
                o.Model = value;
                return o;
            }
                
            return null;
        }