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; }
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(); } }
public void setViewModel(MinerRigInfo minerRigInfo) { this.ViewModel_ = minerRigInfo; this.mainGrid_.DataContext = this.ViewModel_; }
public BMinerRig(MinerRigInfo info) : base(info) { this.MinerType_ = MinerTypeEnum.BMiner; this.HashUnit_ = "Sols/s"; }