示例#1
0
        public ClaymoreMinerRig(MinerRigInfo info)
            : base(info)
        {
            this.SendData_  = Encoding.UTF8.GetBytes(info.RPCParameterText_);
            this.MinerType_ = MinerTypeEnum.Claymore;
            this.HashUnit_  = "MH/s";
            //this.SocketConnectEventArgs_ = new SocketAsyncEventArgs();
            //this.SocketConnectEventArgs_.RemoteEndPoint = LocalEndPoint_;

            //this.SocketConnectEventArgs_.Completed += SocketConnectEventArgs__Completed;

            //this.SocketReceiveEventArgs_ = new SocketAsyncEventArgs();
            //this.SocketReceiveEventArgs_.SetBuffer(this.RecByte_, 0, 2048);
            //this.SocketReceiveEventArgs_.Completed += SocketEventArgs__Completed;
        }
示例#2
0
        private void newMinerInfoBtn__Click(object sender, RoutedEventArgs e)
        {
            Window           w = new Window();
            MinerRigInfoView v = new MinerRigInfoView();
            MinerRigInfo     newMinerRigInfo = new MinerRigInfo();

            v.setViewModel(newMinerRigInfo);

            w.Content = v;

            if (w.ShowDialog() == true)
            {
                this.ViewModel_.MinerRigList_.Add(newMinerRigInfo.GetMinerRig());
                this.ViewModel_.MinerRig_save();
            }
        }
示例#3
0
 public void setViewModel(MinerRigInfo minerRigInfo)
 {
     this.ViewModel_            = minerRigInfo;
     this.mainGrid_.DataContext = this.ViewModel_;
 }
示例#4
0
 public BMinerRig(MinerRigInfo info)
     : base(info)
 {
     this.MinerType_ = MinerTypeEnum.BMiner;
     this.HashUnit_  = "Sols/s";
 }