style: fix c# build warnings

This commit is contained in:
zzyyyl
2022-10-24 15:32:23 +08:00
parent 75200911cf
commit 5236543d3d
9 changed files with 100 additions and 7 deletions

View File

@@ -732,6 +732,7 @@ namespace MeoAsstGui
{
all_drops += $" (+{addQuantity})";
}
all_drops += "\n";
}

View File

@@ -1,4 +1,17 @@
namespace MeoAsstGui.MaaHotKeys
// <copyright file="IMaaHotKeyActionHandler.cs" company="MaaAssistantArknights">
// MeoAsstGui - A part of the MeoAssistantArknights project
// Copyright (C) 2021 MistEO and Contributors
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY
// </copyright>
namespace MeoAsstGui.MaaHotKeys
{
public interface IMaaHotKeyActionHandler
{

View File

@@ -1,4 +1,17 @@
using GlobalHotKey;
// <copyright file="IMaaHotKeyManager.cs" company="MaaAssistantArknights">
// MeoAsstGui - A part of the MeoAssistantArknights project
// Copyright (C) 2021 MistEO and Contributors
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY
// </copyright>
using GlobalHotKey;
namespace MeoAsstGui.MaaHotKeys
{

View File

@@ -1,4 +1,17 @@
using System.Text;
// <copyright file="MaaHotKey.cs" company="MaaAssistantArknights">
// MeoAsstGui - A part of the MeoAssistantArknights project
// Copyright (C) 2021 MistEO and Contributors
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY
// </copyright>
using System.Text;
using System.Windows.Input;
using GlobalHotKey;

View File

@@ -1,4 +1,17 @@
using System;
// <copyright file="MaaHotKeyAction.cs" company="MaaAssistantArknights">
// MeoAsstGui - A part of the MeoAssistantArknights project
// Copyright (C) 2021 MistEO and Contributors
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY
// </copyright>
using System;
namespace MeoAsstGui.MaaHotKeys
{

View File

@@ -1,4 +1,17 @@
using System;
// <copyright file="MaaHotKeyActionHandler.cs" company="MaaAssistantArknights">
// MeoAsstGui - A part of the MeoAssistantArknights project
// Copyright (C) 2021 MistEO and Contributors
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY
// </copyright>
using System;
using System.Windows;
using StyletIoC;

View File

@@ -1,4 +1,17 @@
using System;
// <copyright file="MaaHotKeyManager.cs" company="MaaAssistantArknights">
// MeoAsstGui - A part of the MeoAssistantArknights project
// Copyright (C) 2021 MistEO and Contributors
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY
// </copyright>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Input;

View File

@@ -1,4 +1,17 @@
using System.Windows;
// <copyright file="HotKeyEditorUserControl.xaml.cs" company="MaaAssistantArknights">
// MeoAsstGui - A part of the MeoAssistantArknights project
// Copyright (C) 2021 MistEO and Contributors
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY
// </copyright>
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using MeoAsstGui.MaaHotKeys;

View File

@@ -672,6 +672,7 @@ namespace MeoAsstGui
fileStream.Write(byteArray, 0, byteArraySize);
byteArraySize = responseStream.Read(byteArray, 0, byteArray.Length);
}
success = true;
}
catch (Exception info)