private void btn_next_Click(object sender, EventArgs e) { this.Hide(); FormSql frm = new FormSql(); frm.ShowDialog(); }
public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value) { IWindowsFormsEditorService editorService = null; if (context != null && context.Instance != null && provider != null) { editorService = (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService)); if (editorService != null) { PMSChartCtrl control = null; if (context.Instance.GetType() == typeof(PMSChartCtrl)) { control = (PMSChartCtrl)context.Instance; } FormSql form1 = new FormSql(); form1.StartPosition = FormStartPosition.CenterParent; form1.SqlSource = control.SqlSource; if (DialogResult.OK == editorService.ShowDialog(form1)) { value = form1.SqlSource; } return(value); } } return(value); }