Overload method call.

zhaozj2021-02-16  57

Very depressed, I can't write this (), no way, first come to make a contract, problem, let's go here, have time to solve.

Public Reminder (Message Message, Form Parent)

{

This.initmember (Message, Parent, True);

}

Public Reminder (Message Message, Form Parent, Bool AutoHide)

{

This.INITMEMBER (Message, Parent, AutoHide);

}

Private Void Initmember (Message Message, Form Parent, Bool AutoHide)

{

//

// Required for Windows Form Designer Support

//

InitializationComponent ();

//

// Todo: Add Any Constructionor Code After InitializationComponent Call

//

This.SMSHead.Text = Message.Userphone "/ N" Message.happenTime

THIS.SMSCONTENT.TEXT = Message.Content;

THIS.AUTOHIDE = AutoHide;

THIS.PARENTFORM = PARENT;

}

-------------------------------------------------- -------------------------

answer:

Public Reminder (Message Message, Form Parent): this (Message, Parent, true) {}

Public Reminder (Message Message, Form Parent, Bool AutoHide)

{

//

// Required for Windows Form Designer Support

//

InitializationComponent ();

//

// Todo: Add Any Constructionor Code After InitializationComponent Call

//

This.SMSHead.Text = Message.Userphone "/ N" Message.happenTime

THIS.SMSCONTENT.TEXT = Message.Content;

THIS.AUTOHIDE = AutoHide;

THIS.MAINWINDOW = PARENT;

}

转载请注明原文地址:https://www.9cbs.com/read-21347.html

New Post(0)