Skip to content

Commit 4aac3ac

Browse files
unknounkno
unkno
authored and
unkno
committed
Latest message added
1 parent 3cde2d6 commit 4aac3ac

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

WifiAdbHhelper/Form1.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public partial class Form1 : MetroFramework.Forms.MetroForm
2323
public EzShell.CheckUpdates checkUpd;
2424
public EzShell.SwMsgDwnldUpt swMsgDwnld;
2525
public settingForm settingForm;
26+
bool isLast = true;
2627
public string link = "";
2728
Form1 _form1;
2829
public NotifyIcon notificationM = new NotifyIcon()
@@ -183,6 +184,7 @@ private void Form1_Load(object sender, EventArgs e)
183184
else buttontest.Visible = true;
184185
notificationM.ShowBalloonTip(3000, "Update available " + Ver, "Click on this notification to see more", ToolTipIcon.Info);
185186
notificationM.BalloonTipClicked += NotificationM_BalloonTipClicked;
187+
isLast = false;
186188
}
187189
});
188190
r.IsBackground = true;
@@ -531,7 +533,7 @@ private void labeladbpop_MouseDoubleClick(object sender, MouseEventArgs e)
531533
}
532534
private void SettingButton_Click(object sender, EventArgs e)
533535
{
534-
settingForm settingFormm = new settingForm();
536+
settingForm settingFormm = new settingForm(isLast);
535537
if (settingFormm.ShowDialog() == DialogResult.OK)
536538
{
537539
SetTimerInterval();

WifiAdbHhelper/settingForm.Designer.cs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

WifiAdbHhelper/settingForm.cs

+9-3
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,20 @@ namespace WifiAdbHelper
1414
{
1515
public partial class settingForm : MetroFramework.Forms.MetroForm
1616
{
17+
bool isLast1 = false;
1718

18-
public settingForm()
19+
public settingForm(bool isLast)
1920
{
20-
InitializeComponent();
21+
InitializeComponent();
22+
isLast1 = isLast;
2123
}
2224
Form1 form1 = new Form1();
2325

2426
private void settingForm_Load(object sender, EventArgs e)
2527
{
2628
this.StyleManager = metroStyleManager1;
2729
//mainVars.pathForADB();
28-
labelVersion.Text = "Version: " + Assembly.GetExecutingAssembly().GetName().Version.ToString();
30+
labelVersion.Text = isLast1 ? "Version: " + Assembly.GetExecutingAssembly().GetName().Version.ToString() + " (latest)" : "Version: " + Assembly.GetExecutingAssembly().GetName().Version.ToString();
2931
textBoxADBPath.Text = SettableVars.AdbPath;
3032
metroStyleManager1.Theme = SettableVars.themeStyle;
3133
metroStyleManager1.Style = SettableVars.colorStyle;
@@ -140,5 +142,9 @@ private void numericUpDown1_ValueChanged(object sender, EventArgs e)
140142
form1.INI.Write(consts.allSettings[0], consts.allSettings[4], SettableVars.DevicesUpdatingTiming.ToString());
141143
}
142144

145+
private void labelVersion_Click(object sender, EventArgs e)
146+
{
147+
148+
}
143149
}
144150
}

0 commit comments

Comments
 (0)