public static void Process(string fileName, bool allowEdit) { Form_CreatePolicy formCreatePolicy = new Form_CreatePolicy(); formCreatePolicy.InitializeDialog(fileName, allowEdit); formCreatePolicy.ShowDialog(); }
// policyId is 0 if creating a new policy public static void Process(int policyId, bool allowEdit) { Form_CreatePolicy formCreatePolicy = new Form_CreatePolicy(); formCreatePolicy.InitializeDialog(policyId, allowEdit); formCreatePolicy.ShowDialog(); }