Пример #1
0
 public AddChangeClientViewModel(AddClientDelegate addClient)
 {
     client             = new Client();
     client.Birthday    = DateTime.Now;
     addClientDelegate += addClient;
     isAdd              = true;
 }
Пример #2
0
        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;
        }
Пример #3
0
 private void Form1_Load(object sender, EventArgs e)
 {
     appendMsg    = new AppendMsgDelegate(AppendMsg);
     clientAdded  = new AddClientDelegate(ClientAdd);
     removeClient = new RemoveClientDelegate(ClientShutDown);
 }
Пример #4
0
 public AddChangeClient(AddClientDelegate addClient)
 {
     InitializeComponent();
     DataContext = new AddChangeClientViewModel(addClient);
 }