internal static void close(IValve valve) { if (valve == null) { return; } if (!dictionary.ContainsKey(valve)) { return; } FormValveInfo formValveInfo = dictionary[valve]; formValveInfo.Close(); }
internal static FormValveInfo show(IValve valve) { FormValveInfo formValveInfo; if (dictionary.ContainsKey(valve)) { formValveInfo = dictionary[valve]; formValveInfo.BringToFront(); } else { formValveInfo = new FormValveInfo(valve); formValveInfo.Show(); dictionary.Add(valve, formValveInfo); } return(formValveInfo); }