コード例 #1
0
        private void btnNewSupplier_Click(object sender, EventArgs e)
        {
            SupplierEditorForm editor = Bootstrapper.Resolve <SupplierEditorForm>();

            editor.ShowDialog(this);

            btnSearch.PerformClick();
        }
コード例 #2
0
        private void cmsEditData_Click(object sender, EventArgs e)
        {
            if (_selectedSupplier != null)
            {
                SupplierEditorForm editor = Bootstrapper.Resolve <SupplierEditorForm>();
                editor.SelectedSupplier = _selectedSupplier;
                editor.ShowDialog(this);

                btnSearch.PerformClick();
            }
        }