public AddChangeClientViewModel(AddClientDelegate addClient) { client = new Client(); client.Birthday = DateTime.Now; addClientDelegate += addClient; isAdd = true; }
public MainForm() { InitializeComponent(); delUpdateLog = new UpdateLogDelegate(UpdateLog); delAddClient = new AddClientDelegate(AddClient); delRemoveClient = new RemoveClientDelegate(RemoveClient); lstClientInfo = new List<ClientInfo>(); lstTcpClient = new List<TcpClient>(); grdClientList.AutoGenerateColumns = false; }
private void Form1_Load(object sender, EventArgs e) { appendMsg = new AppendMsgDelegate(AppendMsg); clientAdded = new AddClientDelegate(ClientAdd); removeClient = new RemoveClientDelegate(ClientShutDown); }
public AddChangeClient(AddClientDelegate addClient) { InitializeComponent(); DataContext = new AddChangeClientViewModel(addClient); }