public SearchForm(Navigator Nav_Parent_) { this.Nav_Parent = Nav_Parent_; this.FormBorderStyle = FormBorderStyle.None; this.InitializeComponent(); Services.setFormStyle((Form) this); this.SearchBox.BackColor = Color.FromArgb((int) byte.MaxValue, 20, 20, 20); this.TransparencyKey = Color.FromArgb(0, 0, 0); this.BackColor = Color.FromArgb(0, 0, 0); this.BackgroundImage = (Image) null; this.FileGridView.DefaultCellStyle.Font = new Font("Tahoma", 8f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0); this.FileGridView.DefaultCellStyle.ForeColor = Color.FromArgb((int) byte.MaxValue, 50, 50, 50); this.FileGridView.DefaultCellStyle.SelectionForeColor = Color.FromArgb((int) byte.MaxValue, (int) byte.MaxValue, (int) byte.MaxValue, (int) byte.MaxValue); this.FileGridView.DefaultCellStyle.SelectionBackColor = Color.FromArgb((int) byte.MaxValue, 55, 55, 155); this.FileGridView.AlternatingRowsDefaultCellStyle.ForeColor = Color.FromArgb((int) byte.MaxValue, 50, 50, 50); this.FileGridView.ColumnHeadersDefaultCellStyle.ForeColor = Color.FromArgb((int) byte.MaxValue, 20, 20, 20); this.FileGridView.ColumnHeadersDefaultCellStyle.BackColor = Color.FromArgb((int) byte.MaxValue, 250, 250, 250); Services.LoadFormLayout((Form) this); }
public static void EditVolume(Navigator.VolumeDisc VolumeDisc) { ArrayList[] fields = new ArrayList[1] { new ArrayList() }; fields[0].Add((object) VolumeDisc.ID); fields[0].Add((object) VolumeDisc.Drive); fields[0].Add((object) VolumeDisc.Label); fields[0].Add((object) VolumeDisc.DeviceID); fields[0].Add((object) VolumeDisc.HolderPS); fields[0].Add((object) VolumeDisc.RegDate); DataBase.AddUpdRecords("VolumeList", fields, -1, true); }
public static void EditHolder(Navigator.Holder currHolder) { ArrayList[] fields = new ArrayList[1] { new ArrayList() }; DateTime now = DateTime.Now; string str1 = now.Date.ToString().Substring(0, 10); string str2 = Services.NormalizedTime(now.TimeOfDay.ToString()).Substring(0, 5); fields[0].Add((object) currHolder.ID); fields[0].Add((object) currHolder.LabelName); fields[0].Add((object) currHolder.DeviceID); fields[0].Add((object) currHolder.DeviceTP); fields[0].Add((object) currHolder.PS_Avail); fields[0].Add((object) (str1 + " " + str2)); DataBase.AddUpdRecords("HolderList", fields, -1, true); }
private static void Main() { Application.EnableVisualStyles(); Navigator.VersionSTR = Services.GetVersion(); Navigator.OSVersion = Services.getOSInfo(); Navigator.FileSize_Units[0] = "b"; Navigator.FileSize_Units[1] = "KB"; Navigator.FileSize_Units[2] = "MB"; Navigator.FileSize_Units[3] = "GB"; Navigator.FileSize_Units[4] = "TB"; Navigator.LoadGraph(Navigator.AppName); Navigator.Load_Form = new Splash_Form(); Navigator.Load_Form.Show(); Services.fade((Form) Navigator.Load_Form, 10); Services.MainColor_Fore_Label = Color.FromArgb((int) byte.MaxValue, (int) byte.MaxValue, (int) byte.MaxValue); Services.MainColor_Back_Label = Color.FromArgb(11, 38, 50); Services.MainColor_Fore_Menu = Color.FromArgb(20, 20, 20); Services.MainColor_BackTabPage = Color.FromArgb(200, 215, 205); Services.MainColor_BackCamScreen = Color.FromArgb(172, 172, 172); Services.MainColor_Fore_Button = Color.FromArgb((int) byte.MaxValue, (int) byte.MaxValue, (int) byte.MaxValue); Services.MainColor_Fore_Text = Color.FromArgb((int) byte.MaxValue, (int) byte.MaxValue, 190, 0); Services.MainColor_Back_Text = Color.FromArgb(20, 20, 20); Navigator.Naviga_Form = new Navigator(); Navigator.Search_Form = new SearchForm(Navigator.Naviga_Form); Navigator.Asking_Form = new AskForm(); Navigator.Credit_Form = new Credits_Sent_Form(); Navigator.Search_Form.InitForm(); Navigator.Naviga_Form.ResetFormsLanguages(); Navigator.Naviga_Form.Show(); Navigator.Naviga_Form.InitAnimation(); Navigator.Naviga_Form.Animation(true); Navigator.Load_Form.Hide(); Application.Run((Form) Navigator.Naviga_Form); }