private static void EditJoin(ScreenDrawingSurface surface, Join join) { JoinForm form = new JoinForm(join, surface.Screen.Stage.Screens); form.OK += () => surface.Screen.Stage.RaiseJoinChange(join); form.Show(); }
private static void NewJoin(ScreenDrawingSurface surface, string s1, string s2, JoinType type, int offset) { Join newjoin = new Join { screenTwo = s2, screenOne = s1, type = type, Size = 1 }; newjoin.offsetOne = newjoin.offsetTwo = offset; JoinForm form = new JoinForm(newjoin, surface.Screen.Stage.Screens); form.OK += () => surface.Screen.Stage.AddJoin(newjoin); form.Show(); }
private static void NewJoin(ScreenDrawingSurface surface, string s1, string s2, JoinType type, int offset) { Join newjoin = new Join {screenTwo = s2, screenOne = s1, type = type, Size = 1}; newjoin.offsetOne = newjoin.offsetTwo = offset; JoinForm form = new JoinForm(newjoin, surface.Screen.Stage.Screens); form.OK += () => surface.Screen.Stage.AddJoin(newjoin); form.Show(); }