83 lines
2.9 KiB
C#
83 lines
2.9 KiB
C#
using System;
|
|
using System.Windows.Forms;
|
|
using SafeMobileLib;
|
|
|
|
namespace Safedispatch_4_0
|
|
{
|
|
public partial class WaitingForm : Telerik.WinControls.UI.RadForm
|
|
{
|
|
private String title = "Searching for Application server!!!";
|
|
private String message = "Searching...";
|
|
|
|
public WaitingForm(String title, String message) : this()
|
|
{
|
|
this.title = title;
|
|
this.message = message;
|
|
|
|
lbMessage.Text = message;
|
|
this.Text = title;
|
|
}
|
|
|
|
public WaitingForm()
|
|
{
|
|
InitializeComponent();
|
|
|
|
this.DialogResult = DialogResult.None;
|
|
|
|
switch (MainForm2.radioType)
|
|
{
|
|
case RADIOTYPE.CONECTPLUS:
|
|
case RADIOTYPE.TETRA:
|
|
case RADIOTYPE.REPEATER_TRBO:
|
|
case RADIOTYPE.MOTO:
|
|
//ThemeResolutionService.ApplyThemeToControlTree(this, "ControlDefault");
|
|
break;
|
|
case RADIOTYPE.HYT:
|
|
try
|
|
{
|
|
this.Icon = global::Dispatcher.Properties.Resources.HytSmall24;
|
|
this.BackColor = MainForm2.HyteraColor;
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
SM.Debug("Error on change color hytera:" + ex.ToString());
|
|
}
|
|
break;
|
|
case RADIOTYPE.HARRIS:
|
|
try
|
|
{
|
|
this.Icon = global::Dispatcher.Properties.Resources.HarrisSmall;
|
|
//ThemeResolutionService.ApplicationThemeName = "Office2010Black";
|
|
this.BackColor = MainForm2.HarrisColor;
|
|
this.lbMessage.ForeColor = MainForm2.HarTextColor;
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
SM.Debug("Error on change color harris:" + ex.ToString());
|
|
}
|
|
break;
|
|
case RADIOTYPE.ATLAS:
|
|
try
|
|
{
|
|
this.Icon = global::Dispatcher.Properties.Resources.ATLICO32;
|
|
this.BackColor = MainForm2.HarrisColor;
|
|
this.lbMessage.ForeColor = MainForm2.HarTextColor;
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
SM.Debug("Error on change color harris:" + ex.ToString());
|
|
}
|
|
break;
|
|
case RADIOTYPE.SIMOCO:
|
|
this.Icon = global::Dispatcher.Properties.Resources.simoco_dispatch_24;
|
|
break;
|
|
case RADIOTYPE.EXCERA:
|
|
this.Icon = Dispatcher.Properties.Resources.AXYS_ICON;
|
|
break;
|
|
}
|
|
radWaitingBar1.StartWaiting();
|
|
}
|
|
|
|
}
|
|
}
|