コード例 #1
0
        public static DialogResult CreateInsertDialog()
        {
            var form = new SupplierDetailsForm();
            form.isForUpdate = false;

            return form.ShowDialog();
        }
コード例 #2
0
        public static DialogResult CreateUpdateDialog(DataRow selectedRow)
        {
            var form = new SupplierDetailsForm();
            form.isForUpdate = true;
            form.GetInfo(selectedRow);

            return form.ShowDialog();
        }