diff --git a/SimpleWallet.v12.suo b/SimpleWallet.v12.suo index 415f579..bbd7726 100644 Binary files a/SimpleWallet.v12.suo and b/SimpleWallet.v12.suo differ diff --git a/SimpleWallet/Properties/Resources.Designer.cs b/SimpleWallet/Properties/Resources.Designer.cs index 6dea4cb..faa5950 100644 --- a/SimpleWallet/Properties/Resources.Designer.cs +++ b/SimpleWallet/Properties/Resources.Designer.cs @@ -163,6 +163,7 @@ internal static System.Drawing.Bitmap receive { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// +<<<<<<< HEAD internal static System.Drawing.Bitmap search { get { object obj = ResourceManager.GetObject("search", resourceCulture); @@ -203,6 +204,8 @@ internal static System.Drawing.Bitmap search1 { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// +======= +>>>>>>> add source internal static System.Drawing.Bitmap send { get { object obj = ResourceManager.GetObject("send", resourceCulture); @@ -213,6 +216,7 @@ internal static System.Drawing.Bitmap send { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// +<<<<<<< HEAD internal static System.Drawing.Bitmap shield { get { object obj = ResourceManager.GetObject("shield", resourceCulture); @@ -233,6 +237,8 @@ internal static System.Drawing.Bitmap shield1 { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// +======= +>>>>>>> add source internal static System.Drawing.Bitmap snowgem_wallet { get { object obj = ResourceManager.GetObject("snowgem wallet", resourceCulture); diff --git a/SimpleWallet/Properties/Resources.resx b/SimpleWallet/Properties/Resources.resx index d531ca5..5ed8bd2 100644 --- a/SimpleWallet/Properties/Resources.resx +++ b/SimpleWallet/Properties/Resources.resx @@ -118,15 +118,30 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 +<<<<<<< HEAD ..\Images\connect1_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Images\connect3_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a +======= + + ..\Images\connect4_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Images\connect1_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\splash.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Images\logo_500.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a +>>>>>>> add source ..\Images\connect2_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a +<<<<<<< HEAD ..\Images\logo_500.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -138,10 +153,24 @@ ..\Images\shield.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a +======= + + ..\Images\notsynced.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Images\in.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Images\snowgem wallet.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Images\connect3_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a +>>>>>>> add source ..\Images\out.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a +<<<<<<< HEAD ..\Images\in.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -150,10 +179,15 @@ ..\Images\search.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a +======= + + ..\Images\connect0_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a +>>>>>>> add source ..\Images\synced.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a +<<<<<<< HEAD ..\Resources\splash.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -165,10 +199,15 @@ ..\Images\search.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a +======= + + ..\Images\receive.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a +>>>>>>> add source ..\Images\send.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a +<<<<<<< HEAD ..\Images\search_light.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -178,4 +217,6 @@ ..\Images\shield.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a +======= +>>>>>>> add source \ No newline at end of file diff --git a/SimpleWallet/SnowGemSimpleWallet.csproj b/SimpleWallet/SnowGemSimpleWallet.csproj index d70ff3d..428de7f 100644 --- a/SimpleWallet/SnowGemSimpleWallet.csproj +++ b/SimpleWallet/SnowGemSimpleWallet.csproj @@ -50,12 +50,17 @@ logo.ico - - ..\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll + + ..\packages\Newtonsoft.Json.11.0.1\lib\net45\Newtonsoft.Json.dll + True + + + ..\packages\QRCoder.1.3.2\lib\net40\QRCoder.dll True + @@ -66,6 +71,12 @@ + + Form + + + AddressBook.cs + Component @@ -119,6 +130,12 @@ True Resources.resx + + Form + + + QrCode.cs + Form @@ -143,7 +160,16 @@ Start.cs + + Form + + + TransactionDetail.cs + + + AddressBook.cs + ConfigureMasternode.cs @@ -170,6 +196,9 @@ Designer Resources.Designer.cs + + QrCode.cs + SendingCoin.cs @@ -182,6 +211,9 @@ Start.cs + + TransactionDetail.cs + @@ -205,6 +237,8 @@ + + diff --git a/SimpleWallet/SplashScreen.Designer.cs b/SimpleWallet/SplashScreen.Designer.cs index ddbc858..f659398 100644 --- a/SimpleWallet/SplashScreen.Designer.cs +++ b/SimpleWallet/SplashScreen.Designer.cs @@ -53,10 +53,10 @@ private void InitializeComponent() // this.lbCurrentStatus.BackColor = System.Drawing.Color.Transparent; this.lbCurrentStatus.ForeColor = System.Drawing.Color.Lime; - this.lbCurrentStatus.Location = new System.Drawing.Point(242, 328); + this.lbCurrentStatus.Location = new System.Drawing.Point(0, 328); this.lbCurrentStatus.Name = "lbCurrentStatus"; this.lbCurrentStatus.Opacity = 0; - this.lbCurrentStatus.Size = new System.Drawing.Size(185, 19); + this.lbCurrentStatus.Size = new System.Drawing.Size(668, 19); this.lbCurrentStatus.TabIndex = 4; this.lbCurrentStatus.Text = "Status"; this.lbCurrentStatus.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; diff --git a/SimpleWallet/Start.Designer.cs b/SimpleWallet/Start.Designer.cs index 9d77327..a01b28e 100644 --- a/SimpleWallet/Start.Designer.cs +++ b/SimpleWallet/Start.Designer.cs @@ -31,53 +31,6 @@ private void InitializeComponent() this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Start)); this.tcMain = new System.Windows.Forms.TabControl(); - this.tpOverview = new System.Windows.Forms.TabPage(); - this.pbTransaction4 = new System.Windows.Forms.PictureBox(); - this.pbTransaction3 = new System.Windows.Forms.PictureBox(); - this.pbTransaction2 = new System.Windows.Forms.PictureBox(); - this.pbTransaction1 = new System.Windows.Forms.PictureBox(); - this.tpSend = new System.Windows.Forms.TabPage(); - this.groupBox2 = new System.Windows.Forms.GroupBox(); - this.label15 = new System.Windows.Forms.Label(); - this.btnSendMany = new System.Windows.Forms.Button(); - this.cbbAddress = new System.Windows.Forms.ComboBox(); - this.cbDefaultFee = new System.Windows.Forms.CheckBox(); - this.cbbFrom = new System.Windows.Forms.ComboBox(); - this.btnSend = new System.Windows.Forms.Button(); - this.btnRefresh = new System.Windows.Forms.Button(); - this.tbAmount = new System.Windows.Forms.TextBox(); - this.cbUnit = new System.Windows.Forms.ComboBox(); - this.tbFee = new System.Windows.Forms.TextBox(); - this.tbLabel = new System.Windows.Forms.TextBox(); - this.tbPayTo = new System.Windows.Forms.TextBox(); - this.groupBox1 = new System.Windows.Forms.GroupBox(); - this.tbShieldFrom = new System.Windows.Forms.TextBox(); - this.tbShieldUtxo = new System.Windows.Forms.TextBox(); - this.cbShieldDefaultFee = new System.Windows.Forms.CheckBox(); - this.tbShieldFee = new System.Windows.Forms.TextBox(); - this.tbShieldTo = new System.Windows.Forms.TextBox(); - this.tpReceive = new System.Windows.Forms.TabPage(); - this.dtgAddress = new System.Windows.Forms.DataGridView(); - this.label13 = new System.Windows.Forms.Label(); - this.btnNewZAddress = new System.Windows.Forms.Button(); - this.btnNewAddress = new System.Windows.Forms.Button(); - this.tpTransactions = new System.Windows.Forms.TabPage(); - this.btnReindex = new System.Windows.Forms.Button(); - this.btnRescan = new System.Windows.Forms.Button(); - this.label14 = new System.Windows.Forms.Label(); - this.dtgTransactions = new System.Windows.Forms.DataGridView(); - this.categoryDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.confirmationsDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.amountDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.timeDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.addressDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.transactionConvertedBindingSource = new System.Windows.Forms.BindingSource(this.components); - this.tpAddressBock = new System.Windows.Forms.TabPage(); - this.btnNewAddressBook = new System.Windows.Forms.Button(); - this.dtgAddressBook = new System.Windows.Forms.DataGridView(); - this.labelDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.addressDataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.addressBookBindingSource = new System.Windows.Forms.BindingSource(this.components); this.tpMasternode = new System.Windows.Forms.TabPage(); this.tbSearch = new System.Windows.Forms.TextBox(); this.lbUpdateTime = new System.Windows.Forms.Label(); @@ -102,9 +55,55 @@ private void InitializeComponent() this.ipDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.masternodeDetailConvertedBindingSource = new System.Windows.Forms.BindingSource(this.components); this.dtgMasternode = new System.Windows.Forms.DataGridView(); - this.tpDebug = new System.Windows.Forms.TabPage(); - this.rtbError = new System.Windows.Forms.RichTextBox(); + this.aliasDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ipAddressDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.privKeyDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.txHashDataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.indexDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.masternodeBindingSource2 = new System.Windows.Forms.BindingSource(this.components); + this.tpTransactions = new System.Windows.Forms.TabPage(); + this.btnReindex = new System.Windows.Forms.Button(); + this.btnRescan = new System.Windows.Forms.Button(); + this.dtgTransactions = new System.Windows.Forms.DataGridView(); + this.categoryDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.confirmationsDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.amountDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.timeDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.addressDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.txidDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.transactionConvertedBindingSource = new System.Windows.Forms.BindingSource(this.components); + this.tpReceive = new System.Windows.Forms.TabPage(); + this.dtgAddress = new System.Windows.Forms.DataGridView(); + this.btnNewZAddress = new System.Windows.Forms.Button(); + this.btnAddressBook = new System.Windows.Forms.Button(); + this.btnNewAddress = new System.Windows.Forms.Button(); + this.tpSend = new System.Windows.Forms.TabPage(); + this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.label15 = new System.Windows.Forms.Label(); + this.btnSendMany = new System.Windows.Forms.Button(); + this.cbbAddress = new System.Windows.Forms.ComboBox(); + this.cbDefaultFee = new System.Windows.Forms.CheckBox(); + this.cbbFrom = new System.Windows.Forms.ComboBox(); + this.btnSend = new System.Windows.Forms.Button(); + this.btnRefresh = new System.Windows.Forms.Button(); + this.tbAmount = new System.Windows.Forms.TextBox(); + this.cbUnit = new System.Windows.Forms.ComboBox(); + this.tbFee = new System.Windows.Forms.TextBox(); + this.tbLabel = new System.Windows.Forms.TextBox(); + this.tbPayTo = new System.Windows.Forms.TextBox(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.tbShieldFrom = new System.Windows.Forms.TextBox(); + this.tbShieldUtxo = new System.Windows.Forms.TextBox(); + this.cbShieldDefaultFee = new System.Windows.Forms.CheckBox(); + this.tbShieldFee = new System.Windows.Forms.TextBox(); + this.tbShieldTo = new System.Windows.Forms.TextBox(); + this.tpOverview = new System.Windows.Forms.TabPage(); + this.pbTransaction4 = new System.Windows.Forms.PictureBox(); + this.pbTransaction3 = new System.Windows.Forms.PictureBox(); + this.pbTransaction2 = new System.Windows.Forms.PictureBox(); + this.pbTransaction1 = new System.Windows.Forms.PictureBox(); this.imgList = new System.Windows.Forms.ImageList(this.components); + this.addressBookBindingSource = new System.Windows.Forms.BindingSource(this.components); this.pbPercent = new System.Windows.Forms.ProgressBar(); this.menuStrip1 = new System.Windows.Forms.MenuStrip(); this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); @@ -128,7 +127,7 @@ private void InitializeComponent() this.masternodeListBindingSource = new System.Windows.Forms.BindingSource(this.components); this.masternodeBindingSource = new System.Windows.Forms.BindingSource(this.components); this.masternodeBindingSource1 = new System.Windows.Forms.BindingSource(this.components); - this.masternodeBindingSource2 = new System.Windows.Forms.BindingSource(this.components); + this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.lbAddress4 = new SimpleWallet.TransparentLabel(); this.lbAddress3 = new SimpleWallet.TransparentLabel(); this.lbAddress2 = new SimpleWallet.TransparentLabel(); @@ -169,40 +168,33 @@ private void InitializeComponent() this.transparentLabel4 = new SimpleWallet.TransparentLabel(); this.btnSearch = new SimpleWallet.RoundButton(); this.typesBindingSource = new System.Windows.Forms.BindingSource(this.components); - this.aliasDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ipAddressDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.privKeyDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.txHashDataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.indexDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.tcMain.SuspendLayout(); + this.tpMasternode.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dtgGlobalMN)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.masternodeDetailConvertedBindingSource)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.dtgMasternode)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.masternodeBindingSource2)).BeginInit(); + this.tpTransactions.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dtgTransactions)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.transactionConvertedBindingSource)).BeginInit(); + this.tpReceive.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dtgAddress)).BeginInit(); + this.tpSend.SuspendLayout(); + this.groupBox2.SuspendLayout(); + this.groupBox1.SuspendLayout(); this.tpOverview.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pbTransaction4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pbTransaction3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pbTransaction2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pbTransaction1)).BeginInit(); - this.tpSend.SuspendLayout(); - this.groupBox2.SuspendLayout(); - this.groupBox1.SuspendLayout(); - this.tpReceive.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dtgAddress)).BeginInit(); - this.tpTransactions.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dtgTransactions)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.transactionConvertedBindingSource)).BeginInit(); - this.tpAddressBock.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dtgAddressBook)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.addressBookBindingSource)).BeginInit(); - this.tpMasternode.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dtgGlobalMN)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.masternodeDetailConvertedBindingSource)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.dtgMasternode)).BeginInit(); - this.tpDebug.SuspendLayout(); this.menuStrip1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pbStatus)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pbSignal)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.masternodeListBindingSource)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.masternodeBindingSource)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.masternodeBindingSource1)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.masternodeBindingSource2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.typesBindingSource)).BeginInit(); this.SuspendLayout(); // @@ -213,414 +205,298 @@ private void InitializeComponent() this.tcMain.Controls.Add(this.tpSend); this.tcMain.Controls.Add(this.tpReceive); this.tcMain.Controls.Add(this.tpTransactions); - this.tcMain.Controls.Add(this.tpAddressBock); this.tcMain.Controls.Add(this.tpMasternode); - this.tcMain.Controls.Add(this.tpDebug); this.tcMain.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.tcMain.ImageList = this.imgList; this.tcMain.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.tcMain.ItemSize = new System.Drawing.Size(110, 26); this.tcMain.Location = new System.Drawing.Point(0, 24); + this.tcMain.Multiline = true; this.tcMain.Name = "tcMain"; this.tcMain.Padding = new System.Drawing.Point(0, 0); + this.tcMain.RightToLeftLayout = true; this.tcMain.SelectedIndex = 0; this.tcMain.Size = new System.Drawing.Size(856, 495); this.tcMain.SizeMode = System.Windows.Forms.TabSizeMode.Fixed; this.tcMain.TabIndex = 5; // - // tpOverview + // tpMasternode // - this.tpOverview.BackgroundImage = global::SimpleWallet.Properties.Resources.snowgem_wallet; - this.tpOverview.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; - this.tpOverview.Controls.Add(this.lbAddress4); - this.tpOverview.Controls.Add(this.lbAddress3); - this.tpOverview.Controls.Add(this.lbAddress2); - this.tpOverview.Controls.Add(this.lbAddress1); - this.tpOverview.Controls.Add(this.lbValue4); - this.tpOverview.Controls.Add(this.lbValue3); - this.tpOverview.Controls.Add(this.lbValue2); - this.tpOverview.Controls.Add(this.lbValue1); - this.tpOverview.Controls.Add(this.lbTime4); - this.tpOverview.Controls.Add(this.lbTime3); - this.tpOverview.Controls.Add(this.lbTime2); - this.tpOverview.Controls.Add(this.lbTime1); - this.tpOverview.Controls.Add(this.pbTransaction4); - this.tpOverview.Controls.Add(this.pbTransaction3); - this.tpOverview.Controls.Add(this.pbTransaction2); - this.tpOverview.Controls.Add(this.pbTransaction1); - this.tpOverview.Controls.Add(this.label5); - this.tpOverview.Controls.Add(this.label12); - this.tpOverview.Controls.Add(this.label7); - this.tpOverview.Controls.Add(this.label4); - this.tpOverview.Controls.Add(this.lbUnconfirmed); - this.tpOverview.Controls.Add(this.label2); - this.tpOverview.Controls.Add(this.lbTransparent); - this.tpOverview.Controls.Add(this.tlTransparentBalance); - this.tpOverview.Controls.Add(this.lbLocked); - this.tpOverview.Controls.Add(this.lbPrivate); - this.tpOverview.Controls.Add(this.transparentLabel2); - this.tpOverview.Controls.Add(this.transparentLabel1); - this.tpOverview.Controls.Add(this.lbTotal); - this.tpOverview.Controls.Add(this.label1); - this.tpOverview.Controls.Add(this.lbBestHash); - this.tpOverview.Controls.Add(this.lbBestTime); - this.tpOverview.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.tpOverview.ImageIndex = 2; - this.tpOverview.Location = new System.Drawing.Point(4, 30); - this.tpOverview.Name = "tpOverview"; - this.tpOverview.Padding = new System.Windows.Forms.Padding(3); - this.tpOverview.Size = new System.Drawing.Size(848, 461); - this.tpOverview.TabIndex = 0; - this.tpOverview.Text = "Overview"; - this.tpOverview.UseVisualStyleBackColor = true; + this.tpMasternode.Controls.Add(this.tbSearch); + this.tpMasternode.Controls.Add(this.lbUpdateTime); + this.tpMasternode.Controls.Add(this.label16); + this.tpMasternode.Controls.Add(this.label3); + this.tpMasternode.Controls.Add(this.btnRefreshMasternode); + this.tpMasternode.Controls.Add(this.btnStartAlias); + this.tpMasternode.Controls.Add(this.btnStartMasternode); + this.tpMasternode.Controls.Add(this.btnEditConfigFile); + this.tpMasternode.Controls.Add(this.btnGetOutputs); + this.tpMasternode.Controls.Add(this.btnTurnOffMNMode); + this.tpMasternode.Controls.Add(this.btnGetMNPrivKey); + this.tpMasternode.Controls.Add(this.dtgGlobalMN); + this.tpMasternode.Controls.Add(this.dtgMasternode); + this.tpMasternode.Controls.Add(this.btnSearch); + this.tpMasternode.ForeColor = System.Drawing.SystemColors.ControlText; + this.tpMasternode.ImageIndex = 5; + this.tpMasternode.ImeMode = System.Windows.Forms.ImeMode.NoControl; + this.tpMasternode.Location = new System.Drawing.Point(4, 30); + this.tpMasternode.Name = "tpMasternode"; + this.tpMasternode.Padding = new System.Windows.Forms.Padding(3); + this.tpMasternode.Size = new System.Drawing.Size(848, 461); + this.tpMasternode.TabIndex = 6; + this.tpMasternode.Text = "Masternode"; + this.tpMasternode.UseVisualStyleBackColor = true; + this.tpMasternode.Enter += new System.EventHandler(this.tpMasternode_Enter); + this.tpMasternode.Leave += new System.EventHandler(this.tpMasternode_Leave); // - // pbTransaction4 + // tbSearch // - this.pbTransaction4.BackColor = System.Drawing.Color.Transparent; - this.pbTransaction4.Location = new System.Drawing.Point(435, 227); - this.pbTransaction4.Name = "pbTransaction4"; - this.pbTransaction4.Size = new System.Drawing.Size(58, 58); - this.pbTransaction4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; - this.pbTransaction4.TabIndex = 10; - this.pbTransaction4.TabStop = false; - this.pbTransaction4.Visible = false; + this.tbSearch.ForeColor = System.Drawing.SystemColors.GrayText; + this.tbSearch.Location = new System.Drawing.Point(129, 433); + this.tbSearch.Name = "tbSearch"; + this.tbSearch.Size = new System.Drawing.Size(502, 21); + this.tbSearch.TabIndex = 4; + this.tbSearch.Text = "Masternode address or tx hash"; + this.tbSearch.Enter += new System.EventHandler(this.tbSearch_Enter); + this.tbSearch.Leave += new System.EventHandler(this.tbSearch_Leave); // - // pbTransaction3 + // lbUpdateTime // - this.pbTransaction3.BackColor = System.Drawing.Color.Transparent; - this.pbTransaction3.Location = new System.Drawing.Point(435, 163); - this.pbTransaction3.Name = "pbTransaction3"; - this.pbTransaction3.Size = new System.Drawing.Size(58, 58); - this.pbTransaction3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; - this.pbTransaction3.TabIndex = 10; - this.pbTransaction3.TabStop = false; - this.pbTransaction3.Visible = false; + this.lbUpdateTime.AutoSize = true; + this.lbUpdateTime.Location = new System.Drawing.Point(690, 436); + this.lbUpdateTime.Name = "lbUpdateTime"; + this.lbUpdateTime.Size = new System.Drawing.Size(29, 15); + this.lbUpdateTime.TabIndex = 3; + this.lbUpdateTime.Text = "(60)"; // - // pbTransaction2 + // label16 // - this.pbTransaction2.BackColor = System.Drawing.Color.Transparent; - this.pbTransaction2.Location = new System.Drawing.Point(435, 99); - this.pbTransaction2.Name = "pbTransaction2"; - this.pbTransaction2.Size = new System.Drawing.Size(58, 58); - this.pbTransaction2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; - this.pbTransaction2.TabIndex = 10; - this.pbTransaction2.TabStop = false; - this.pbTransaction2.Visible = false; + this.label16.AutoSize = true; + this.label16.Location = new System.Drawing.Point(8, 3); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(115, 15); + this.label16.TabIndex = 2; + this.label16.Text = "Your masternode(s)"; // - // pbTransaction1 + // label3 // - this.pbTransaction1.BackColor = System.Drawing.Color.Transparent; - this.pbTransaction1.Location = new System.Drawing.Point(435, 35); - this.pbTransaction1.Name = "pbTransaction1"; - this.pbTransaction1.Size = new System.Drawing.Size(58, 58); - this.pbTransaction1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; - this.pbTransaction1.TabIndex = 10; - this.pbTransaction1.TabStop = false; - this.pbTransaction1.Visible = false; + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(6, 113); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(95, 15); + this.label3.TabIndex = 2; + this.label3.Text = "All masternodes"; // - // tpSend + // btnRefreshMasternode // - this.tpSend.Controls.Add(this.groupBox2); - this.tpSend.Controls.Add(this.groupBox1); - this.tpSend.ImageIndex = 4; - this.tpSend.Location = new System.Drawing.Point(4, 30); - this.tpSend.Name = "tpSend"; - this.tpSend.Padding = new System.Windows.Forms.Padding(3); - this.tpSend.Size = new System.Drawing.Size(848, 461); - this.tpSend.TabIndex = 1; - this.tpSend.Text = "Send coins"; - this.tpSend.UseVisualStyleBackColor = true; - this.tpSend.Enter += new System.EventHandler(this.tpSend_Enter); + this.btnRefreshMasternode.Location = new System.Drawing.Point(637, 403); + this.btnRefreshMasternode.Name = "btnRefreshMasternode"; + this.btnRefreshMasternode.Size = new System.Drawing.Size(97, 23); + this.btnRefreshMasternode.TabIndex = 1; + this.btnRefreshMasternode.Text = "Refresh"; + this.ttStart.SetToolTip(this.btnRefreshMasternode, "Refresh masternode list"); + this.btnRefreshMasternode.UseVisualStyleBackColor = true; + this.btnRefreshMasternode.Click += new System.EventHandler(this.btnRefreshMasternode_Click); // - // groupBox2 + // btnStartAlias // - this.groupBox2.Controls.Add(this.label15); - this.groupBox2.Controls.Add(this.btnSendMany); - this.groupBox2.Controls.Add(this.cbbAddress); - this.groupBox2.Controls.Add(this.cbDefaultFee); - this.groupBox2.Controls.Add(this.cbbFrom); - this.groupBox2.Controls.Add(this.btnSend); - this.groupBox2.Controls.Add(this.btnRefresh); - this.groupBox2.Controls.Add(this.label6); - this.groupBox2.Controls.Add(this.tbAmount); - this.groupBox2.Controls.Add(this.label9); - this.groupBox2.Controls.Add(this.cbUnit); - this.groupBox2.Controls.Add(this.label8); - this.groupBox2.Controls.Add(this.label10); - this.groupBox2.Controls.Add(this.tbFee); - this.groupBox2.Controls.Add(this.label11); - this.groupBox2.Controls.Add(this.tbLabel); - this.groupBox2.Controls.Add(this.tbPayTo); - this.groupBox2.Location = new System.Drawing.Point(9, 6); - this.groupBox2.Name = "groupBox2"; - this.groupBox2.Size = new System.Drawing.Size(831, 261); - this.groupBox2.TabIndex = 17; - this.groupBox2.TabStop = false; - this.groupBox2.Text = "Normal send"; + this.btnStartAlias.Location = new System.Drawing.Point(521, 403); + this.btnStartAlias.Name = "btnStartAlias"; + this.btnStartAlias.Size = new System.Drawing.Size(110, 23); + this.btnStartAlias.TabIndex = 1; + this.btnStartAlias.Text = "Start Alias"; + this.btnStartAlias.UseVisualStyleBackColor = true; + this.btnStartAlias.Click += new System.EventHandler(this.btnStartAlias_Click); // - // label15 + // btnStartMasternode // - this.label15.Location = new System.Drawing.Point(9, 162); - this.label15.Name = "label15"; - this.label15.Size = new System.Drawing.Size(816, 63); - this.label15.TabIndex = 9; - this.label15.Text = resources.GetString("label15.Text"); + this.btnStartMasternode.Location = new System.Drawing.Point(405, 403); + this.btnStartMasternode.Name = "btnStartMasternode"; + this.btnStartMasternode.Size = new System.Drawing.Size(110, 23); + this.btnStartMasternode.TabIndex = 1; + this.btnStartMasternode.Text = "Start MN"; + this.btnStartMasternode.UseVisualStyleBackColor = true; + this.btnStartMasternode.Click += new System.EventHandler(this.btnStartMasternode_Click); // - // btnSendMany + // btnEditConfigFile // - this.btnSendMany.Location = new System.Drawing.Point(707, 228); - this.btnSendMany.Name = "btnSendMany"; - this.btnSendMany.Size = new System.Drawing.Size(118, 27); - this.btnSendMany.TabIndex = 16; - this.btnSendMany.Text = "Send Many"; - this.btnSendMany.UseVisualStyleBackColor = true; - this.btnSendMany.Click += new System.EventHandler(this.btnSendMany_Click); + this.btnEditConfigFile.Location = new System.Drawing.Point(245, 403); + this.btnEditConfigFile.Name = "btnEditConfigFile"; + this.btnEditConfigFile.Size = new System.Drawing.Size(154, 23); + this.btnEditConfigFile.TabIndex = 1; + this.btnEditConfigFile.Text = "Configure Masternode"; + this.btnEditConfigFile.UseVisualStyleBackColor = true; + this.btnEditConfigFile.Click += new System.EventHandler(this.btnEditConfigFile_Click); // - // cbbAddress + // btnGetOutputs // - this.cbbAddress.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cbbAddress.FormattingEnabled = true; - this.cbbAddress.Location = new System.Drawing.Point(584, 48); - this.cbbAddress.Name = "cbbAddress"; - this.cbbAddress.Size = new System.Drawing.Size(241, 23); - this.cbbAddress.Sorted = true; - this.cbbAddress.TabIndex = 2; - this.cbbAddress.SelectedIndexChanged += new System.EventHandler(this.cbbAddress_SelectedIndexChanged); + this.btnGetOutputs.Location = new System.Drawing.Point(129, 403); + this.btnGetOutputs.Name = "btnGetOutputs"; + this.btnGetOutputs.Size = new System.Drawing.Size(110, 23); + this.btnGetOutputs.TabIndex = 1; + this.btnGetOutputs.Text = "Get Outputs"; + this.btnGetOutputs.UseVisualStyleBackColor = true; + this.btnGetOutputs.Click += new System.EventHandler(this.btnGetOutputs_Click); // - // cbDefaultFee + // btnTurnOffMNMode // - this.cbDefaultFee.AutoSize = true; - this.cbDefaultFee.Checked = true; - this.cbDefaultFee.CheckState = System.Windows.Forms.CheckState.Checked; - this.cbDefaultFee.Location = new System.Drawing.Point(177, 132); - this.cbDefaultFee.Name = "cbDefaultFee"; - this.cbDefaultFee.Size = new System.Drawing.Size(85, 19); - this.cbDefaultFee.TabIndex = 7; - this.cbDefaultFee.Text = "Default fee"; - this.cbDefaultFee.UseVisualStyleBackColor = true; - this.cbDefaultFee.CheckedChanged += new System.EventHandler(this.cbFee_CheckedChanged); + this.btnTurnOffMNMode.Enabled = false; + this.btnTurnOffMNMode.Location = new System.Drawing.Point(7, 432); + this.btnTurnOffMNMode.Name = "btnTurnOffMNMode"; + this.btnTurnOffMNMode.Size = new System.Drawing.Size(116, 23); + this.btnTurnOffMNMode.TabIndex = 1; + this.btnTurnOffMNMode.Text = "Turn Off MN Mode"; + this.ttStart.SetToolTip(this.btnTurnOffMNMode, "Turn off cold masternode option to avoid restarting masternode active time"); + this.btnTurnOffMNMode.UseVisualStyleBackColor = true; + this.btnTurnOffMNMode.Click += new System.EventHandler(this.btnTurnOffMNMode_Click); // - // cbbFrom + // btnGetMNPrivKey // - this.cbbFrom.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cbbFrom.FormattingEnabled = true; - this.cbbFrom.Location = new System.Drawing.Point(69, 20); - this.cbbFrom.Name = "cbbFrom"; - this.cbbFrom.Size = new System.Drawing.Size(756, 23); - this.cbbFrom.Sorted = true; - this.cbbFrom.TabIndex = 0; - this.cbbFrom.SelectedIndexChanged += new System.EventHandler(this.cbbFrom_SelectedIndexChanged); + this.btnGetMNPrivKey.Location = new System.Drawing.Point(7, 403); + this.btnGetMNPrivKey.Name = "btnGetMNPrivKey"; + this.btnGetMNPrivKey.Size = new System.Drawing.Size(116, 23); + this.btnGetMNPrivKey.TabIndex = 1; + this.btnGetMNPrivKey.Text = "Get MN Priv Key"; + this.btnGetMNPrivKey.UseVisualStyleBackColor = true; + this.btnGetMNPrivKey.Click += new System.EventHandler(this.btnGetMNPrivKey_Click); // - // btnSend + // dtgGlobalMN // - this.btnSend.Location = new System.Drawing.Point(614, 228); - this.btnSend.Name = "btnSend"; - this.btnSend.Size = new System.Drawing.Size(87, 27); - this.btnSend.TabIndex = 15; - this.btnSend.Text = "Send"; - this.btnSend.UseVisualStyleBackColor = true; - this.btnSend.Click += new System.EventHandler(this.btnSend_Click); + this.dtgGlobalMN.AutoGenerateColumns = false; + this.dtgGlobalMN.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dtgGlobalMN.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.rankDataGridViewTextBoxColumn, + this.addrDataGridViewTextBoxColumn, + this.versionDataGridViewTextBoxColumn, + this.statusDataGridViewTextBoxColumn, + this.activetimeDataGridViewTextBoxColumn, + this.lastseenDataGridViewTextBoxColumn, + this.lastpaidDataGridViewTextBoxColumn, + this.txhashDataGridViewTextBoxColumn, + this.ipDataGridViewTextBoxColumn}); + this.dtgGlobalMN.DataSource = this.masternodeDetailConvertedBindingSource; + this.dtgGlobalMN.Location = new System.Drawing.Point(8, 131); + this.dtgGlobalMN.Name = "dtgGlobalMN"; + this.dtgGlobalMN.Size = new System.Drawing.Size(832, 266); + this.dtgGlobalMN.TabIndex = 0; + this.dtgGlobalMN.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dtgAddress_CellDoubleClick); + this.dtgGlobalMN.DataBindingComplete += new System.Windows.Forms.DataGridViewBindingCompleteEventHandler(this.dtgGlobalMN_DataBindingComplete); + this.dtgGlobalMN.MouseClick += new System.Windows.Forms.MouseEventHandler(this.dtgAddress_MouseClick); // - // btnRefresh + // rankDataGridViewTextBoxColumn // - this.btnRefresh.Location = new System.Drawing.Point(521, 228); - this.btnRefresh.Name = "btnRefresh"; - this.btnRefresh.Size = new System.Drawing.Size(87, 27); - this.btnRefresh.TabIndex = 14; - this.btnRefresh.Text = "Refresh"; - this.ttStart.SetToolTip(this.btnRefresh, "Refresh address value"); - this.btnRefresh.UseVisualStyleBackColor = true; - this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click); + this.rankDataGridViewTextBoxColumn.DataPropertyName = "rank"; + this.rankDataGridViewTextBoxColumn.HeaderText = "rank"; + this.rankDataGridViewTextBoxColumn.Name = "rankDataGridViewTextBoxColumn"; // - // tbAmount + // addrDataGridViewTextBoxColumn // - this.tbAmount.Location = new System.Drawing.Point(69, 103); - this.tbAmount.Name = "tbAmount"; - this.tbAmount.Size = new System.Drawing.Size(102, 21); - this.tbAmount.TabIndex = 4; - this.tbAmount.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.tbAmount_KeyPress); + this.addrDataGridViewTextBoxColumn.DataPropertyName = "addr"; + this.addrDataGridViewTextBoxColumn.HeaderText = "addr"; + this.addrDataGridViewTextBoxColumn.Name = "addrDataGridViewTextBoxColumn"; // - // cbUnit + // versionDataGridViewTextBoxColumn // - this.cbUnit.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cbUnit.FormattingEnabled = true; - this.cbUnit.Items.AddRange(new object[] { - "SNG", - "mSNG"}); - this.cbUnit.Location = new System.Drawing.Point(177, 103); - this.cbUnit.Name = "cbUnit"; - this.cbUnit.Size = new System.Drawing.Size(100, 23); - this.cbUnit.TabIndex = 5; + this.versionDataGridViewTextBoxColumn.DataPropertyName = "version"; + this.versionDataGridViewTextBoxColumn.HeaderText = "version"; + this.versionDataGridViewTextBoxColumn.Name = "versionDataGridViewTextBoxColumn"; // - // tbFee + // statusDataGridViewTextBoxColumn // - this.tbFee.Enabled = false; - this.tbFee.Location = new System.Drawing.Point(69, 130); - this.tbFee.Name = "tbFee"; - this.tbFee.Size = new System.Drawing.Size(102, 21); - this.tbFee.TabIndex = 6; - this.tbFee.Text = "0.0001"; - this.tbFee.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.tbAmount_KeyPress); + this.statusDataGridViewTextBoxColumn.DataPropertyName = "status"; + this.statusDataGridViewTextBoxColumn.HeaderText = "status"; + this.statusDataGridViewTextBoxColumn.Name = "statusDataGridViewTextBoxColumn"; // - // tbLabel + // activetimeDataGridViewTextBoxColumn // - this.tbLabel.Location = new System.Drawing.Point(69, 76); - this.tbLabel.Name = "tbLabel"; - this.tbLabel.Size = new System.Drawing.Size(756, 21); - this.tbLabel.TabIndex = 3; + this.activetimeDataGridViewTextBoxColumn.DataPropertyName = "activetime"; + this.activetimeDataGridViewTextBoxColumn.HeaderText = "activetime"; + this.activetimeDataGridViewTextBoxColumn.Name = "activetimeDataGridViewTextBoxColumn"; // - // tbPayTo + // lastseenDataGridViewTextBoxColumn // - this.tbPayTo.Location = new System.Drawing.Point(69, 49); - this.tbPayTo.Name = "tbPayTo"; - this.tbPayTo.Size = new System.Drawing.Size(507, 21); - this.tbPayTo.TabIndex = 1; - this.tbPayTo.Leave += new System.EventHandler(this.tbPayTo_Leave); + this.lastseenDataGridViewTextBoxColumn.DataPropertyName = "lastseen"; + this.lastseenDataGridViewTextBoxColumn.HeaderText = "lastseen"; + this.lastseenDataGridViewTextBoxColumn.Name = "lastseenDataGridViewTextBoxColumn"; // - // groupBox1 + // lastpaidDataGridViewTextBoxColumn // - this.groupBox1.Controls.Add(this.tbShieldFrom); - this.groupBox1.Controls.Add(this.transparentLabel3); - this.groupBox1.Controls.Add(this.tbShieldUtxo); - this.groupBox1.Controls.Add(this.cbShieldDefaultFee); - this.groupBox1.Controls.Add(this.transparentLabel6); - this.groupBox1.Controls.Add(this.tbShieldFee); - this.groupBox1.Controls.Add(this.transparentLabel5); - this.groupBox1.Controls.Add(this.btnShield); - this.groupBox1.Controls.Add(this.tbShieldTo); - this.groupBox1.Controls.Add(this.transparentLabel4); - this.groupBox1.Location = new System.Drawing.Point(9, 273); - this.groupBox1.Name = "groupBox1"; - this.groupBox1.Size = new System.Drawing.Size(831, 182); - this.groupBox1.TabIndex = 10; - this.groupBox1.TabStop = false; - this.groupBox1.Text = "Shield coinbase"; + this.lastpaidDataGridViewTextBoxColumn.DataPropertyName = "lastpaid"; + this.lastpaidDataGridViewTextBoxColumn.HeaderText = "lastpaid"; + this.lastpaidDataGridViewTextBoxColumn.Name = "lastpaidDataGridViewTextBoxColumn"; // - // tbShieldFrom + // txhashDataGridViewTextBoxColumn // - this.tbShieldFrom.ForeColor = System.Drawing.SystemColors.GrayText; - this.tbShieldFrom.Location = new System.Drawing.Point(69, 20); - this.tbShieldFrom.Name = "tbShieldFrom"; - this.tbShieldFrom.Size = new System.Drawing.Size(756, 21); - this.tbShieldFrom.TabIndex = 8; - this.tbShieldFrom.Text = "Public address"; - this.tbShieldFrom.Enter += new System.EventHandler(this.tbShieldFrom_Enter); - this.tbShieldFrom.Leave += new System.EventHandler(this.tbShieldFrom_Leave); + this.txhashDataGridViewTextBoxColumn.DataPropertyName = "txhash"; + this.txhashDataGridViewTextBoxColumn.HeaderText = "txhash"; + this.txhashDataGridViewTextBoxColumn.Name = "txhashDataGridViewTextBoxColumn"; // - // tbShieldUtxo + // ipDataGridViewTextBoxColumn // - this.tbShieldUtxo.ForeColor = System.Drawing.SystemColors.GrayText; - this.tbShieldUtxo.Location = new System.Drawing.Point(69, 74); - this.tbShieldUtxo.Name = "tbShieldUtxo"; - this.tbShieldUtxo.Size = new System.Drawing.Size(756, 21); - this.tbShieldUtxo.TabIndex = 10; - this.tbShieldUtxo.Text = "utxo to shield"; - this.tbShieldUtxo.Enter += new System.EventHandler(this.tbShieldUtxo_Enter); - this.tbShieldUtxo.Leave += new System.EventHandler(this.tbShieldUtxo_Leave); + this.ipDataGridViewTextBoxColumn.DataPropertyName = "ip"; + this.ipDataGridViewTextBoxColumn.HeaderText = "ip"; + this.ipDataGridViewTextBoxColumn.Name = "ipDataGridViewTextBoxColumn"; // - // cbShieldDefaultFee + // masternodeDetailConvertedBindingSource // - this.cbShieldDefaultFee.AutoSize = true; - this.cbShieldDefaultFee.Checked = true; - this.cbShieldDefaultFee.CheckState = System.Windows.Forms.CheckState.Checked; - this.cbShieldDefaultFee.Location = new System.Drawing.Point(740, 103); - this.cbShieldDefaultFee.Name = "cbShieldDefaultFee"; - this.cbShieldDefaultFee.Size = new System.Drawing.Size(85, 19); - this.cbShieldDefaultFee.TabIndex = 12; - this.cbShieldDefaultFee.Text = "Default fee"; - this.cbShieldDefaultFee.UseVisualStyleBackColor = true; - this.cbShieldDefaultFee.CheckedChanged += new System.EventHandler(this.cbShieldDefaultFee_CheckedChanged); + this.masternodeDetailConvertedBindingSource.DataSource = typeof(SimpleWallet.Types.MasternodeDetailConverted); // - // tbShieldFee + // dtgMasternode // - this.tbShieldFee.Enabled = false; - this.tbShieldFee.Location = new System.Drawing.Point(69, 101); - this.tbShieldFee.Name = "tbShieldFee"; - this.tbShieldFee.Size = new System.Drawing.Size(665, 21); - this.tbShieldFee.TabIndex = 11; - this.tbShieldFee.Text = "0.0001"; - this.tbShieldFee.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.tbAmount_KeyPress); - this.tbShieldFee.Leave += new System.EventHandler(this.tbPayTo_Leave); + this.dtgMasternode.AutoGenerateColumns = false; + this.dtgMasternode.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dtgMasternode.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.aliasDataGridViewTextBoxColumn, + this.ipAddressDataGridViewTextBoxColumn, + this.privKeyDataGridViewTextBoxColumn, + this.txHashDataGridViewTextBoxColumn1, + this.indexDataGridViewTextBoxColumn}); + this.dtgMasternode.DataSource = this.masternodeBindingSource2; + this.dtgMasternode.Location = new System.Drawing.Point(8, 21); + this.dtgMasternode.Name = "dtgMasternode"; + this.dtgMasternode.Size = new System.Drawing.Size(832, 89); + this.dtgMasternode.TabIndex = 0; + this.dtgMasternode.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dtgAddress_CellDoubleClick); + this.dtgMasternode.MouseClick += new System.Windows.Forms.MouseEventHandler(this.dtgMasternode_MouseClick); // - // tbShieldTo + // aliasDataGridViewTextBoxColumn // - this.tbShieldTo.ForeColor = System.Drawing.SystemColors.GrayText; - this.tbShieldTo.Location = new System.Drawing.Point(69, 47); - this.tbShieldTo.Name = "tbShieldTo"; - this.tbShieldTo.Size = new System.Drawing.Size(756, 21); - this.tbShieldTo.TabIndex = 9; - this.tbShieldTo.Text = "Private address"; - this.tbShieldTo.Enter += new System.EventHandler(this.tbShieldTo_Enter); - this.tbShieldTo.Leave += new System.EventHandler(this.tbShieldTo_Leave); + this.aliasDataGridViewTextBoxColumn.DataPropertyName = "alias"; + this.aliasDataGridViewTextBoxColumn.HeaderText = "alias"; + this.aliasDataGridViewTextBoxColumn.Name = "aliasDataGridViewTextBoxColumn"; // - // tpReceive + // ipAddressDataGridViewTextBoxColumn // - this.tpReceive.Controls.Add(this.dtgAddress); - this.tpReceive.Controls.Add(this.label13); - this.tpReceive.Controls.Add(this.btnNewZAddress); - this.tpReceive.Controls.Add(this.btnNewAddress); - this.tpReceive.ImageIndex = 3; - this.tpReceive.Location = new System.Drawing.Point(4, 30); - this.tpReceive.Name = "tpReceive"; - this.tpReceive.Padding = new System.Windows.Forms.Padding(3); - this.tpReceive.Size = new System.Drawing.Size(848, 461); - this.tpReceive.TabIndex = 2; - this.tpReceive.Text = "Receive coins"; - this.tpReceive.UseVisualStyleBackColor = true; - this.tpReceive.Enter += new System.EventHandler(this.tpReceive_Enter); - this.tpReceive.Leave += new System.EventHandler(this.tpReceive_Leave); + this.ipAddressDataGridViewTextBoxColumn.DataPropertyName = "ipAddress"; + this.ipAddressDataGridViewTextBoxColumn.HeaderText = "ipAddress"; + this.ipAddressDataGridViewTextBoxColumn.Name = "ipAddressDataGridViewTextBoxColumn"; // - // dtgAddress + // privKeyDataGridViewTextBoxColumn // - this.dtgAddress.AllowUserToAddRows = false; - this.dtgAddress.AllowUserToDeleteRows = false; - this.dtgAddress.AllowUserToResizeColumns = false; - this.dtgAddress.AllowUserToResizeRows = false; - this.dtgAddress.BackgroundColor = System.Drawing.SystemColors.ControlDark; - this.dtgAddress.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.dtgAddress.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dtgAddress.Location = new System.Drawing.Point(7, 8); - this.dtgAddress.Name = "dtgAddress"; - this.dtgAddress.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; - this.dtgAddress.Size = new System.Drawing.Size(831, 417); - this.dtgAddress.TabIndex = 9; - this.dtgAddress.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dtgAddress_CellDoubleClick); - this.dtgAddress.MouseClick += new System.Windows.Forms.MouseEventHandler(this.dtgAddress_MouseClick); + this.privKeyDataGridViewTextBoxColumn.DataPropertyName = "privKey"; + this.privKeyDataGridViewTextBoxColumn.HeaderText = "privKey"; + this.privKeyDataGridViewTextBoxColumn.Name = "privKeyDataGridViewTextBoxColumn"; // - // label13 + // txHashDataGridViewTextBoxColumn1 // - this.label13.AutoSize = true; - this.label13.Location = new System.Drawing.Point(6, 438); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(224, 15); - this.label13.TabIndex = 8; - this.label13.Text = "* Note: Double click the cell to copy data"; + this.txHashDataGridViewTextBoxColumn1.DataPropertyName = "txHash"; + this.txHashDataGridViewTextBoxColumn1.HeaderText = "txHash"; + this.txHashDataGridViewTextBoxColumn1.Name = "txHashDataGridViewTextBoxColumn1"; // - // btnNewZAddress + // indexDataGridViewTextBoxColumn // - this.btnNewZAddress.Location = new System.Drawing.Point(658, 430); - this.btnNewZAddress.Name = "btnNewZAddress"; - this.btnNewZAddress.Size = new System.Drawing.Size(180, 27); - this.btnNewZAddress.TabIndex = 7; - this.btnNewZAddress.Text = "Get new Z address"; - this.btnNewZAddress.UseVisualStyleBackColor = true; - this.btnNewZAddress.Click += new System.EventHandler(this.btnNewZAddress_Click); + this.indexDataGridViewTextBoxColumn.DataPropertyName = "index"; + this.indexDataGridViewTextBoxColumn.HeaderText = "index"; + this.indexDataGridViewTextBoxColumn.Name = "indexDataGridViewTextBoxColumn"; // - // btnNewAddress + // masternodeBindingSource2 // - this.btnNewAddress.Location = new System.Drawing.Point(472, 430); - this.btnNewAddress.Name = "btnNewAddress"; - this.btnNewAddress.Size = new System.Drawing.Size(180, 27); - this.btnNewAddress.TabIndex = 7; - this.btnNewAddress.Text = "Get new address"; - this.btnNewAddress.UseVisualStyleBackColor = true; - this.btnNewAddress.Click += new System.EventHandler(this.btnNewAddress_Click); + this.masternodeBindingSource2.DataSource = typeof(SimpleWallet.Types.Masternode); // // tpTransactions // this.tpTransactions.Controls.Add(this.btnReindex); this.tpTransactions.Controls.Add(this.btnRescan); - this.tpTransactions.Controls.Add(this.label14); this.tpTransactions.Controls.Add(this.dtgTransactions); this.tpTransactions.ImageIndex = 1; this.tpTransactions.Location = new System.Drawing.Point(4, 30); @@ -653,15 +529,6 @@ private void InitializeComponent() this.btnRescan.UseVisualStyleBackColor = true; this.btnRescan.Click += new System.EventHandler(this.btnRescan_Click); // - // label14 - // - this.label14.AutoSize = true; - this.label14.Location = new System.Drawing.Point(6, 438); - this.label14.Name = "label14"; - this.label14.Size = new System.Drawing.Size(224, 15); - this.label14.TabIndex = 9; - this.label14.Text = "* Note: Double click the cell to copy data"; - // // dtgTransactions // this.dtgTransactions.AllowUserToResizeColumns = false; @@ -675,14 +542,15 @@ private void InitializeComponent() this.confirmationsDataGridViewTextBoxColumn, this.amountDataGridViewTextBoxColumn, this.timeDataGridViewTextBoxColumn, - this.addressDataGridViewTextBoxColumn}); + this.addressDataGridViewTextBoxColumn, + this.txidDataGridViewTextBoxColumn}); this.dtgTransactions.DataSource = this.transactionConvertedBindingSource; this.dtgTransactions.Location = new System.Drawing.Point(7, 8); this.dtgTransactions.Name = "dtgTransactions"; this.dtgTransactions.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; this.dtgTransactions.Size = new System.Drawing.Size(831, 417); this.dtgTransactions.TabIndex = 0; - this.dtgTransactions.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dtgAddress_CellDoubleClick); + this.dtgTransactions.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dtgTransactions_CellDoubleClick); this.dtgTransactions.MouseClick += new System.Windows.Forms.MouseEventHandler(this.dtgAddress_MouseClick); // // categoryDataGridViewTextBoxColumn @@ -715,329 +583,404 @@ private void InitializeComponent() this.addressDataGridViewTextBoxColumn.HeaderText = "address"; this.addressDataGridViewTextBoxColumn.Name = "addressDataGridViewTextBoxColumn"; // + // txidDataGridViewTextBoxColumn + // + this.txidDataGridViewTextBoxColumn.DataPropertyName = "txid"; + this.txidDataGridViewTextBoxColumn.HeaderText = "txid"; + this.txidDataGridViewTextBoxColumn.Name = "txidDataGridViewTextBoxColumn"; + // // transactionConvertedBindingSource // this.transactionConvertedBindingSource.DataSource = typeof(SimpleWallet.Types.TransactionConverted); // - // tpAddressBock - // - this.tpAddressBock.Controls.Add(this.btnNewAddressBook); - this.tpAddressBock.Controls.Add(this.dtgAddressBook); - this.tpAddressBock.ImageIndex = 0; - this.tpAddressBock.Location = new System.Drawing.Point(4, 30); - this.tpAddressBock.Name = "tpAddressBock"; - this.tpAddressBock.Padding = new System.Windows.Forms.Padding(3); - this.tpAddressBock.Size = new System.Drawing.Size(848, 461); - this.tpAddressBock.TabIndex = 4; - this.tpAddressBock.Text = "Address Book"; - this.tpAddressBock.UseVisualStyleBackColor = true; - // - // btnNewAddressBook - // - this.btnNewAddressBook.Location = new System.Drawing.Point(658, 430); - this.btnNewAddressBook.Name = "btnNewAddressBook"; - this.btnNewAddressBook.Size = new System.Drawing.Size(180, 27); - this.btnNewAddressBook.TabIndex = 11; - this.btnNewAddressBook.Text = "New address label"; - this.btnNewAddressBook.UseVisualStyleBackColor = true; - this.btnNewAddressBook.Click += new System.EventHandler(this.btnNewAddressBook_Click); - // - // dtgAddressBook - // - this.dtgAddressBook.AllowUserToAddRows = false; - this.dtgAddressBook.AllowUserToDeleteRows = false; - this.dtgAddressBook.AllowUserToResizeColumns = false; - this.dtgAddressBook.AllowUserToResizeRows = false; - this.dtgAddressBook.AutoGenerateColumns = false; - this.dtgAddressBook.BackgroundColor = System.Drawing.SystemColors.ControlDark; - this.dtgAddressBook.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.dtgAddressBook.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dtgAddressBook.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.labelDataGridViewTextBoxColumn, - this.addressDataGridViewTextBoxColumn1}); - this.dtgAddressBook.DataSource = this.addressBookBindingSource; - this.dtgAddressBook.Location = new System.Drawing.Point(7, 8); - this.dtgAddressBook.Name = "dtgAddressBook"; - this.dtgAddressBook.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; - this.dtgAddressBook.Size = new System.Drawing.Size(831, 417); - this.dtgAddressBook.TabIndex = 1; - this.dtgAddressBook.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dtgAdressBook_CellDoubleClick); - this.dtgAddressBook.MouseClick += new System.Windows.Forms.MouseEventHandler(this.dtgMasternode_MouseClick); - // - // labelDataGridViewTextBoxColumn - // - this.labelDataGridViewTextBoxColumn.DataPropertyName = "label"; - this.labelDataGridViewTextBoxColumn.HeaderText = "label"; - this.labelDataGridViewTextBoxColumn.Name = "labelDataGridViewTextBoxColumn"; - // - // addressDataGridViewTextBoxColumn1 - // - this.addressDataGridViewTextBoxColumn1.DataPropertyName = "address"; - this.addressDataGridViewTextBoxColumn1.HeaderText = "address"; - this.addressDataGridViewTextBoxColumn1.Name = "addressDataGridViewTextBoxColumn1"; + // tpReceive // - // addressBookBindingSource + this.tpReceive.Controls.Add(this.dtgAddress); + this.tpReceive.Controls.Add(this.btnNewZAddress); + this.tpReceive.Controls.Add(this.btnAddressBook); + this.tpReceive.Controls.Add(this.btnNewAddress); + this.tpReceive.ImageIndex = 3; + this.tpReceive.Location = new System.Drawing.Point(4, 30); + this.tpReceive.Name = "tpReceive"; + this.tpReceive.Padding = new System.Windows.Forms.Padding(3); + this.tpReceive.Size = new System.Drawing.Size(848, 461); + this.tpReceive.TabIndex = 2; + this.tpReceive.Text = "Receive coins"; + this.tpReceive.UseVisualStyleBackColor = true; + this.tpReceive.Enter += new System.EventHandler(this.tpReceive_Enter); + this.tpReceive.Leave += new System.EventHandler(this.tpReceive_Leave); // - this.addressBookBindingSource.DataSource = typeof(SimpleWallet.Types.AddressBook); + // dtgAddress // - // tpMasternode + this.dtgAddress.AllowUserToAddRows = false; + this.dtgAddress.AllowUserToDeleteRows = false; + this.dtgAddress.AllowUserToResizeColumns = false; + this.dtgAddress.AllowUserToResizeRows = false; + this.dtgAddress.BackgroundColor = System.Drawing.SystemColors.ControlDark; + this.dtgAddress.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.dtgAddress.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dtgAddress.Location = new System.Drawing.Point(7, 8); + this.dtgAddress.Name = "dtgAddress"; + this.dtgAddress.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; + this.dtgAddress.Size = new System.Drawing.Size(831, 417); + this.dtgAddress.TabIndex = 9; + this.dtgAddress.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dtgAddress_CellDoubleClick); + this.dtgAddress.MouseClick += new System.Windows.Forms.MouseEventHandler(this.dtgAddress_MouseClick); // - this.tpMasternode.Controls.Add(this.tbSearch); - this.tpMasternode.Controls.Add(this.lbUpdateTime); - this.tpMasternode.Controls.Add(this.label16); - this.tpMasternode.Controls.Add(this.label3); - this.tpMasternode.Controls.Add(this.btnRefreshMasternode); - this.tpMasternode.Controls.Add(this.btnStartAlias); - this.tpMasternode.Controls.Add(this.btnStartMasternode); - this.tpMasternode.Controls.Add(this.btnEditConfigFile); - this.tpMasternode.Controls.Add(this.btnGetOutputs); - this.tpMasternode.Controls.Add(this.btnTurnOffMNMode); - this.tpMasternode.Controls.Add(this.btnGetMNPrivKey); - this.tpMasternode.Controls.Add(this.dtgGlobalMN); - this.tpMasternode.Controls.Add(this.dtgMasternode); - this.tpMasternode.Controls.Add(this.btnSearch); - this.tpMasternode.ForeColor = System.Drawing.SystemColors.ControlText; - this.tpMasternode.ImageIndex = 5; - this.tpMasternode.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.tpMasternode.Location = new System.Drawing.Point(4, 30); - this.tpMasternode.Name = "tpMasternode"; - this.tpMasternode.Padding = new System.Windows.Forms.Padding(3); - this.tpMasternode.Size = new System.Drawing.Size(848, 461); - this.tpMasternode.TabIndex = 6; - this.tpMasternode.Text = "Masternode"; - this.tpMasternode.UseVisualStyleBackColor = true; - this.tpMasternode.Enter += new System.EventHandler(this.tpMasternode_Enter); - this.tpMasternode.Leave += new System.EventHandler(this.tpMasternode_Leave); + // btnNewZAddress // - // tbSearch + this.btnNewZAddress.Location = new System.Drawing.Point(658, 430); + this.btnNewZAddress.Name = "btnNewZAddress"; + this.btnNewZAddress.Size = new System.Drawing.Size(180, 27); + this.btnNewZAddress.TabIndex = 7; + this.btnNewZAddress.Text = "Get new Z address"; + this.btnNewZAddress.UseVisualStyleBackColor = true; + this.btnNewZAddress.Click += new System.EventHandler(this.btnNewZAddress_Click); // - this.tbSearch.ForeColor = System.Drawing.SystemColors.GrayText; - this.tbSearch.Location = new System.Drawing.Point(129, 433); - this.tbSearch.Name = "tbSearch"; - this.tbSearch.Size = new System.Drawing.Size(502, 21); - this.tbSearch.TabIndex = 4; - this.tbSearch.Text = "Masternode address or tx hash"; - this.tbSearch.Enter += new System.EventHandler(this.tbSearch_Enter); - this.tbSearch.Leave += new System.EventHandler(this.tbSearch_Leave); + // btnAddressBook // - // lbUpdateTime + this.btnAddressBook.Location = new System.Drawing.Point(286, 430); + this.btnAddressBook.Name = "btnAddressBook"; + this.btnAddressBook.Size = new System.Drawing.Size(180, 27); + this.btnAddressBook.TabIndex = 7; + this.btnAddressBook.Text = "Address Book"; + this.btnAddressBook.UseVisualStyleBackColor = true; + this.btnAddressBook.Click += new System.EventHandler(this.btnAddressBook_Click); // - this.lbUpdateTime.AutoSize = true; - this.lbUpdateTime.Location = new System.Drawing.Point(690, 436); - this.lbUpdateTime.Name = "lbUpdateTime"; - this.lbUpdateTime.Size = new System.Drawing.Size(29, 15); - this.lbUpdateTime.TabIndex = 3; - this.lbUpdateTime.Text = "(60)"; + // btnNewAddress // - // label16 + this.btnNewAddress.Location = new System.Drawing.Point(472, 430); + this.btnNewAddress.Name = "btnNewAddress"; + this.btnNewAddress.Size = new System.Drawing.Size(180, 27); + this.btnNewAddress.TabIndex = 7; + this.btnNewAddress.Text = "Get new address"; + this.btnNewAddress.UseVisualStyleBackColor = true; + this.btnNewAddress.Click += new System.EventHandler(this.btnNewAddress_Click); // - this.label16.AutoSize = true; - this.label16.Location = new System.Drawing.Point(8, 3); - this.label16.Name = "label16"; - this.label16.Size = new System.Drawing.Size(115, 15); - this.label16.TabIndex = 2; - this.label16.Text = "Your masternode(s)"; + // tpSend // - // label3 + this.tpSend.Controls.Add(this.groupBox2); + this.tpSend.Controls.Add(this.groupBox1); + this.tpSend.ImageIndex = 4; + this.tpSend.Location = new System.Drawing.Point(4, 30); + this.tpSend.Name = "tpSend"; + this.tpSend.Padding = new System.Windows.Forms.Padding(3); + this.tpSend.Size = new System.Drawing.Size(848, 461); + this.tpSend.TabIndex = 1; + this.tpSend.Text = "Send coins"; + this.tpSend.UseVisualStyleBackColor = true; + this.tpSend.Enter += new System.EventHandler(this.tpSend_Enter); // - this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(6, 113); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(95, 15); - this.label3.TabIndex = 2; - this.label3.Text = "All masternodes"; + // groupBox2 // - // btnRefreshMasternode + this.groupBox2.Controls.Add(this.label15); + this.groupBox2.Controls.Add(this.btnSendMany); + this.groupBox2.Controls.Add(this.cbbAddress); + this.groupBox2.Controls.Add(this.cbDefaultFee); + this.groupBox2.Controls.Add(this.cbbFrom); + this.groupBox2.Controls.Add(this.btnSend); + this.groupBox2.Controls.Add(this.btnRefresh); + this.groupBox2.Controls.Add(this.tbAmount); + this.groupBox2.Controls.Add(this.cbUnit); + this.groupBox2.Controls.Add(this.tbFee); + this.groupBox2.Controls.Add(this.tbLabel); + this.groupBox2.Controls.Add(this.tbPayTo); + this.groupBox2.Controls.Add(this.label6); + this.groupBox2.Controls.Add(this.label9); + this.groupBox2.Controls.Add(this.label8); + this.groupBox2.Controls.Add(this.label10); + this.groupBox2.Controls.Add(this.label11); + this.groupBox2.Location = new System.Drawing.Point(9, 6); + this.groupBox2.Name = "groupBox2"; + this.groupBox2.Size = new System.Drawing.Size(831, 261); + this.groupBox2.TabIndex = 17; + this.groupBox2.TabStop = false; + this.groupBox2.Text = "Normal send"; // - this.btnRefreshMasternode.Location = new System.Drawing.Point(637, 403); - this.btnRefreshMasternode.Name = "btnRefreshMasternode"; - this.btnRefreshMasternode.Size = new System.Drawing.Size(97, 23); - this.btnRefreshMasternode.TabIndex = 1; - this.btnRefreshMasternode.Text = "Refresh"; - this.ttStart.SetToolTip(this.btnRefreshMasternode, "Refresh masternode list"); - this.btnRefreshMasternode.UseVisualStyleBackColor = true; - this.btnRefreshMasternode.Click += new System.EventHandler(this.btnRefreshMasternode_Click); + // label15 // - // btnStartAlias + this.label15.Location = new System.Drawing.Point(9, 162); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(816, 63); + this.label15.TabIndex = 9; + this.label15.Text = resources.GetString("label15.Text"); // - this.btnStartAlias.Location = new System.Drawing.Point(521, 403); - this.btnStartAlias.Name = "btnStartAlias"; - this.btnStartAlias.Size = new System.Drawing.Size(110, 23); - this.btnStartAlias.TabIndex = 1; - this.btnStartAlias.Text = "Start Alias"; - this.btnStartAlias.UseVisualStyleBackColor = true; - this.btnStartAlias.Click += new System.EventHandler(this.btnStartAlias_Click); + // btnSendMany // - // btnStartMasternode + this.btnSendMany.Location = new System.Drawing.Point(707, 228); + this.btnSendMany.Name = "btnSendMany"; + this.btnSendMany.Size = new System.Drawing.Size(118, 27); + this.btnSendMany.TabIndex = 16; + this.btnSendMany.Text = "Send Many"; + this.btnSendMany.UseVisualStyleBackColor = true; + this.btnSendMany.Click += new System.EventHandler(this.btnSendMany_Click); // - this.btnStartMasternode.Location = new System.Drawing.Point(405, 403); - this.btnStartMasternode.Name = "btnStartMasternode"; - this.btnStartMasternode.Size = new System.Drawing.Size(110, 23); - this.btnStartMasternode.TabIndex = 1; - this.btnStartMasternode.Text = "Start MN"; - this.btnStartMasternode.UseVisualStyleBackColor = true; - this.btnStartMasternode.Click += new System.EventHandler(this.btnStartMasternode_Click); + // cbbAddress // - // btnEditConfigFile + this.cbbAddress.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cbbAddress.FormattingEnabled = true; + this.cbbAddress.Location = new System.Drawing.Point(584, 48); + this.cbbAddress.Name = "cbbAddress"; + this.cbbAddress.Size = new System.Drawing.Size(241, 23); + this.cbbAddress.Sorted = true; + this.cbbAddress.TabIndex = 2; + this.cbbAddress.SelectedIndexChanged += new System.EventHandler(this.cbbAddress_SelectedIndexChanged); // - this.btnEditConfigFile.Location = new System.Drawing.Point(245, 403); - this.btnEditConfigFile.Name = "btnEditConfigFile"; - this.btnEditConfigFile.Size = new System.Drawing.Size(154, 23); - this.btnEditConfigFile.TabIndex = 1; - this.btnEditConfigFile.Text = "Configure Masternode"; - this.btnEditConfigFile.UseVisualStyleBackColor = true; - this.btnEditConfigFile.Click += new System.EventHandler(this.btnEditConfigFile_Click); + // cbDefaultFee // - // btnGetOutputs + this.cbDefaultFee.AutoSize = true; + this.cbDefaultFee.Checked = true; + this.cbDefaultFee.CheckState = System.Windows.Forms.CheckState.Checked; + this.cbDefaultFee.Location = new System.Drawing.Point(177, 132); + this.cbDefaultFee.Name = "cbDefaultFee"; + this.cbDefaultFee.Size = new System.Drawing.Size(85, 19); + this.cbDefaultFee.TabIndex = 7; + this.cbDefaultFee.Text = "Default fee"; + this.cbDefaultFee.UseVisualStyleBackColor = true; + this.cbDefaultFee.CheckedChanged += new System.EventHandler(this.cbFee_CheckedChanged); // - this.btnGetOutputs.Location = new System.Drawing.Point(129, 403); - this.btnGetOutputs.Name = "btnGetOutputs"; - this.btnGetOutputs.Size = new System.Drawing.Size(110, 23); - this.btnGetOutputs.TabIndex = 1; - this.btnGetOutputs.Text = "Get Outputs"; - this.btnGetOutputs.UseVisualStyleBackColor = true; - this.btnGetOutputs.Click += new System.EventHandler(this.btnGetOutputs_Click); + // cbbFrom // - // btnTurnOffMNMode + this.cbbFrom.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cbbFrom.FormattingEnabled = true; + this.cbbFrom.Location = new System.Drawing.Point(69, 20); + this.cbbFrom.Name = "cbbFrom"; + this.cbbFrom.Size = new System.Drawing.Size(756, 23); + this.cbbFrom.Sorted = true; + this.cbbFrom.TabIndex = 0; + this.cbbFrom.SelectedIndexChanged += new System.EventHandler(this.cbbFrom_SelectedIndexChanged); // - this.btnTurnOffMNMode.Enabled = false; - this.btnTurnOffMNMode.Location = new System.Drawing.Point(7, 432); - this.btnTurnOffMNMode.Name = "btnTurnOffMNMode"; - this.btnTurnOffMNMode.Size = new System.Drawing.Size(116, 23); - this.btnTurnOffMNMode.TabIndex = 1; - this.btnTurnOffMNMode.Text = "Turn Off MN Mode"; - this.ttStart.SetToolTip(this.btnTurnOffMNMode, "Turn off cold masternode option to avoid restarting masternode active time"); - this.btnTurnOffMNMode.UseVisualStyleBackColor = true; - this.btnTurnOffMNMode.Click += new System.EventHandler(this.btnTurnOffMNMode_Click); + // btnSend // - // btnGetMNPrivKey + this.btnSend.Location = new System.Drawing.Point(614, 228); + this.btnSend.Name = "btnSend"; + this.btnSend.Size = new System.Drawing.Size(87, 27); + this.btnSend.TabIndex = 15; + this.btnSend.Text = "Send"; + this.btnSend.UseVisualStyleBackColor = true; + this.btnSend.Click += new System.EventHandler(this.btnSend_Click); // - this.btnGetMNPrivKey.Location = new System.Drawing.Point(7, 403); - this.btnGetMNPrivKey.Name = "btnGetMNPrivKey"; - this.btnGetMNPrivKey.Size = new System.Drawing.Size(116, 23); - this.btnGetMNPrivKey.TabIndex = 1; - this.btnGetMNPrivKey.Text = "Get MN Priv Key"; - this.btnGetMNPrivKey.UseVisualStyleBackColor = true; - this.btnGetMNPrivKey.Click += new System.EventHandler(this.btnGetMNPrivKey_Click); + // btnRefresh // - // dtgGlobalMN + this.btnRefresh.Location = new System.Drawing.Point(521, 228); + this.btnRefresh.Name = "btnRefresh"; + this.btnRefresh.Size = new System.Drawing.Size(87, 27); + this.btnRefresh.TabIndex = 14; + this.btnRefresh.Text = "Refresh"; + this.ttStart.SetToolTip(this.btnRefresh, "Refresh address value"); + this.btnRefresh.UseVisualStyleBackColor = true; + this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click); // - this.dtgGlobalMN.AutoGenerateColumns = false; - this.dtgGlobalMN.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dtgGlobalMN.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.rankDataGridViewTextBoxColumn, - this.addrDataGridViewTextBoxColumn, - this.versionDataGridViewTextBoxColumn, - this.statusDataGridViewTextBoxColumn, - this.activetimeDataGridViewTextBoxColumn, - this.lastseenDataGridViewTextBoxColumn, - this.lastpaidDataGridViewTextBoxColumn, - this.txhashDataGridViewTextBoxColumn, - this.ipDataGridViewTextBoxColumn}); - this.dtgGlobalMN.DataSource = this.masternodeDetailConvertedBindingSource; - this.dtgGlobalMN.Location = new System.Drawing.Point(8, 131); - this.dtgGlobalMN.Name = "dtgGlobalMN"; - this.dtgGlobalMN.Size = new System.Drawing.Size(832, 266); - this.dtgGlobalMN.TabIndex = 0; - this.dtgGlobalMN.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dtgAddress_CellDoubleClick); - this.dtgGlobalMN.DataBindingComplete += new System.Windows.Forms.DataGridViewBindingCompleteEventHandler(this.dtgGlobalMN_DataBindingComplete); - this.dtgGlobalMN.MouseClick += new System.Windows.Forms.MouseEventHandler(this.dtgAddress_MouseClick); + // tbAmount // - // rankDataGridViewTextBoxColumn + this.tbAmount.Location = new System.Drawing.Point(69, 103); + this.tbAmount.Name = "tbAmount"; + this.tbAmount.Size = new System.Drawing.Size(102, 21); + this.tbAmount.TabIndex = 4; + this.tbAmount.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.tbAmount_KeyPress); // - this.rankDataGridViewTextBoxColumn.DataPropertyName = "rank"; - this.rankDataGridViewTextBoxColumn.HeaderText = "rank"; - this.rankDataGridViewTextBoxColumn.Name = "rankDataGridViewTextBoxColumn"; + // cbUnit // - // addrDataGridViewTextBoxColumn + this.cbUnit.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cbUnit.FormattingEnabled = true; + this.cbUnit.Items.AddRange(new object[] { + "SNG", + "mSNG"}); + this.cbUnit.Location = new System.Drawing.Point(177, 103); + this.cbUnit.Name = "cbUnit"; + this.cbUnit.Size = new System.Drawing.Size(100, 23); + this.cbUnit.TabIndex = 5; // - this.addrDataGridViewTextBoxColumn.DataPropertyName = "addr"; - this.addrDataGridViewTextBoxColumn.HeaderText = "addr"; - this.addrDataGridViewTextBoxColumn.Name = "addrDataGridViewTextBoxColumn"; + // tbFee // - // versionDataGridViewTextBoxColumn + this.tbFee.Enabled = false; + this.tbFee.Location = new System.Drawing.Point(69, 130); + this.tbFee.Name = "tbFee"; + this.tbFee.Size = new System.Drawing.Size(102, 21); + this.tbFee.TabIndex = 6; + this.tbFee.Text = "0.0001"; + this.tbFee.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.tbAmount_KeyPress); // - this.versionDataGridViewTextBoxColumn.DataPropertyName = "version"; - this.versionDataGridViewTextBoxColumn.HeaderText = "version"; - this.versionDataGridViewTextBoxColumn.Name = "versionDataGridViewTextBoxColumn"; + // tbLabel + // + this.tbLabel.Location = new System.Drawing.Point(69, 76); + this.tbLabel.Name = "tbLabel"; + this.tbLabel.Size = new System.Drawing.Size(756, 21); + this.tbLabel.TabIndex = 3; + // + // tbPayTo + // + this.tbPayTo.Location = new System.Drawing.Point(69, 49); + this.tbPayTo.Name = "tbPayTo"; + this.tbPayTo.Size = new System.Drawing.Size(507, 21); + this.tbPayTo.TabIndex = 1; + this.tbPayTo.Leave += new System.EventHandler(this.tbPayTo_Leave); + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.tbShieldFrom); + this.groupBox1.Controls.Add(this.tbShieldUtxo); + this.groupBox1.Controls.Add(this.cbShieldDefaultFee); + this.groupBox1.Controls.Add(this.tbShieldFee); + this.groupBox1.Controls.Add(this.tbShieldTo); + this.groupBox1.Controls.Add(this.transparentLabel3); + this.groupBox1.Controls.Add(this.transparentLabel6); + this.groupBox1.Controls.Add(this.transparentLabel5); + this.groupBox1.Controls.Add(this.btnShield); + this.groupBox1.Controls.Add(this.transparentLabel4); + this.groupBox1.Location = new System.Drawing.Point(9, 273); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(831, 182); + this.groupBox1.TabIndex = 10; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "Shield coinbase"; // - // statusDataGridViewTextBoxColumn + // tbShieldFrom // - this.statusDataGridViewTextBoxColumn.DataPropertyName = "status"; - this.statusDataGridViewTextBoxColumn.HeaderText = "status"; - this.statusDataGridViewTextBoxColumn.Name = "statusDataGridViewTextBoxColumn"; + this.tbShieldFrom.ForeColor = System.Drawing.SystemColors.GrayText; + this.tbShieldFrom.Location = new System.Drawing.Point(69, 20); + this.tbShieldFrom.Name = "tbShieldFrom"; + this.tbShieldFrom.Size = new System.Drawing.Size(756, 21); + this.tbShieldFrom.TabIndex = 8; + this.tbShieldFrom.Text = "Public address"; + this.tbShieldFrom.Enter += new System.EventHandler(this.tbShieldFrom_Enter); + this.tbShieldFrom.Leave += new System.EventHandler(this.tbShieldFrom_Leave); // - // activetimeDataGridViewTextBoxColumn + // tbShieldUtxo // - this.activetimeDataGridViewTextBoxColumn.DataPropertyName = "activetime"; - this.activetimeDataGridViewTextBoxColumn.HeaderText = "activetime"; - this.activetimeDataGridViewTextBoxColumn.Name = "activetimeDataGridViewTextBoxColumn"; + this.tbShieldUtxo.ForeColor = System.Drawing.SystemColors.GrayText; + this.tbShieldUtxo.Location = new System.Drawing.Point(69, 74); + this.tbShieldUtxo.Name = "tbShieldUtxo"; + this.tbShieldUtxo.Size = new System.Drawing.Size(756, 21); + this.tbShieldUtxo.TabIndex = 10; + this.tbShieldUtxo.Text = "utxo to shield"; + this.tbShieldUtxo.Enter += new System.EventHandler(this.tbShieldUtxo_Enter); + this.tbShieldUtxo.Leave += new System.EventHandler(this.tbShieldUtxo_Leave); // - // lastseenDataGridViewTextBoxColumn + // cbShieldDefaultFee // - this.lastseenDataGridViewTextBoxColumn.DataPropertyName = "lastseen"; - this.lastseenDataGridViewTextBoxColumn.HeaderText = "lastseen"; - this.lastseenDataGridViewTextBoxColumn.Name = "lastseenDataGridViewTextBoxColumn"; + this.cbShieldDefaultFee.AutoSize = true; + this.cbShieldDefaultFee.Checked = true; + this.cbShieldDefaultFee.CheckState = System.Windows.Forms.CheckState.Checked; + this.cbShieldDefaultFee.Location = new System.Drawing.Point(740, 103); + this.cbShieldDefaultFee.Name = "cbShieldDefaultFee"; + this.cbShieldDefaultFee.Size = new System.Drawing.Size(85, 19); + this.cbShieldDefaultFee.TabIndex = 12; + this.cbShieldDefaultFee.Text = "Default fee"; + this.cbShieldDefaultFee.UseVisualStyleBackColor = true; + this.cbShieldDefaultFee.CheckedChanged += new System.EventHandler(this.cbShieldDefaultFee_CheckedChanged); // - // lastpaidDataGridViewTextBoxColumn + // tbShieldFee // - this.lastpaidDataGridViewTextBoxColumn.DataPropertyName = "lastpaid"; - this.lastpaidDataGridViewTextBoxColumn.HeaderText = "lastpaid"; - this.lastpaidDataGridViewTextBoxColumn.Name = "lastpaidDataGridViewTextBoxColumn"; + this.tbShieldFee.Enabled = false; + this.tbShieldFee.Location = new System.Drawing.Point(69, 101); + this.tbShieldFee.Name = "tbShieldFee"; + this.tbShieldFee.Size = new System.Drawing.Size(665, 21); + this.tbShieldFee.TabIndex = 11; + this.tbShieldFee.Text = "0.0001"; + this.tbShieldFee.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.tbAmount_KeyPress); + this.tbShieldFee.Leave += new System.EventHandler(this.tbPayTo_Leave); // - // txhashDataGridViewTextBoxColumn + // tbShieldTo // - this.txhashDataGridViewTextBoxColumn.DataPropertyName = "txhash"; - this.txhashDataGridViewTextBoxColumn.HeaderText = "txhash"; - this.txhashDataGridViewTextBoxColumn.Name = "txhashDataGridViewTextBoxColumn"; + this.tbShieldTo.ForeColor = System.Drawing.SystemColors.GrayText; + this.tbShieldTo.Location = new System.Drawing.Point(69, 47); + this.tbShieldTo.Name = "tbShieldTo"; + this.tbShieldTo.Size = new System.Drawing.Size(756, 21); + this.tbShieldTo.TabIndex = 9; + this.tbShieldTo.Text = "Private address"; + this.tbShieldTo.Enter += new System.EventHandler(this.tbShieldTo_Enter); + this.tbShieldTo.Leave += new System.EventHandler(this.tbShieldTo_Leave); // - // ipDataGridViewTextBoxColumn + // tpOverview // - this.ipDataGridViewTextBoxColumn.DataPropertyName = "ip"; - this.ipDataGridViewTextBoxColumn.HeaderText = "ip"; - this.ipDataGridViewTextBoxColumn.Name = "ipDataGridViewTextBoxColumn"; + this.tpOverview.BackgroundImage = global::SimpleWallet.Properties.Resources.background_bottom; + this.tpOverview.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.tpOverview.Controls.Add(this.pbTransaction4); + this.tpOverview.Controls.Add(this.pbTransaction3); + this.tpOverview.Controls.Add(this.pbTransaction2); + this.tpOverview.Controls.Add(this.pbTransaction1); + this.tpOverview.Controls.Add(this.lbAddress4); + this.tpOverview.Controls.Add(this.lbAddress3); + this.tpOverview.Controls.Add(this.lbAddress2); + this.tpOverview.Controls.Add(this.lbAddress1); + this.tpOverview.Controls.Add(this.lbValue4); + this.tpOverview.Controls.Add(this.lbValue3); + this.tpOverview.Controls.Add(this.lbValue2); + this.tpOverview.Controls.Add(this.lbValue1); + this.tpOverview.Controls.Add(this.lbTime4); + this.tpOverview.Controls.Add(this.lbTime3); + this.tpOverview.Controls.Add(this.lbTime2); + this.tpOverview.Controls.Add(this.lbTime1); + this.tpOverview.Controls.Add(this.label5); + this.tpOverview.Controls.Add(this.label12); + this.tpOverview.Controls.Add(this.label7); + this.tpOverview.Controls.Add(this.label4); + this.tpOverview.Controls.Add(this.lbUnconfirmed); + this.tpOverview.Controls.Add(this.label2); + this.tpOverview.Controls.Add(this.lbTransparent); + this.tpOverview.Controls.Add(this.tlTransparentBalance); + this.tpOverview.Controls.Add(this.lbLocked); + this.tpOverview.Controls.Add(this.lbPrivate); + this.tpOverview.Controls.Add(this.transparentLabel2); + this.tpOverview.Controls.Add(this.transparentLabel1); + this.tpOverview.Controls.Add(this.lbTotal); + this.tpOverview.Controls.Add(this.label1); + this.tpOverview.Controls.Add(this.lbBestHash); + this.tpOverview.Controls.Add(this.lbBestTime); + this.tpOverview.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.tpOverview.ImageIndex = 2; + this.tpOverview.Location = new System.Drawing.Point(4, 30); + this.tpOverview.Name = "tpOverview"; + this.tpOverview.Padding = new System.Windows.Forms.Padding(3); + this.tpOverview.Size = new System.Drawing.Size(848, 461); + this.tpOverview.TabIndex = 0; + this.tpOverview.Text = "Overview"; + this.tpOverview.UseVisualStyleBackColor = true; // - // masternodeDetailConvertedBindingSource + // pbTransaction4 // - this.masternodeDetailConvertedBindingSource.DataSource = typeof(SimpleWallet.Types.MasternodeDetailConverted); + this.pbTransaction4.BackColor = System.Drawing.Color.Transparent; + this.pbTransaction4.Location = new System.Drawing.Point(435, 227); + this.pbTransaction4.Name = "pbTransaction4"; + this.pbTransaction4.Size = new System.Drawing.Size(58, 58); + this.pbTransaction4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.pbTransaction4.TabIndex = 10; + this.pbTransaction4.TabStop = false; + this.pbTransaction4.Visible = false; // - // dtgMasternode + // pbTransaction3 // - this.dtgMasternode.AutoGenerateColumns = false; - this.dtgMasternode.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dtgMasternode.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.aliasDataGridViewTextBoxColumn, - this.ipAddressDataGridViewTextBoxColumn, - this.privKeyDataGridViewTextBoxColumn, - this.txHashDataGridViewTextBoxColumn1, - this.indexDataGridViewTextBoxColumn}); - this.dtgMasternode.DataSource = this.masternodeBindingSource2; - this.dtgMasternode.Location = new System.Drawing.Point(8, 21); - this.dtgMasternode.Name = "dtgMasternode"; - this.dtgMasternode.Size = new System.Drawing.Size(832, 89); - this.dtgMasternode.TabIndex = 0; - this.dtgMasternode.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dtgAddress_CellDoubleClick); - this.dtgMasternode.MouseClick += new System.Windows.Forms.MouseEventHandler(this.dtgMasternode_MouseClick); + this.pbTransaction3.BackColor = System.Drawing.Color.Transparent; + this.pbTransaction3.Location = new System.Drawing.Point(435, 163); + this.pbTransaction3.Name = "pbTransaction3"; + this.pbTransaction3.Size = new System.Drawing.Size(58, 58); + this.pbTransaction3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.pbTransaction3.TabIndex = 10; + this.pbTransaction3.TabStop = false; + this.pbTransaction3.Visible = false; // - // tpDebug + // pbTransaction2 // - this.tpDebug.Controls.Add(this.rtbError); - this.tpDebug.Location = new System.Drawing.Point(4, 30); - this.tpDebug.Name = "tpDebug"; - this.tpDebug.Padding = new System.Windows.Forms.Padding(3); - this.tpDebug.Size = new System.Drawing.Size(848, 461); - this.tpDebug.TabIndex = 5; - this.tpDebug.Text = "Debug"; - this.tpDebug.UseVisualStyleBackColor = true; + this.pbTransaction2.BackColor = System.Drawing.Color.Transparent; + this.pbTransaction2.Location = new System.Drawing.Point(435, 99); + this.pbTransaction2.Name = "pbTransaction2"; + this.pbTransaction2.Size = new System.Drawing.Size(58, 58); + this.pbTransaction2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.pbTransaction2.TabIndex = 10; + this.pbTransaction2.TabStop = false; + this.pbTransaction2.Visible = false; // - // rtbError + // pbTransaction1 // - this.rtbError.Location = new System.Drawing.Point(7, 7); - this.rtbError.Name = "rtbError"; - this.rtbError.ReadOnly = true; - this.rtbError.Size = new System.Drawing.Size(831, 444); - this.rtbError.TabIndex = 11; - this.rtbError.Text = ""; + this.pbTransaction1.BackColor = System.Drawing.Color.Transparent; + this.pbTransaction1.Location = new System.Drawing.Point(435, 35); + this.pbTransaction1.Name = "pbTransaction1"; + this.pbTransaction1.Size = new System.Drawing.Size(58, 58); + this.pbTransaction1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.pbTransaction1.TabIndex = 10; + this.pbTransaction1.TabStop = false; + this.pbTransaction1.Visible = false; // // imgList // @@ -1050,6 +993,10 @@ private void InitializeComponent() this.imgList.Images.SetKeyName(4, "send.png"); this.imgList.Images.SetKeyName(5, "masternodes.png"); // + // addressBookBindingSource + // + this.addressBookBindingSource.DataSource = typeof(SimpleWallet.Types.AddressBook); + // // pbPercent // this.pbPercent.Location = new System.Drawing.Point(3, 525); @@ -1061,16 +1008,19 @@ private void InitializeComponent() // // menuStrip1 // + this.menuStrip1.BackColor = System.Drawing.SystemColors.Control; + this.menuStrip1.Dock = System.Windows.Forms.DockStyle.None; this.menuStrip1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.menuStrip1.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.fileToolStripMenuItem, this.walletToolStripMenuItem, this.toolsToolStripMenuItem}); - this.menuStrip1.Location = new System.Drawing.Point(0, 0); + this.menuStrip1.Location = new System.Drawing.Point(0, -3); this.menuStrip1.Name = "menuStrip1"; this.menuStrip1.Padding = new System.Windows.Forms.Padding(7, 2, 0, 2); this.menuStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.System; - this.menuStrip1.Size = new System.Drawing.Size(856, 24); + this.menuStrip1.Size = new System.Drawing.Size(168, 24); this.menuStrip1.TabIndex = 7; this.menuStrip1.Text = "menuStrip1"; // @@ -1223,9 +1173,16 @@ private void InitializeComponent() // this.masternodeBindingSource1.DataSource = typeof(SimpleWallet.Types.Masternode); // - // masternodeBindingSource2 + // pictureBox1 // - this.masternodeBindingSource2.DataSource = typeof(SimpleWallet.Types.Masternode); + this.pictureBox1.BackgroundImage = global::SimpleWallet.Properties.Resources.sng_main; + this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; + this.pictureBox1.InitialImage = global::SimpleWallet.Properties.Resources.sng_main; + this.pictureBox1.Location = new System.Drawing.Point(684, -2); + this.pictureBox1.Name = "pictureBox1"; + this.pictureBox1.Size = new System.Drawing.Size(168, 58); + this.pictureBox1.TabIndex = 8; + this.pictureBox1.TabStop = false; // // lbAddress4 // @@ -1721,41 +1678,12 @@ private void InitializeComponent() // this.typesBindingSource.DataSource = typeof(SimpleWallet.Types); // - // aliasDataGridViewTextBoxColumn - // - this.aliasDataGridViewTextBoxColumn.DataPropertyName = "alias"; - this.aliasDataGridViewTextBoxColumn.HeaderText = "alias"; - this.aliasDataGridViewTextBoxColumn.Name = "aliasDataGridViewTextBoxColumn"; - // - // ipAddressDataGridViewTextBoxColumn - // - this.ipAddressDataGridViewTextBoxColumn.DataPropertyName = "ipAddress"; - this.ipAddressDataGridViewTextBoxColumn.HeaderText = "ipAddress"; - this.ipAddressDataGridViewTextBoxColumn.Name = "ipAddressDataGridViewTextBoxColumn"; - // - // privKeyDataGridViewTextBoxColumn - // - this.privKeyDataGridViewTextBoxColumn.DataPropertyName = "privKey"; - this.privKeyDataGridViewTextBoxColumn.HeaderText = "privKey"; - this.privKeyDataGridViewTextBoxColumn.Name = "privKeyDataGridViewTextBoxColumn"; - // - // txHashDataGridViewTextBoxColumn1 - // - this.txHashDataGridViewTextBoxColumn1.DataPropertyName = "txHash"; - this.txHashDataGridViewTextBoxColumn1.HeaderText = "txHash"; - this.txHashDataGridViewTextBoxColumn1.Name = "txHashDataGridViewTextBoxColumn1"; - // - // indexDataGridViewTextBoxColumn - // - this.indexDataGridViewTextBoxColumn.DataPropertyName = "index"; - this.indexDataGridViewTextBoxColumn.HeaderText = "index"; - this.indexDataGridViewTextBoxColumn.Name = "indexDataGridViewTextBoxColumn"; - // // Start // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(856, 549); + this.Controls.Add(this.pictureBox1); this.Controls.Add(this.pbPercent); this.Controls.Add(this.pbStatus); this.Controls.Add(this.tcMain); @@ -1773,33 +1701,29 @@ private void InitializeComponent() this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.Start_FormClosed); this.Load += new System.EventHandler(this.Start_Load); this.tcMain.ResumeLayout(false); + this.tpMasternode.ResumeLayout(false); + this.tpMasternode.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dtgGlobalMN)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.masternodeDetailConvertedBindingSource)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.dtgMasternode)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.masternodeBindingSource2)).EndInit(); + this.tpTransactions.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.dtgTransactions)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.transactionConvertedBindingSource)).EndInit(); + this.tpReceive.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.dtgAddress)).EndInit(); + this.tpSend.ResumeLayout(false); + this.groupBox2.ResumeLayout(false); + this.groupBox2.PerformLayout(); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); this.tpOverview.ResumeLayout(false); this.tpOverview.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.pbTransaction4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pbTransaction3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pbTransaction2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pbTransaction1)).EndInit(); - this.tpSend.ResumeLayout(false); - this.groupBox2.ResumeLayout(false); - this.groupBox2.PerformLayout(); - this.groupBox1.ResumeLayout(false); - this.groupBox1.PerformLayout(); - this.tpReceive.ResumeLayout(false); - this.tpReceive.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dtgAddress)).EndInit(); - this.tpTransactions.ResumeLayout(false); - this.tpTransactions.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dtgTransactions)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.transactionConvertedBindingSource)).EndInit(); - this.tpAddressBock.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.dtgAddressBook)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.addressBookBindingSource)).EndInit(); - this.tpMasternode.ResumeLayout(false); - this.tpMasternode.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dtgGlobalMN)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.masternodeDetailConvertedBindingSource)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.dtgMasternode)).EndInit(); - this.tpDebug.ResumeLayout(false); this.menuStrip1.ResumeLayout(false); this.menuStrip1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.pbStatus)).EndInit(); @@ -1807,7 +1731,7 @@ private void InitializeComponent() ((System.ComponentModel.ISupportInitialize)(this.masternodeListBindingSource)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.masternodeBindingSource)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.masternodeBindingSource1)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.masternodeBindingSource2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.typesBindingSource)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); @@ -1829,7 +1753,6 @@ private void InitializeComponent() private TransparentLabel label1; private System.Windows.Forms.TabPage tpReceive; private System.Windows.Forms.TabPage tpTransactions; - private System.Windows.Forms.TabPage tpAddressBock; private System.Windows.Forms.PictureBox pbSignal; private System.Windows.Forms.PictureBox pbStatus; private System.Windows.Forms.ComboBox cbUnit; @@ -1850,8 +1773,6 @@ private void InitializeComponent() private System.Windows.Forms.Button btnNewZAddress; private System.Windows.Forms.Button btnNewAddress; private System.Windows.Forms.Button btnRefresh; - private System.Windows.Forms.TabPage tpDebug; - private System.Windows.Forms.RichTextBox rtbError; private System.Windows.Forms.MenuStrip menuStrip1; private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem walletToolStripMenuItem; @@ -1883,8 +1804,6 @@ private void InitializeComponent() private System.Windows.Forms.PictureBox pbTransaction3; private System.Windows.Forms.PictureBox pbTransaction2; private System.Windows.Forms.DataGridView dtgTransactions; - private System.Windows.Forms.Label label13; - private System.Windows.Forms.Label label14; private System.Windows.Forms.Label label15; private System.Windows.Forms.DataGridView dtgAddress; private System.Windows.Forms.ToolStripMenuItem toolsToolStripMenuItem; @@ -1896,8 +1815,6 @@ private void InitializeComponent() private TransparentLabel transparentLabel1; private System.Windows.Forms.Button btnRescan; private System.Windows.Forms.Button btnReindex; - private System.Windows.Forms.DataGridView dtgAddressBook; - private System.Windows.Forms.Button btnNewAddressBook; private System.Windows.Forms.ComboBox cbbAddress; private System.Windows.Forms.TabPage tpMasternode; private System.Windows.Forms.Button btnEditConfigFile; @@ -1918,12 +1835,6 @@ private void InitializeComponent() private System.Windows.Forms.ToolStripMenuItem enableAutoBackupWalletToolStripMenuItem; private System.Windows.Forms.BindingSource masternodeListBindingSource; private System.Windows.Forms.BindingSource typesBindingSource; - private System.Windows.Forms.DataGridViewTextBoxColumn categoryDataGridViewTextBoxColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn confirmationsDataGridViewTextBoxColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn amountDataGridViewTextBoxColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn timeDataGridViewTextBoxColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn addressDataGridViewTextBoxColumn; - private System.Windows.Forms.BindingSource transactionConvertedBindingSource; private System.Windows.Forms.DataGridViewTextBoxColumn rankDataGridViewTextBoxColumn; private System.Windows.Forms.DataGridViewTextBoxColumn addrDataGridViewTextBoxColumn; private System.Windows.Forms.DataGridViewTextBoxColumn versionDataGridViewTextBoxColumn; @@ -1950,8 +1861,6 @@ private void InitializeComponent() private SimpleWallet.TransparentButton btnShield; private System.Windows.Forms.GroupBox groupBox2; private System.Windows.Forms.BindingSource addressBookBindingSource; - private System.Windows.Forms.DataGridViewTextBoxColumn labelDataGridViewTextBoxColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn addressDataGridViewTextBoxColumn1; private System.Windows.Forms.BindingSource masternodeBindingSource; private System.Windows.Forms.BindingSource masternodeBindingSource2; private System.Windows.Forms.BindingSource masternodeBindingSource1; @@ -1960,5 +1869,14 @@ private void InitializeComponent() private System.Windows.Forms.DataGridViewTextBoxColumn privKeyDataGridViewTextBoxColumn; private System.Windows.Forms.DataGridViewTextBoxColumn txHashDataGridViewTextBoxColumn1; private System.Windows.Forms.DataGridViewTextBoxColumn indexDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn categoryDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn confirmationsDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn amountDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn timeDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn addressDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn txidDataGridViewTextBoxColumn; + private System.Windows.Forms.BindingSource transactionConvertedBindingSource; + private System.Windows.Forms.Button btnAddressBook; + private System.Windows.Forms.PictureBox pictureBox1; } } \ No newline at end of file diff --git a/SimpleWallet/Start.cs b/SimpleWallet/Start.cs index 09c39c4..f648b55 100644 --- a/SimpleWallet/Start.cs +++ b/SimpleWallet/Start.cs @@ -98,14 +98,10 @@ public Start() dtgTransactions.Columns[4].HeaderText = "Send to"; dtgTransactions.Columns[4].Width = dtgTransactions.Width * 4 / 10; dtgTransactions.Columns[4].ReadOnly = true; - - dtgAddressBook.RowHeadersVisible = false; - dtgAddressBook.Columns[0].HeaderText = "Label"; - dtgAddressBook.Columns[0].Width = dtgAddressBook.Width * 4 / 10; - dtgAddressBook.Columns[0].ReadOnly = true; - dtgAddressBook.Columns[1].HeaderText = "Address"; - dtgAddressBook.Columns[1].Width = dtgAddressBook.Width * 6 / 10; - dtgAddressBook.Columns[1].ReadOnly = true; + dtgTransactions.Columns[5].HeaderText = "Txid"; + dtgTransactions.Columns[5].Width = dtgTransactions.Width * 4 / 10; + dtgTransactions.Columns[5].ReadOnly = true; + dtgTransactions.Columns[5].Visible = false; dtgMasternode.RowHeadersVisible = false; dtgMasternode.Columns[0].HeaderText = "Alias"; @@ -155,11 +151,7 @@ public Start() cbUnit.SelectedIndex = 0; -#if !DEBUG - tcMain.TabPages.Remove(tpDebug); -#endif tcMain.TabPages.Remove(tpMasternode); - tcMain.TabPages.Remove(tpAddressBock); tcMain.TabPages.Remove(tpOverview); tcMain.TabPages.Remove(tpSend); tcMain.TabPages.Remove(tpReceive); @@ -168,7 +160,6 @@ public Start() tcMain.TabPages.Add(tpSend); tcMain.TabPages.Add(tpReceive); tcMain.TabPages.Add(tpTransactions); - tcMain.TabPages.Add(tpAddressBock); tcMain.TabPages.Add(tpMasternode); } @@ -227,12 +218,11 @@ private void Start_Load(object sender, EventArgs e) //populate balance populateBalance(walletDic); - //populate addressbook - populateAddressBook(readAddressBook()); - dtgTransactions.Invoke(new Action(() => dtgTransactions.Visible = false)); - book = readAddressBook(); + book = api.readAddressBook(); + + loadAddressBook(book); populateMasternodes(); @@ -265,7 +255,6 @@ private void Start_Load(object sender, EventArgs e) btnTurnOffMNMode.Invoke(new Action(() => btnTurnOffMNMode.Enabled = false)); } - dtgAddressBook.DataError += Dtg_DataError; Task.Run(() => startSync()); Task.Run(() => startCheckMasternodeList()); //Task.Run(() => startCheckBalance()); @@ -759,122 +748,6 @@ void sortDtg(DataGridView dtg, String sortName) { dtg.Invoke(new Action(() => dtg.Sort(dtg.Columns[sortName], ListSortDirection.Ascending))); } - - void populateAddressBook(List datas) - { - - dtgAddressBook.Invoke(new Action(() => - { - dtgAddressBook.AutoGenerateColumns = true; - dtgAddressBook.DataSource = new BindingList(datas); - })); - - loadWallet(); - } - - void addAddressBook(Types.AddressBook input) - { - String label = input.label; - - DataGridViewRow row = new DataGridViewRow(); - try - { - row = dtgAddressBook.Rows - .Cast() - .Where(r => r.Cells[0].Value.ToString().Equals(label)) - .First(); - - MessageBox.Show("Duplicated label"); - } - catch (Exception ex) - { - try - { - book.Add(new Types.AddressBook(label, input.address)); - saveAddressBook(book); - loadAddressBook(book); - book.Sort(delegate(Types.AddressBook x, Types.AddressBook y) - { - return x.label.CompareTo(y.label); - }); - dtgAddressBook.Invoke(new Action(() => - { - dtgAddressBook.AutoGenerateColumns = true; - dtgAddressBook.DataSource = new BindingList(book); - })); - } - catch (Exception ex1) - { - if (shouldRestart) - { - return; - } - addTextToRtb(rtbError, "Exception: " + ex.Message + "\n"); - } - } - } - - void editAddressBook(Types.AddressBook input, DataGridView dtg, int index, string oldLabel) - { - try - { - DataGridViewRow row = new DataGridViewRow(); - row = dtgAddressBook.Rows - .Cast() - .Where(r => r.Cells[0].Value.ToString().Equals(input.label)) - .First(); - - if (row.Index != index) - { - MessageBox.Show("Duplicated label"); - return; - } - } - catch (Exception ex) - { - } - book.RemoveAll(x => x.label == oldLabel); - book.Add(new Types.AddressBook(input.label, input.address)); - book.Sort(delegate(Types.AddressBook x, Types.AddressBook y) - { - return x.label.CompareTo(y.label); - }); - dtgAddressBook.Invoke(new Action(() => - { - dtgAddressBook.AutoGenerateColumns = true; - dtgAddressBook.DataSource = new BindingList(book); - })); - saveAddressBook(book); - Task.Run(() => loadAddressBook(book)); - } - - void saveAddressBook(List addr) - { - addr.Sort(delegate(Types.AddressBook x, Types.AddressBook y) - { - return x.label.CompareTo(y.label); - }); - Dictionary> jsonData = new Dictionary>(); - jsonData["addressbook"] = addr; - String json = JsonConvert.SerializeObject(jsonData, Formatting.Indented); - File.WriteAllText(Types.addressLabel, json); - } - - List readAddressBook() - { - List rtn = new List(); - if (!File.Exists(Types.addressLabel)) - File.Create(Types.addressLabel).Close(); - String data = File.ReadAllText(Types.addressLabel); - dynamic parse = JsonConvert.DeserializeObject(data); - if (parse != null && parse.addressbook != null) - { - rtn = new List(parse.addressbook); - } - rtn = rtn.OrderBy(o => o.label).ToList(); - return rtn; - } - List readMasternodeList(String mns) { mns = "{\n" + @@ -1140,7 +1013,7 @@ void populateTransactions(List datas, out List addres String amount = t.amount.TrimStart('-'); rtn.Add(new Types.TransactionConverted(t.category == "send" ? "<==" : "==>", Convert.ToInt32(t.confirmations) >= 5 ? "YES" : "NO (" + t.confirmations + ")", - amount, strTime, t.address == null ? "Private address" : t.address)); + amount, strTime, t.address == null ? "Private address" : t.address, t.txid)); } return rtn; } @@ -1476,9 +1349,8 @@ private void dtgAddress_CellDoubleClick(object sender, DataGridViewCellEventArgs { if (((DataGridView)(sender)).CurrentCell.Value != null) { - String text = ((DataGridView)(sender)).CurrentCell.Value.ToString(); - Clipboard.SetText(text); - MessageBox.Show("Copied \"" + text + "\" to clipboard"); + QrCode qr = new QrCode(((DataGridView)(sender)).CurrentCell.Value.ToString()); + qr.ShowDialog(); } } @@ -1537,14 +1409,14 @@ private void btnReindex_Click(object sender, EventArgs e) private void btnNewAddressBook_Click(object sender, EventArgs e) { - NewLabel newLb = new NewLabel(); - newLb.ShowDialog(); - if(newLb.edit) - { - String name = newLb.name; - String address = newLb.address; - addAddressBook(new Types.AddressBook(name, address)); - } + //NewLabel newLb = new NewLabel(); + //newLb.ShowDialog(); + //if(newLb.edit) + //{ + // String name = newLb.name; + // String address = newLb.address; + // addAddressBook(new Types.AddressBook(name, address)); + //} } private void dtgAdressBook_CellDoubleClick(object sender, DataGridViewCellEventArgs e) @@ -1833,6 +1705,20 @@ private void dtgGlobalMN_DataBindingComplete(object sender, DataGridViewBindingC } catch (Exception ex) { } } + + foreach(string s in walletDic.Keys) + { + try + { + row = ((DataGridView)sender).Rows + .Cast() + .Where(r => r.Cells[1].Value.ToString().Equals(s)) + .First(); + + row.DefaultCellStyle.BackColor = Color.LightGreen; + } + catch (Exception ex) { } + } return; } @@ -1988,38 +1874,6 @@ private void cbShieldDefaultFee_CheckedChanged(object sender, EventArgs e) } } - private void btnDeleteAddressLabel_Click(object sender, EventArgs e) - { - try - { - if (dtgAddressBook.CurrentCell != null && dtgAddressBook.Rows[dtgAddressBook.CurrentCell.RowIndex].Cells[0].Value != null) - { - String name = dtgAddressBook.Rows[dtgAddressBook.CurrentCell.RowIndex].Cells[0].Value.ToString(); - if (!String.IsNullOrEmpty(name)) - { - DialogResult dialogResult = MessageBox.Show(@"Do you want to delete " + name, "ATTENTION!!!", MessageBoxButtons.YesNo); - if (dialogResult == DialogResult.Yes) - { - List data = File.ReadAllLines(Types.addressLabel).ToList(); - int index = data.FindIndex(x => x.StartsWith(name)); - if (index >= 0) - { - data.RemoveAt(index); - } - File.WriteAllLines(Types.addressLabel, data); - //populate addressbook - populateAddressBook(readAddressBook()); - } - } - } - else - { - MessageBox.Show("Cannot delete empty String"); - } - } - catch (Exception ex) { } - } - private void tbShieldFrom_Enter(object sender, EventArgs e) { if (tbShieldFrom.Text == "Public address") @@ -2156,14 +2010,6 @@ private void ctxMenu_Copy(Object sender, System.EventArgs e) Clipboard.SetText(text); } } - else if (item.type == Types.CtxMenuType.ADDRESS_BOOK) - { - if (dtgAddressBook.CurrentCell != null && dtgAddressBook.CurrentCell.Value != null) - { - String text = dtgAddressBook.CurrentCell.Value.ToString(); - Clipboard.SetText(text); - } - } else if (item.type == Types.CtxMenuType.WALLET) { if (dtgAddress.CurrentCell != null && dtgAddress.CurrentCell.Value != null) @@ -2224,19 +2070,6 @@ private void ctxMenu_Edit(Object sender, System.EventArgs e) populateMasternodes(); } - else if (item.type == Types.CtxMenuType.ADDRESS_BOOK) - { - DataGridView dtg = dtgAddressBook; - int index = dtg.CurrentRow.Index; - String label = dtg.Rows[index].Cells[0].Value.ToString(); - String address = dtg.Rows[index].Cells[1].Value.ToString(); - NewLabel newLb = new NewLabel(label, address); - newLb.ShowDialog(); - if (newLb.edit) - { - editAddressBook(new Types.AddressBook(newLb.name, newLb.address), dtg, index, label); - } - } } private void ctxMenu_Delete(Object sender, System.EventArgs e) @@ -2284,52 +2117,37 @@ private void ctxMenu_Delete(Object sender, System.EventArgs e) MessageBox.Show("Delete Masternode error"); } } - else if(item.type == Types.CtxMenuType.ADDRESS_BOOK) + } + + private void Dtg_DataError(object sender, DataGridViewDataErrorEventArgs anError) + { + } + + private void tcMain_DrawItem(object sender, DrawItemEventArgs e) + { + } + + private void dtgTransactions_CellDoubleClick(object sender, DataGridViewCellEventArgs e) + { + if (((DataGridView)(sender)).CurrentCell.Value != null) { - try - { - if (dtgAddressBook.CurrentCell != null && dtgAddressBook.Rows[dtgAddressBook.CurrentCell.RowIndex].Cells[0].Value != null) - { - String name = dtgAddressBook.Rows[dtgAddressBook.CurrentCell.RowIndex].Cells[0].Value.ToString(); - if (!String.IsNullOrEmpty(name)) - { - DialogResult dialogResult = MessageBox.Show(@"Do you want to delete " + name, "ATTENTION!!!", MessageBoxButtons.YesNo); - if (dialogResult == DialogResult.Yes) - { - int index = book.FindIndex(x => x.label == name); - if (index >= 0) - { - book.RemoveAt(index); - } - book.Sort(delegate(Types.AddressBook x, Types.AddressBook y) - { - return x.label.CompareTo(y.label); - }); - dtgAddressBook.Invoke(new Action(() => - { - dtgAddressBook.AutoGenerateColumns = true; - dtgAddressBook.DataSource = new BindingList(book); - })); - saveAddressBook(book); - //populate addressbook - populateAddressBook(book); - } - } - } - else - { - MessageBox.Show("Cannot delete empty String"); - } - } - catch (Exception ex) - { - MessageBox.Show("Delete label error"); - } + //get transaction data + DataGridView dtg = (DataGridView)(sender); + int index = dtg.CurrentRow.Index; + string txid = dtg.Rows[index].Cells[5].Value.ToString(); + string data = Task.Run(() => api.getTransaction(txid)).Result; + TransactionDetail txDetail = new TransactionDetail(data); + txDetail.ShowDialog(); } } - private void Dtg_DataError(object sender, DataGridViewDataErrorEventArgs anError) + private void btnAddressBook_Click(object sender, EventArgs e) { + AddressBook addrBook = new AddressBook(book); + addrBook.ShowDialog(); + book = new List(addrBook.book); + Task.Run(() => loadAddressBook(book)); + loadWallet(); } } diff --git a/SimpleWallet/Start.resx b/SimpleWallet/Start.resx index d5af96c..886a85d 100644 --- a/SimpleWallet/Start.resx +++ b/SimpleWallet/Start.resx @@ -124,10 +124,7 @@ 158, 17 - 38, 45 - - - 555, 47 + 219, 86 271, 47 @@ -143,7 +140,7 @@ AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAACc - DQAAAk1TRnQBSQFMAgEBBgEAAagBCQGoAQkBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo + DQAAAk1TRnQBSQFMAgEBBgEAAaABCgGgAQoBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo AwABQAMAASADAAEBAQABCAYAAQgYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5 AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA @@ -204,6 +201,9 @@ Av8BgAEADP8L + + 555, 47 + 43, 17 diff --git a/SimpleWallet/api.cs b/SimpleWallet/api.cs index 6ffb13f..96b291b 100644 --- a/SimpleWallet/api.cs +++ b/SimpleWallet/api.cs @@ -16,6 +16,48 @@ namespace SimpleWallet { + public class VerticalTabControl : TabControl + { + public VerticalTabControl() + { + this.Alignment = TabAlignment.Left; + this.DrawMode = TabDrawMode.OwnerDrawFixed; + this.SizeMode = TabSizeMode.Fixed; + this.ItemSize = new Size(this.Font.Height * 3 / 2, 75); + } + public override Font Font + { + get { return base.Font; } + set + { + base.Font = value; + this.ItemSize = new Size(value.Height * 3 / 2, base.ItemSize.Height); + } + } + protected override void OnDrawItem(DrawItemEventArgs e) + { + using (SolidBrush _textBrush = new SolidBrush(this.ForeColor)) + { + TabPage _tabPage = this.TabPages[e.Index]; + Rectangle _tabBounds = this.GetTabRect(e.Index); + + if (e.State != DrawItemState.Selected) e.DrawBackground(); + else + { + using (var brush = new System.Drawing.Drawing2D.LinearGradientBrush(e.Bounds, Color.Transparent, Color.Transparent, 90f)) + { + e.Graphics.FillRectangle(brush, e.Bounds); + } + } + + StringFormat _stringFlags = new StringFormat(); + _stringFlags.Alignment = StringAlignment.Center; + _stringFlags.LineAlignment = StringAlignment.Center; + e.Graphics.DrawString(_tabPage.Text, this.Font, _textBrush, _tabBounds, new StringFormat(_stringFlags)); + } + } + } + public class TransparentLabel : Label { public TransparentLabel() @@ -145,6 +187,21 @@ public static Api Instance } } + public List readAddressBook() + { + List rtn = new List(); + if (!File.Exists(Types.addressLabel)) + File.Create(Types.addressLabel).Close(); + String data = File.ReadAllText(Types.addressLabel); + dynamic parse = JsonConvert.DeserializeObject(data); + if (parse != null && parse.addressbook != null) + { + rtn = new List(parse.addressbook); + } + rtn = rtn.OrderBy(o => o.label).ToList(); + return rtn; + } + String getRandomString(int length) { String rtn = ""; @@ -790,6 +847,14 @@ public String getListTransactions() return ret; } + public String getTransaction(string txid) + { + String data = ""; + List command = new List { "gettransaction", txid }; + String ret = Task.Run(() => exec.executeGetTransaction(command, data)).Result; + return ret; + } + public String startMasternode(String name) { String data = ""; diff --git a/SimpleWallet/executor.cs b/SimpleWallet/executor.cs index ee4d32c..8190198 100644 --- a/SimpleWallet/executor.cs +++ b/SimpleWallet/executor.cs @@ -31,6 +31,9 @@ class Executor String dataToGetMasternode = ""; String getResultMasternode = ""; String getResultDaemond = ""; + String dataToGetTransaction = ""; + String getResultGetTransaction = ""; + bool error = false; bool isClosedDeamon = true; @@ -123,6 +126,11 @@ void executeCommand(List args, Types.OutputType type) process.OutputDataReceived += new DataReceivedEventHandler(this.outputHandlerOthers); process.ErrorDataReceived += new DataReceivedEventHandler(this.outputHandlerOthers); } + else if(type == Types.OutputType.GET_TRANSACTION) + { + process.OutputDataReceived += new DataReceivedEventHandler(this.outputHandlerGetTransaction); + process.ErrorDataReceived += new DataReceivedEventHandler(this.outputHandlerGetTransaction); + } process.Start(); process.BeginErrorReadLine(); process.BeginOutputReadLine(); @@ -230,6 +238,25 @@ void outputHandlerOthers(Object sender, DataReceivedEventArgs e) } } + void outputHandlerGetTransaction(Object sender, DataReceivedEventArgs e) + { + // Prepend line numbers to each line of the output. + if (!String.IsNullOrEmpty(e.Data)) + { + if (e.Data.Contains(dataToGetTransaction)) + { + if (String.IsNullOrEmpty(getResultGetTransaction)) + { + getResultGetTransaction += e.Data; + } + else + { + getResultGetTransaction += "\n" + e.Data; + } + } + } + } + public String executeStart(String command) { String exportDir = Environment.GetFolderPath(Environment.SpecialFolder.Desktop); @@ -266,6 +293,15 @@ public String executeBalance(List command, String dataToGet) return getResultBalance; } + public String executeGetTransaction(List command, String dataToGet) + { + dataToGetTransaction = dataToGet; + getResultGetTransaction = ""; + executeCommand(command, Types.OutputType.GET_TRANSACTION); + return getResultGetTransaction; + } + + public String executeOthers(List command, String dataToGet) { dataToGetOthers = dataToGet; diff --git a/SimpleWallet/packages.config b/SimpleWallet/packages.config index 729487f..8804726 100644 --- a/SimpleWallet/packages.config +++ b/SimpleWallet/packages.config @@ -2,5 +2,7 @@ - + + + \ No newline at end of file diff --git a/SimpleWallet/types.cs b/SimpleWallet/types.cs index e9eaec4..b0f1584 100644 --- a/SimpleWallet/types.cs +++ b/SimpleWallet/types.cs @@ -114,6 +114,7 @@ public enum OutputType SYNC, BALANCE, MASTERNODE, + GET_TRANSACTION, OTHERS } @@ -202,6 +203,7 @@ public class Transaction public String amount { get; set; } public String confirmations { get; set; } public String time { get; set; } + public String txid { get; set; } } public class TransactionConverted @@ -211,14 +213,16 @@ public class TransactionConverted public String amount { get; set; } public String time { get; set; } public String address { get; set; } + public String txid { get; set; } - public TransactionConverted(String category, String confirmations, String amount, String time, String address) + public TransactionConverted(String category, String confirmations, String amount, String time, String address, String txid) { this.category = category; this.confirmations = confirmations; this.amount = amount; this.time = time; this.address = address; + this.txid = txid; } }