public NewBotDlg(string filePath) { InitializeComponent(); BotDesc = new BotStudio.BotEngine.BotDescriptor(); BotDesc.Script = filePath; BotDesc.Name = "Bot("+ filePath + ")"; nameBox.Text = BotDesc.Name; }
public BotPropDlg(string filePath) { InitializeComponent(); BotDesc = new BotStudio.BotEngine.BotDescriptor(); BotDesc.Script = filePath; BotDesc.Name = ConfigurationManager.AppSettings["DefaultBotName"]; BotDesc.Count = 1; BotDesc.Silenced = false; BotDesc.Host.Address = IPAddress.Parse(ConfigurationManager.AppSettings["DefaultHostAddress"]); BotDesc.Host.Port = Convert.ToInt32(ConfigurationManager.AppSettings["DefaultHostPort"]); }