private void SearchReceiverFrom_Load(object sender, EventArgs e) { ReceiverType = string.Empty; Mail_SearchReceiverType = int.MaxValue; sManager = new ServerManager(); this.ReceiverList = new DataSet(); this.ReceiverList.Tables.Add("Receivers"); this.ReceiverList.Tables[0].Columns.Add("AccountID"); this.ReceiverList.Tables[0].Columns.Add("AccountName"); this.ReceiverList.Tables[0].Columns.Add("CharacterID"); this.ReceiverList.Tables[0].Columns.Add("CharacterName"); AllSelect = true; GetReceiverThread = new Thread(new ParameterizedThreadStart(GetReceiverDataSet)); GetReceiverThread.IsBackground = true; if (Mail_SearchReceiverDataGridView.Rows.Count == 0) { GetReceiverThread.Start(ServerManager.RealmdDB + "|" + ServerManager.CharactersDB); } }
private void SearchItemsFormcs_Load(object sender, EventArgs e) { sManager = new ServerManager(); this.ItemsList = new DataSet(); this.ItemsList.Tables.Add("Items"); this.ItemsList.Tables[0].Columns.Add("entry"); this.ItemsList.Tables[0].Columns.Add("name"); Mail_SearchItemsType = int.MaxValue; AllSelect = true; Mail_SearchItemsStr = string.Empty; GetItemsThread = new Thread(new ParameterizedThreadStart(GetItemsDataSet)); GetItemsThread.IsBackground = true; if (Mail_SearchItemsDataGridView.Rows.Count == 0) { GetItemsThread.Start(ServerManager.MangosDB); } }
private void Server_SendMail_Load(object sender, EventArgs e) { sManager = new ServerManager(); Inserted_item_instance = new ArrayList(); Inserted_item_text = new ArrayList(); Inserted_mail = new ArrayList(); Inserted_mail_items = new ArrayList(); this.SendMailResault = new DataSet(); this.SendMailResault.Tables.Add("Resault"); this.SendMailResault.Tables[0].Columns.Add("AccountID", typeof(string)); this.SendMailResault.Tables[0].Columns.Add("AccountName", typeof(string)); this.SendMailResault.Tables[0].Columns.Add("CharactersID", typeof(string)); this.SendMailResault.Tables[0].Columns.Add("CharactersName", typeof(string)); this.SendMailResault.Tables[0].Columns.Add("Resault", typeof(string)); SendMailThread = new Thread(new ParameterizedThreadStart(SendMail)); SendMailThread.IsBackground = true; CancleSendThread = new Thread(new ParameterizedThreadStart(CancelSend)); CancleSendThread.IsBackground = true; SendMailThread.Start(); }