63 lines
1.6 KiB
C#
63 lines
1.6 KiB
C#
using Microsoft.WindowsAPICodePack.Taskbar;
|
|
using Client.Config;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Configuration;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Text;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
using Client.Utils;
|
|
using System.IO;
|
|
|
|
namespace Active_Client.View
|
|
{
|
|
public partial class LoadingForm : MetroFramework.Forms.MetroForm
|
|
{
|
|
|
|
//Constructor
|
|
public LoadingForm()
|
|
{
|
|
InitializeComponent();
|
|
if (Config.ClientConfig.IsSCM)
|
|
{
|
|
LogoCMS.Visible = false;
|
|
LogoSCM.Visible = true;
|
|
this.Icon = Properties.Resources.MAESTRO_ACTIVE_ICON;
|
|
}
|
|
else
|
|
{
|
|
LogoCMS.Visible = true;
|
|
LogoSCM.Visible = false;
|
|
}
|
|
|
|
//Set window Position
|
|
this.Location = new Point((Screen.PrimaryScreen.Bounds.Width / 2) - (this.Width / 2), (Screen.PrimaryScreen.Bounds.Height / 2) - (this.Height / 2));
|
|
}
|
|
|
|
|
|
|
|
//Show & Set the status
|
|
public void Show(String status)
|
|
{
|
|
this.Show();
|
|
|
|
//Invoke method if is needed or call the method in STD mode
|
|
if (this.InvokeRequired)
|
|
{
|
|
this.Invoke((MethodInvoker)delegate () { StatusLBL.Text = status; });
|
|
}
|
|
else
|
|
{
|
|
StatusLBL.Text = status;
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|