Example #1
0
        private void timerUpdateData_Tick(object sender, EventArgs e)
        {
            Perfomance           = PsApiWrapper.GetPerformanceInfo();
            statusTextStrip.Text = string.Format(Resources.Home_timerUpdateData_Tick__0____1____2____3_,
                                                 Perfomance.PhysicalTotalMb, Perfomance.PhysicalAvailableMb,
                                                 Perfomance.PhysicalPercentFree, Perfomance.PhysicalOccupied); //избыточные данные

            P2P.SendMessage();
        }
Example #2
0
        public Home()
        {
            InitializeComponent();

            DlgSetting    = new Setting();
            Perfomance    = PsApiWrapper.GetPerformanceInfo();
            P2P           = new PeerToPeer(this);
            ListPeerEntry = new List <PeerEntry>();
            AllPeerData   = new ZedGraphControler();

            base.Text = DlgSetting.UserName;

            refreshMenu.Enabled = false;
        }