MegaMan.LevelEditor.JoinTool.NewJoin C# (CSharp) Метод

NewJoin() приватный статический Метод

private static NewJoin ( ScreenDrawingSurface surface, string s1, string s2, JoinType type, int offset ) : void
surface ScreenDrawingSurface
s1 string
s2 string
type JoinType
offset int
Результат void
        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();
        }