Publish Zonghengjia Windows 0.3.18 client source
This commit is contained in:
@@ -41,6 +41,21 @@ internal sealed partial class MainForm
|
||||
PerformLayout();
|
||||
LayoutDashboard();
|
||||
Application.DoEvents();
|
||||
checks["compact_chrome_has_only_minimize_caption"] = WindowChromeForTest is
|
||||
{ LoginMode: false, MinimizeButton.Action: CaptionAction.Minimize }
|
||||
&& _brandHeader.Controls.OfType<CaptionButton>().Count(button => button.Visible) == 1
|
||||
&& !_brandHeader.Controls.OfType<Button>().Any(button => button.Visible && button.AccessibleName == "断开并退出");
|
||||
checks["compact_header_no_truncated_greeting"] = !_welcomeLabel.Visible
|
||||
&& _dashboardMore.Visible && _logoutButton.Visible;
|
||||
_dashboardMore.PerformClick();
|
||||
Application.DoEvents();
|
||||
checks["compact_settings_identifies_current_account"] = _settingsMenu?.Items.OfType<ToolStripLabel>()
|
||||
.Any(item => item.Text?.Contains(profile.Email, StringComparison.Ordinal) == true) == true;
|
||||
_settingsMenu?.Close();
|
||||
checks["compact_graph_top_controls_share_one_row"] = _trendHeading.Top == _uploadLegend.Top
|
||||
&& _uploadLegend.Top == _downloadLegend.Top && _downloadLegend.Top == _historyRangeCombo.Top
|
||||
&& _trendHeading.Right <= _uploadLegend.Left && _uploadLegend.Right <= _downloadLegend.Left
|
||||
&& _downloadLegend.Right <= _historyRangeCombo.Left;
|
||||
int Limit() => Math.Max(0, _dashboardScrollBar.Maximum - _dashboardScrollBar.LargeChange + 1);
|
||||
bool Wheel(Control target, int delta, Point? screenPoint = null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user