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

            editor.ShowDialog(this);

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

                btnSearch.PerformClick();
            }
        }