public guiLocks(FormMainSMOG main) { mainForm = main; mListViewSort_Manager = new ArrayList(); // Locks mListViewSort_Manager.Add(new ListViewSortManager(mainForm.LocksListView, new Type[] { typeof(ListViewTextSort), typeof(ListViewTextSort), typeof(ListViewTextSort), typeof(ListViewDateSort), typeof(ListViewTextSort), typeof(ListViewInt32Sort), typeof(ListViewTextSort) })); // RequestLocks mListViewSort_Manager.Add(new ListViewSortManager(mainForm.LocksRequestLocksListView, new Type[] { typeof(ListViewTextSort), typeof(ListViewTextSort), typeof(ListViewTextSort), typeof(ListViewDateSort), typeof(ListViewTextSort), typeof(ListViewInt32Sort), typeof(ListViewTextSort) })); Initialize(); }
public Configuration(FormMainSMOG main) { mainForm = main; mProjectOptions = new guiProjectOptions(this); InitializeConfigurations(); }
public guiMonitor(FormMainSMOG form) { mainForm = form; mListViewSort_Manager = new ArrayList(); mListViewSort_Manager.Add(new ListViewSortManager(mainForm.lviewMonitor, new Type[] { typeof(ListViewTextCaseInsensitiveSort), typeof(ListViewTextCaseInsensitiveSort), typeof(ListViewInt32Sort), typeof(ListViewTextCaseInsensitiveSort), typeof(ListViewTextCaseInsensitiveSort), })); }
public bool Save(FormMainSMOG main) { ini.PutString("Gui", "ActiveTab", Convert.ToString(main.SMOG_Main_TabControl.SelectedIndex)); ini.PutString("Gui", "Width", Convert.ToString(main.Width)); ini.PutString("Gui", "Height", Convert.ToString(main.Height)); ini.PutString("Gui", "top", Convert.ToString(main.Top)); ini.PutString("Gui", "left", Convert.ToString(main.Left)); //ini.PutString("Server", "ServerVersion", main.CurrentServerVersion); //ini.PutString("Server", "ClientVersion", main.CurrentClientVersion); return(ini.Save()); }
public EventCallbacks(FormMainSMOG main) { mainForm = main; if (MOG_ControllerSystem.IsCommandManager()) { MOG_Callbacks callbacks = new MOG_Callbacks(); callbacks.mPreEventCallback = new MOG_CallbackCommandEvent(this.CommandPreEventCallBack); callbacks.mEventCallback = new MOG_CallbackCommandEvent(this.CommandEventCallBack); MOG_ControllerSystem.GetCommandManager().SetCallbacks(callbacks); } }
public guiLogs(FormMainSMOG parentForm) { defaultLogName = MOG_Report.GetLogFileName(); //TODO JKB: Function Request: MOG_REPORT.GetLogPath() logpath = MOG_Report.GetLogFileName().Substring(0, MOG_Report.GetLogFileName().LastIndexOf("\\")); defaultLogFullName = MOG_Report.GetLogFileName(); logLoaded = false; mainForm = parentForm; LogLogDisplayRichTextBox = new RichTextBox(); //mainForm.LogLogDisplayRichTextBox; LogLogFilenameLabel = new Label(); //mainForm.LogLogFilenameLabel; LogComboBox = new ComboBox(); }
public guiPendingCommands(FormMainSMOG main) { mainForm = main; Initialize(); // Assets mListViewSort_Manager = new ArrayList(); mListViewSort_Manager.Add(new ListViewSortManager(mainForm.CommandspendingListView, new Type[] { typeof(ListViewTextCaseInsensitiveSort), typeof(ListViewTextCaseInsensitiveSort), typeof(ListViewTextCaseInsensitiveSort), typeof(ListViewTextCaseInsensitiveSort), typeof(ListViewInt32Sort), typeof(ListViewInt32Sort), typeof(ListViewDateSort), typeof(ListViewTextCaseInsensitiveSort) })); }
//J static private Int32 IDCount = 0; public Monitor(FormMainSMOG form) { mForm = form; }
public bool Load(FormMainSMOG main) { if (ini.KeyExist("Gui", "ActiveTab")) { int activeTab = Convert.ToInt32(ini.GetString("Gui", "ActiveTab")); if (activeTab <= main.SMOG_Main_TabControl.TabCount) { main.SMOG_Main_TabControl.SelectedIndex = activeTab; } } if (ini.KeyExist("Gui", "Width")) { main.Width = Convert.ToInt32(ini.GetString("Gui", "Width")); } if (ini.KeyExist("Gui", "Height")) { main.Height = Convert.ToInt32(ini.GetString("Gui", "Height")); } if (ini.KeyExist("Gui", "top")) { main.Top = Convert.ToInt32(ini.GetString("Gui", "top")); } if (ini.KeyExist("Gui", "left")) { main.Left = Convert.ToInt32(ini.GetString("Gui", "left")); } // Get our currently deployed versions //if (ini.KeyExist("Server", "ServerVersion")) main.CurrentServerVersion = ini.GetString("Server", "ServerVersion"); //if (ini.KeyExist("Server", "ClientVersion")) main.CurrentClientVersion = ini.GetString("Server", "CLientVersion"); // Per john's request. { //Make sure it's not offscreen to the maximum if (main.Left > Screen.PrimaryScreen.Bounds.Size.Width - main.Width) { main.Left = Screen.PrimaryScreen.Bounds.Size.Width - main.Width; } if (main.Top > Screen.PrimaryScreen.Bounds.Size.Height - main.Height) { main.Top = Screen.PrimaryScreen.Bounds.Size.Height - main.Height; } // Set minimum requirements if (main.Width < 100) { main.Width = 100; } if (main.Height < 50) { main.Height = 50; } if (main.Top < 0) { main.Top = 0; } if (main.Left < 0) { main.Left = 0; } } return(true); }