override protected void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider) { string json = objectProvider.GetObject() as string; MDataTable dt = MDataTable.CreateFrom(JsonHelper.ToJson(json)); FormCreate.BindTable(windowService, dt, null); }
protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider) { MDataTable dt = objectProvider.GetObject() as DataTable; //MDataTable dt = objectProvider.GetObject() as MDataRowCollection; FormCreate.BindTable(windowService, dt, null); }
protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider) { MDataTable dt = objectProvider.GetObject() as DataTable; string title = string.Format("TableName : {0} Columns£º {1}", dt.TableName, dt.Columns.Count); FormCreate.BindTable(windowService, dt, title); }
protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider) { MDataRow row = objectProvider.GetObject() as MDataRow; if (row != null) { MDataTable dt = row.ToTable(); string title = string.Format("TableName : {0} Columns£º {1}", row.TableName, row.Columns.Count); FormCreate.BindTable(windowService, dt, title); } }
override protected void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider) { MDataTable dt = objectProvider.GetObject() as MDataTable; if (dt != null) { try { FormCreate.BindTable(windowService, dt, null); } catch (Exception err) { MessageBox.Show(err.Message); } } }
override protected void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider) { MDataTable dt = MDataTable.CreateFrom(objectProvider.GetObject() as string); FormCreate.BindTable(windowService, dt, null); }